C++ Review Questions fill in the blank. Please answer all to the best of your ab
ID: 3829911 • Letter: C
Question
C++ Review Questions fill in the blank. Please answer all to the best of your ability! Thank you!
1.) A ________ variable can hold only one of two values: true or false.
2.) When a class contains a pointer to dynamically allocated memory, it is a good idea to
equip the class with
3.) What literal(s) appear in the following C++ statement?
int number = 4 + 8;
4.) The – operator
5.) The purpose of a memory address is
6.) If employee is an array of objects with a public member function
named setHoursWorked, which of the following statements correctly calls that
function for the employee object in array element 5?
7.) Which arithmetic operations can be performed on pointers?
8.) If a switch statement has no ________ statements, the program "falls through" all of
the statements below the one with the matching case expression.
9.) In a function call, in addition to the name of the function, you are required to furnish
10.) A function ________ eliminates the need to place the function definition before all calls
to the function.
Explanation / Answer
1.) A bool variable can hold only one of two values: true or false.
2.) When a class contains a pointer to dynamically allocated memory, it is a good idea to
equip the class with Copy Constructor
7.) Which arithmetic operations can be performed on pointers? Add and Substract
8.) If a switch statement has no break statements, the program "falls through" all of
the statements below the one with the matching case expression.
10.) A function decleration/prototype eliminates the need to place the function definition before all calls
to the function.
For others we require options , otherwise the question is ambiguous
Thanks, let me know if there is any concern.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.