Exercise: Object Oriented Programming Using Cpp

Questions for: Object Oriented Programming Using Cpp

When an argument is passed by reference,
A:
a variable is created in the function to hold the argument's value
B:
the function cannot access the argument's value
C:
a temporary variable is created in the calling program to hold the argument's value
D:
the function accesses the argument's original value in the calling program
Answer: D
No answer description is available. Let's discuss.
The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, is_____
A:
inheritance
B:
polymorphism
C:
overfunctioning
D:
overriding
Answer: B
No answer description is available. Let's discuss.
A translator that notes whether you have used a language correctly may be called a _____
A:
theasurus
B:
compiler
C:
coder
D:
decoder
Answer: B
No answer description is available. Let's discuss.
The items listed in the function header are called _____
A:
actual arguments
B:
formal parameters
C:
passed parameters
D:
sent arguments
Answer: B
No answer description is available. Let's discuss.
In a C++ program, which of the following can be thrown?
A:
scalar variables
B:
programmer-defined objects
C:
both (a) and (b)
D:
neither (a) nor (b)
Answer: B
No answer description is available. Let's discuss.
Ad Slot (Above Pagination)
Quiz