Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

Which of the following, if any, are valid names for variables?
A:
amt.Sold
B:
amt-Sold
C:
amt_Sold
D:
98Sold
Answer: C
No answer description is available. Let's discuss.
The purpose of a conditional operator is to
A:
select one of the two values
B:
select the highest of the two values
C:
select one of the two values depending on a condition
D:
select the more equal of the two values
Answer: C
No answer description is available. Let's discuss.
Recursive Functions
A:
easier to code
B:
executable faster than iterative ones
C:
takes less main storage space
D:
necessary to solve a certain class of problems
Answer: D
No answer description is available. Let's discuss.
Passing a variable pointer as a constant _____
A:
protects the contents pointed to by the pointer from change
B:
eliminates the need to name the pointer in the function
C:
eliminates the need to give the pointer a type in the function
D:
causes a copy of the pointer to be produced in the function
Answer: A
No answer description is available. Let's discuss.
A function that is prototyped as double calculate(int num); may______
A:
receive an integer constant such as 5
B:
receive an integer variable
C:
either (a) or (b)
D:
neither (a) nor (b)
Answer: C
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz