Object Oriented Programming Using C++ – Section 2

21. The items listed in the function header are called _____

A. actual arguments
B. formal parameters
C. passed parameters
D. sent arguments

Correct Answer:  B. formal parameters
Advertisement

22. A translator that notes whether you have used a language correctly may be called a _____

A. theasurus
B. compiler
C. coder
D. decoder

Correct Answer:  B. compiler
Advertisement

23. 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

Correct Answer:  B. polymorphism
Advertisement

24. 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
E. None of the above

Correct Answer:  D. the function accesses the argument’s original value in the calling program
Advertisement

25. The process of extracting the relevant attributes of an object is known as

A. polymorphism
B. inheritance
C. abstraction
D. data hiding

Correct Answer:  C. abstraction
Advertisement

Leave A Comment?