Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

The indirection operator is the
A:
asterisk
B:
ampersand
C:
dollar sign
D:
plus sign
Answer: A
No answer description is available. Let's discuss.
The braces that surround the code in a 'C program
A:
show what code goes in a particular function
B:
delimit a section of code
C:
separate the codes from the constant
D:
separate the source file from the subject file
Answer: B
No answer description is available. Let's discuss.
A do-while loop contains
A:
only one statement between the do statement and the while statement
B:
several statements between the do statement and the while statement
C:
no statement at all between the do statement and the while statement
D:
only two statement between the do statement and the while statement
Answer: B
No answer description is available. Let's discuss.
A function that is prototype as int calculate(int num); may
A:
receive an integer variable named num from the main() program
B:
receive any integer variable from the main() program
C:
either (a) or (b)
D:
neither (a) nor (b)
Answer: C
No answer description is available. Let's discuss.
To use the this pointer with a member function, you _____
A:
declare this as static
B:
declare this as global
C:
define this as equal to the address of the appropriate object
D:
do nothing; it is automatically supplied for you
Answer: D
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz