C++ MCQs with answers Page - 126

Here, you will find a collection of MCQ questions on C++. Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. Which function is in the istream class

  • (A) get()
  • (B) put()
  • (C) write
  • (D) cout

A

Admin • 833.24K Points
Coach

Q. The standard library inherited from istream & ostream

  • (A) Ios
  • (B) iostream
  • (C) ifstream
  • (D) ofstream

A

Admin • 833.24K Points
Coach

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

  • (A) get()
  • (B) put()
  • (C) getline()
  • (D) write()

A

Admin • 833.24K Points
Coach

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

  • (A) get()
  • (B) put()
  • (C) getline()
  • (D) write()

A

Admin • 833.24K Points
Coach

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

  • (A) get()
  • (B) put()
  • (C) getline()
  • (D) write()

A

Admin • 833.24K Points
Coach

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

  • (A) get()
  • (B) put()
  • (C) getline()
  • (D) write()

A

Admin • 833.24K Points
Coach

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

  • (A) setw()
  • (B) set precision()
  • (C) set fill()
  • (D) setiosflags()

A

Admin • 833.24K Points
Coach

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()

A

Admin • 833.24K Points
Coach

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

  • (A) width()
  • (B) precision()
  • (C) fill()
  • (D) setf()

A

Admin • 833.24K Points
Coach

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

  • (A) width()
  • (B) precision()
  • (C) fill()
  • (D) setf()

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ