Exam 2: Basic Elements of C++
Exam 1: An Overview of Computers and Programming Languages40 Questions
Exam 2: Basic Elements of C++50 Questions
Exam 3: Inputoutput40 Questions
Exam 4: Control Structures I Selection40 Questions
Exam 5: Control Structures II Repetition40 Questions
Exam 6: User-Defined Function41 Questions
Exam 7: Namespaces, the Class String, and User-Defined Simple Data Types40 Questions
Exam 8: Arrays40 Questions
Exam 9: Records Structs40 Questions
Exam 10: Classes and Data Abstraction43 Questions
Exam 11: Inheritance and Composition41 Questions
Exam 12: Pointers, Classes, Virtual Functions, and Abstract Classes43 Questions
Exam 13: Overloading and Templates41 Questions
Exam 14: Exception Handling42 Questions
Exam 15: Recursion41 Questions
Exam 16: Searching and Sorting46 Questions
Exam 17: Linked Lists41 Questions
Exam 18: Stacks and Queues42 Questions
Select questions type
Suppose we declare a variable sum as an int. The statement "sum += 7;" is equivalent to the statement "sum = sum + 7;".
Free
(True/False)
4.9/5
(29)
Correct Answer:
True
The declaration int a, b, c; is equivalent to which of the following?
Free
(Multiple Choice)
4.7/5
(37)
Correct Answer:
B
The memory allocated for a float value is ____ bytes.
Free
(Multiple Choice)
4.9/5
(45)
Correct Answer:
B
The memory space for a(n) ____________________ data value is 64 bytes.
(Short Answer)
4.8/5
(42)
The maximum number of significant digits is called the ____________________.
(Short Answer)
4.7/5
(31)
Suppose that alpha and beta are int variables. The statement alpha = beta++; is equivalent to the statement(s) ____.
(Multiple Choice)
4.9/5
(22)
____________________ functions are those that have already been written and are provided as part of the system.
(Short Answer)
4.7/5
(33)
If a C++ arithmetic expression has no parentheses, operators are evaluated from left to right.
(True/False)
4.8/5
(34)
____________________ is the process of planning and creating a program.
(Short Answer)
5.0/5
(28)
A(n) ____________________ is a collection of statements, and when it is activated, or executed, it accomplishes something.
(Short Answer)
4.8/5
(33)
Suppose that alpha and beta are int variables and alpha = 5 and beta = 10. After the statement alpha *= beta; executes, ____.
(Multiple Choice)
4.7/5
(39)
In C++, you can use a(n) ____________________ to instruct a program to mark those memory locations in which data is fixed throughout program execution.
(Short Answer)
4.7/5
(28)
Suppose that alpha and beta are int variables. The statement alpha = ++beta; is equivalent to the statement(s) ____.
(Multiple Choice)
4.8/5
(33)
The expression static_cast<int>(6.9) + static_cast<int>(7.9) evaluates to ____.
(Multiple Choice)
4.7/5
(33)
The value of the expression 33/10, assuming both values are integral data types, is ____.
(Multiple Choice)
4.8/5
(33)
Suppose that alpha and beta are int variables. The statement alpha = --beta; is equivalent to the statement(s) ____.
(Multiple Choice)
4.8/5
(38)
A data type is called ____________________ if the variable or named constant of that type can store only one value at a time.
(Short Answer)
4.9/5
(39)
Showing 1 - 20 of 50
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)