Object Oriented Programming Using C++ – Section 2


Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

Warning: Undefined variable $ext in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/show-hidecollapse-expand/bg_show_hide.php on line 281

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

Warning: Undefined variable $in_same_cat in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Warning: Undefined variable $excluded_categories in /www/wwwroot/gkfeed.com/public_html/wp-content/plugins/EXP.GKFEED.COM/function.php on line 27

Leave A Comment?