941. Which value is placed in the base class?
A. Derived values
B. Default type values
C. Both A & B
D. None of the mentioned

942. The friend functions and the member functions of a friend class can directly access the______________ data.
A. Private and protected
B. Private and public
C. Protected and public
D. Private, protected and public

943. class X, class Y and class Z are derived from class BASE. This is ______ inheritance.
A. Multiple
B. Multilevel
C. Hierarchical
D. Single

944. Private members of the class are not inheritable.
A. TRUE
B. FALSE
C. May Be
D. Can’t Say

945. Which stream class is to only write on files ?
A. ofstream
B. ifstream
C. fstream
D. iostream

946. It is not possible to combine two or more file opening mode in open () method.
A. TRUE
B. FALSE
C. May Be
D. Can’t Say

947. Which of these is the correct statement about eof() ?
A. Returns true if a file open for reading has reached the next character.
B. Returns true if a file open for reading has reached the next word.
C. Returns true if a file open for reading has reached the end.
D. Returns true if a file open for reading has reached the middle.

948. Which of the following true about FILE *fp
A. FILE is a structure and fp is a pointer to the structure of FILE type
B. FILE is a buffered stream
C. FILE is a keyword in C for representing files and fp is a variable of FILE type
D. FILE is a stream

949. Which of the following methods can be used to open a file in file handling?
A. Using Open ( )
B. Constructor method
C. Destructor method
D. Both A and B

950. Which operator is used to insert the data into file?
A. >>
B. <<
C. <
D. None of the above

Leave a Reply