Computer Science - Object Oriented Programming Using C++

46.
The break statement is
a preprocessor directive
an operator in the C++ language
a keyword in the C++ language
switch in the C++ language
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

47.
A variable w with a value 67 may be defined with _______
int w = 67;
int w(67);
int 67(w);
both (a) and (b), but not (c).
Answer: Option
Explanation:
No answer description is available. Let's discuss.

48.
An expression contains relational, assignment and arithmetic operators. In the absence of parentheses, the order of evaluation will be
assignment, relational, arithmetic
arithmetic, relational, assignment
relational, arithmetic, assignment
assignment, arithmetic, relational
None of the above
Answer: Option
Explanation:
No answer description is available. Let's discuss.

49.
The keyword virtual indicates that
a derived class has public access to a base class
more than one base class exists
a base class should be used only once in inheritance
a derived class should have more than one base class constructed
Answer: Option
Explanation:
No answer description is available. Let's discuss.

50.
If you declare two objects as Customer firstCust, secondCust; which of the following must be true?
Each object will store a separate copy of any static member data
Each object will store a separate copy of any member functions
Each object will store a separate copy of any nonstatic data members
You cannot declare two objects of the same class
Answer: Option
Explanation:
No answer description is available. Let's discuss.