Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

To use the strcpy function, you must include the _____ header file in your program
A:
assign.h
B:
copy.h
C:
string.h
D:
strcopy.h
Answer: C
No answer description is available. Let's discuss.
A class D can be derived from a class C, which is derived from a class B, which is derived from a class A
A:
True
B:
False
C:
D:
Answer: A
No answer description is available. Let's discuss.
Programmer-defined functions can be
A:
value-returning functions only
B:
void functions only
C:
either value-returning or void functions
D:
Answer: C
No answer description is available. Let's discuss.
The statement int n[4] = {11, -13, 17, 105};
A:
assigns the value -13 to [2]
B:
assigns the value 17 to n[2]
C:
is wrong; it gives an error message
D:
assigns the value 18 to n[2]
Answer: B
No answer description is available. Let's discuss.
Student senior(); is a(n)_________
A:
constructor call with no arguments
B:
object instantiation
C:
constructor call with all default arguments
D:
prototype for a function that returns a student object
Answer: D
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz