Object Oriented Programming Using C++ – Section 6

26. The actual arguments cannot he

A. a constant or a variable
B. of a different type from the corresponding formal arguments
C. other functions
D. expressions
E. None of the above

Correct Answer:  B. of a different type from the corresponding formal argument

27. The function stricmp(“Jose”, “JOSE”) will return _____

A. – 1
B. 0
C. 1

Correct Answer:  B. 0

28. Which is true?

A. Coincidental cohesion is stronger than procedural cohesion
B. Logical cohesion is stronger than coincidental cohesion
C. Sequential cohesion is weaker than temporal cohesion
D. The weakest cohesion is functional

Correct Answer:  B. Logical cohesion is stronger than coincidental cohesion

29. A predefined function that may be used to handle memory allocation errors is

A. handle_error
B. set_new_handler
C. new_fix
D. memory_error

Correct Answer:  B. set_new_handler

30. A function in a derived class that has the same name as a function in the parent class _____

A. will cause an error message to display
B. will override the base class function
C. will be overridden by the base class function
D. will execute immediately after the base class function executes

Correct Answer:  B. will override the base class function

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

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

Leave A Comment?