Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

Variables that are declared in a block are known as _____ variables to that block
A:
confined
B:
local
C:
global
D:
immediate
Answer: B
No answer description is available. Let's discuss.
The keyword virtual indicates that
A:
a derived class has public access to a base class
B:
more than one base class exists
C:
a base class should be used only once in inheritance
D:
a derived class should have more than one base class constructed
Answer: C
No answer description is available. Let's discuss.
An expression contains relational, assignment and arithmetic operators. In the absence of parentheses, the order of evaluation will be
A:
assignment, relational, arithmetic
B:
arithmetic, relational, assignment
C:
relational, arithmetic, assignment
D:
assignment, arithmetic, relational
Answer: B
No answer description is available. Let's discuss.
A variable w with a value 67 may be defined with _______
A:
int w = 67;
B:
int w(67);
C:
int 67(w);
D:
both (a) and (b), but not (c).
Answer: D
No answer description is available. Let's discuss.
The break statement is
A:
a preprocessor directive
B:
an operator in the C++ language
C:
a keyword in the C++ language
D:
switch in the C++ language
Answer: C
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz