Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

When you instantiate a derived class object, a constructor for the derived class _____
A:
is not called
B:
is called prior to the base class constructor
C:
is called simultaneously with the base class constructor
D:
None of the above
Answer: D
No answer description is available. Let's discuss.
The _____ function returns the uppercase equivalent of a character
A:
caseupper
B:
charupper
C:
toupper
D:
uCase
Answer: C
No answer description is available. Let's discuss.
A function in a derived class that has the same name as a function in the parent class _____
A:
will cause an error message to display
B:
will override the base class function
C:
will be overridden by the base class function
D:
will execute immediately after the base class function executes
Answer: B
No answer description is available. Let's discuss.
A predefined function that may be used to handle memory allocation errors is
A:
handle_error
B:
set_new_handler
C:
new_fix
D:
memory_error
Answer: B
No answer description is available. Let's discuss.
The function stricmp("Jose", "JOSE") will return _____
A:
- 1
B:
0
C:
1
D:
Answer: B
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz