Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

To expose a data member to the program, you must declare the data member in the _____ section of the class
A:
common
B:
exposed
C:
public
D:
unrestricted
Answer: C
No answer description is available. Let's discuss.
The use of the break statement in a switch statement is
A:
optional
B:
compulsory
C:
not allowed. It gives an error message
D:
to check an error
Answer: A
No answer description is available. Let's discuss.
Format flags may be combined using
A:
the bitwise OR operator (|)
B:
the logical OR operator (||)
C:
the bitwise AND operator (&)
D:
the logical AND operator (&&)
Answer: A
No answer description is available. Let's discuss.
Adding a derived class to a base class requires fundamental changes to the base class
A:
True
B:
False
C:
D:
Answer: B
No answer description is available. Let's discuss.
A default catch block catches
A:
all thrown objects
B:
no thrown objects
C:
any thrown object that has not been caught by an earlier catch block
D:
all thrown objects that have been caught by an earlier catch block
Answer: C
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz