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

51. Which one of the following is a built in function?
A. stringlen().
B. strlength().
C. strlen().
D. strleng().
ANSWER: C
52. ________ function is a function that calls itself repeatedly.
A. Friend.
B. Inline.
C. Recursive.
D. Member.
ANSWER: C
53. ________ is the process of using the same name for two or more functions.
A. Function overloading.
B. Operator overloading.
C. Default function.
D. Default function. Constructors.
ANSWER: A
54. A file is closed explicitly using_________.
A. fclose().
B. file_close().
C. fin.close().
D. filestream_object.close().
ANSWER: D
55. Which one of the following reads a single character from file?
A. cin().
B. put().
C. get().
D. getw().
ANSWER: C
56. ___________ is used to write a single character to output file.
A. cin().
B. put().
C. get().
D. getw().
ANSWER: B
57. The library function isalpha() requires the _______ header file.
A. <ctype.h>.
B. <math.h>.
C. <time.h>.
D. <stdlib.h>.
ANSWER: A
58. The technique of building new classes from existing classes is called _______.
A. inheritance
B. overloading
C. constructor
D. polymorphism
ANSWER: A
59. The class from which another class inherits the property is called __________ class.
A. derived
B. sub
C. subordinate
D. base
ANSWER: D
60. Base class is also called as ___________.
A. derived
B. sub
C. super
D. subordinate

ANSWER: C

No comments:

Post a Comment