C++ MCQs with answers Page - 132

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. A variable is/are

  • (A) String that varies during program execution
  • (B) A portion of memory to store a determined value
  • (C) Those numbers that are frequently required in programs
  • (D) None of these

A

Admin • 833.24K Points
Coach

Q. By default, the members of a C++ class are:

  • (A) Private
  • (B) Public
  • (C) Protected
  • (D) None of these

A

Admin • 833.24K Points
Coach

Q. Which of the following function that must contain in all C++ Programs

  • (A) start()
  • (B) system()
  • (C) main()
  • (D) program()

A

Admin • 833.24K Points
Coach

Q. Which one of the following is the correct operator to compare two values

  • (A) :=
  • (B) =
  • (C) Equal
  • (D) = =

A

Admin • 833.24K Points
Coach

Q. C++ is originally developed by

  • (A) Nicolas Wirth
  • (B) Dennis Ritchi
  • (C) Bjarne Stroustrup
  • (D) Ken Thompson

A

Admin • 833.24K Points
Coach

Q. The operator ‘<< ‘is called

  • (A) Get from operator
  • (B) Put to operator
  • (C) Extraction operator
  • (D) None of these

A

Admin • 833.24K Points
Coach

Q. Identify the unary operator.

  • (A) ? , :
  • (B) ++
  • (C) +
  • (D) %

A

Admin • 833.24K Points
Coach

Q. The ‐‐‐‐‐‐‐ are used to check the relationship between two numeric operands or expressions.

  • (A) Logical operators
  • (B) Relational operators
  • (C) Arithmetic operators
  • (D) Bitwise operators

A

Admin • 833.24K Points
Coach

Q. To increase the value of c by one which of the following statement is wrong?

  • (A) c++;
  • (B) c = c + 1;
  • (C) c + 1 => c;
  • (D) c += 1

A

Admin • 833.24K Points
Coach

Q. In an assignment statement a=b Which of the following statement is true?

  • (A) The variable a and the variable b are equal.
  • (B) The value of b is assigned to variable a but the later changes on variable b will not affect the value of variable a
  • (C) The value of b is assigned to variable a and the later changes on variable b will affect the value of variable a
  • (D) The value of variable a is assigned to variable b and the value of variable b is assigned to variable a.

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