C++ MCQs with answers Page - 33

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. In CPP, cin and cout are the predefined stream __________ .

  • (A) Operator
  • (B) Functions
  • (C) Objects
  • (D) Data types

A

Admin • 833.24K Points
Coach

Q. Object oriented programming employs_________ programming approach.

  • (A) top-down
  • (B) procedural
  • (C) bottom-up
  • (D) all of these.

A

Admin • 833.24K Points
Coach

Q. Constant variables can be created in CPP by using ________ .

  • (A) #define
  • (B) const
  • (C) enum
  • (D) None of these

A

Admin • 833.24K Points
Coach

Q. A virtual function that has no definition within the base class is called____________

  • (A) Friend function
  • (B) Pure Const function
  • (C) Pure virtual function
  • (D) Pure static function

A

Admin • 833.24K Points
Coach

Q. Which one of the following is a keyword?

  • (A) Size
  • (B) Key
  • (C) Jump
  • (D) Switch

A

Admin • 833.24K Points
Coach

Q. ____ is the smallest individual unit in a program

  • (A) Variable
  • (B) Control
  • (C) Character
  • (D) Token

A

Admin • 833.24K Points
Coach

Q. What is a constant that contains a single character enclosed within single quotes?

  • (A) Character
  • (B) Numeric
  • (C) Fixed
  • (D) Floating point

A

Admin • 833.24K Points
Coach

Q. The modulus operator uses ___ character.

  • (A) +
  • (B) *
  • (C) /
  • (D) %

A

Admin • 833.24K Points
Coach

Q. Every variable should be separated by ___ separator.

  • (A) Dot
  • (B) Colon
  • (C) Comma
  • (D) Semicolon

A

Admin • 833.24K Points
Coach

Q. Auto, static, extern and register are called as ___

  • (A) Static
  • (B) Register
  • (C) Auto
  • (D) Storage specifier

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