Top 150+ Solved Object Oriented Programming with C++ (OOP in C++) MCQ Questions Answer

From 121 to 134 of 134

Q. The class that derived from standard library ios contain output functions

a. Ios

b. iostream

c. istream

d. ostream

  • d. ostream

Q. Which function is in the ostream class

a. get()

b. read()

c. write

d. cin

  • c. write

Q. Which function is in the istream class

a. get()

b. put()

c. write

d. cout

  • a. get()

Q. The standard library inherited from istream & ostream

a. Ios

b. iostream

c. ifstream

d. ofstream

  • b. iostream

Q. The function used to receive one character at a time

a. get()

b. put()

c. getline()

d. write()

  • a. get()

Q. The function used to disply one character at a time

a. get()

b. put()

c. getline()

d. write()

  • b. put()

Q. The function used to receive one line at a time

a. get()

b. put()

c. getline()

d. write()

  • c. getline()

Q. The function used to display one line at a time

a. get()

b. put()

c. getline()

d. write()

  • d. write()

Q. The function contain in the ios class to set width

a. width()

b. precision()

c. fill()

d. setf()

  • a. width()

Q. The function contain in the class iomanip to set width

a. setw()

b. set precision()

c. set fill()

d. setiosflags()

  • a. setw()

Q. The function contain in the class iomanip to fill characters in the un used space

a. setw()

b. set precision()

c. set fill()

d. setiosflags()

  • c. set fill()

Q. The function contain in the ios class to fill characters in the blank space

a. width()

b. precision()

c. fill()

d. setf()

  • c. fill()

Q. The function contain in the ios class to specify number of decimal places

a. width()

b. precision()

c. fill()

d. setf()

  • b. precision()

Q. The function contain in the ios class to set flags

a. width()

b. precision()

c. fill()

d. setf()

  • d. setf()
Subscribe Now

Get All Updates & News