Object Oriented Programming With C Plus Plus - Multiple Choice Questions -005

41. __________ is the symbol that precedes the destructor.
A. *
B. ~
C. &
D. @
ANSWER: B
42. The parameters specified in the function call are known as ____________ parameters
A. formal
B. actual
C. value
D. original
ANSWER: B
43. Which of the following will not return a value?
A. null
B. void
C. empty
D. free
ANSWER: B
44. _______ have the return type void?
A. all functions
B. constructors
C. destructors
D. none of the mentioned
ANSWER: D
45. Function overloading is also similar to which of the following?
A. operator overloading
B. constructor overloading
C. destructor overloading
D. none of the mentioned
ANSWER: B
46. The file iostream includes _______.
A. The declarations of the basic standard input-output library.
B. The streams of includes and outputs of program.
C. Comment lines.
D. only strings.
ANSWER: A
47. ________ function has access to all private and protected members of the class for which it is a friend.
A. Friend.
B. Member.
C. Nonmember.
D. Void.
ANSWER: A
48. _______ function allows to create very efficient code.
A. Friend.
B. Member.
C. Inline.
D. Void.
ANSWER: C
49. Which is not a loop structure?
A. for.
B. do while.
C. while.
D. repeat until.
ANSWER: D
50. A ______ is a variable that receives the value.
A. argument.
B. parameter.
C. variable.
D. array.

ANSWER: B

No comments:

Post a Comment