C++ MCQs with answers Page - 125

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. Conversion of data type is called

  • (A) self referencing
  • (B) type casting
  • (C) virtual function
  • (D) abstract class

A

Admin • 833.24K Points
Coach

Q. The function that act as an interface to base & derived class

  • (A) function overloading
  • (B) virtual function
  • (C) constructor
  • (D) friend

A

Admin • 833.24K Points
Coach

Q. The keyword to convert constant into variable

  • (A) Const_cast
  • (B) reinterpret_cast
  • (C) static_cast
  • (D) implicit

A

Admin • 833.24K Points
Coach

Q. The keyword to convert pointer into non pointer & non pointer into pointer

  • (A) Const_cast
  • (B) reinterpret_cast
  • (C) static_cast
  • (D) implicit

A

Admin • 833.24K Points
Coach

Q. Treating the address of the object of the derived class as the address of the base class means

  • (A) Up casting
  • (B) down casting
  • (C) early binding
  • (D) late binding

A

Admin • 833.24K Points
Coach

Q. The empty virtual function are called

  • (A) pure /donothing
  • (B) virtual table
  • (C) polymorphism
  • (D) virtual base class

A

Admin • 833.24K Points
Coach

Q. A stream of byte that is the interface between IO and IO devices

  • (A) Streams
  • (B) class
  • (C) object
  • (D) file

A

Admin • 833.24K Points
Coach

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

  • (A) Ios
  • (B) iostream
  • (C) istream
  • (D) ostream

A

Admin • 833.24K Points
Coach

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

  • (A) Ios
  • (B) iostream
  • (C) istream
  • (D) ostream

A

Admin • 833.24K Points
Coach

Q. Which function is in the ostream class

  • (A) get()
  • (B) read()
  • (C) write
  • (D) cin

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