Object Oriented Programming Using C++ – Section 3

36. The name of a function ends with

A. double quotes
B. single quotes
C. parenthesis
D. #
E. None of the above

Correct Answer: C. parenthesis

37. Which of the following is not a programming control structure?

A. repetition
B. selection
C. sequence
D. sorting

Correct Answer: D. sorting

38. The bitwise OR operator is a

A. unary operator
B. binary operator
C. ternary operator
D. octal operator
E. None of the above

Correct Answer: B. binary operator

39. A class Stockltems has four data members and three function members. You define 50 objects as members of the class. Which is true?

A. Only one copy of each of the three functions exists
B. Only one copy of each of the four data members exists
C. Both (a) and (b) are true
D. Neither (a) nor (b) is true

Correct Answer: A. Only one copy of each of the three functions exists

40. The continue statement should be written only

A. in the body of a loop.
B. in the nested loops
C. outside the body of a loop
D. anywhere
E. None of the above

Correct Answer: A. in the body of a loop.

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?