C++ MCQs with answers Page - 43

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. The operands and the operators are grouped in a specific logical way of evaluation is called ____

  • (A) Class
  • (B) Arithmetic
  • (C) Association
  • (D) Assignment

A

Admin • 833.24K Points
Coach

Q. Which of the following are good reasons to use an object oriented language?

  • (A) An object oriented program can be taught to correct its own errors
  • (B) Program statements are simpler than in procedural language
  • (C) We can define our own data types
  • (D) None of these

A

Admin • 833.24K Points
Coach

Q. In a class specified, data or functions and designated private are accessible

  • (A) To member functions of that class
  • (B) To any function in the program
  • (C) Only if you know the password
  • (D) Only to public members of class

A

Admin • 833.24K Points
Coach

Q. When a language has the capability to produce new data types, it is called

  • (A) Extensible
  • (B) Reprehensible
  • (C) Encapsulated
  • (D) None of these

A

Admin • 833.24K Points
Coach

Q. Keyword typed is used to declare

  • (A) A member function that is defined in a subclass
  • (B) Objects that can be modified outside of a program control
  • (C) Absence of a type
  • (D) A synonym for an existing type

A

Admin • 833.24K Points
Coach

Q. In C++ programming language, to write data that contains variables of type flat to an object of type of stream, which of the following should be used?

  • (A) Insertion operator
  • (B) Write ( )
  • (C) Seekg ( )
  • (D) Put ( )

A

Admin • 833.24K Points
Coach

Q. Which one gives special meaning to the language compiler?

  • (A) Compiler
  • (B) Keywords
  • (C) Variable
  • (D) Constant

A

Admin • 833.24K Points
Coach

Q. Which operator requires one operand?

  • (A) Unary
  • (B) Binary
  • (C) Ternary
  • (D) Both (a) and (b)

A

Admin • 833.24K Points
Coach

Q. ___ data type to indicate the function does not return a value.

  • (A) Void
  • (B) Public
  • (C) Main
  • (D) Static

A

Admin • 833.24K Points
Coach

Q. ___ type is further divided into int and char.

  • (A) Integral
  • (B) Char
  • (C) Int
  • (D) Float

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