Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

When the function void someFunction(int x) throw(char) is executed,_____
A:
it will throw nothing
B:
it may throw an integer
C:
it may throw a character
D:
it may not throw anything
Answer: C
No answer description is available. Let's discuss.
The element of an array is
A:
the name of the array
B:
a member of an array
C:
a value assigned to an array
D:
All of the above
Answer: B
No answer description is available. Let's discuss.
A(n) _____ is a numeric variable used for counting something
A:
accumulator
B:
adder
C:
constant
D:
counter
Answer: D
No answer description is available. Let's discuss.
In object-oriented terms, an exception may be considered a(n) _____
A:
child
B:
encapsulation
C:
message
D:
scalar type
Answer: C
No answer description is available. Let's discuss.
A derived class _____ override attributes of a parent class
A:
may
B:
may if the two classes have the same name
C:
must
D:
must not
Answer: A
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz