C++ MCQs with answers Page - 34

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. How many storage specifies are there in a C++?

  • (A) 2
  • (B) 3
  • (C) 4
  • (D) 5

A

Admin • 833.24K Points
Coach

Q. Signed, unsigned, long and short are some of the ___

  • (A) Void
  • (B) Data
  • (C) Derived data
  • (D) Modifiers

A

Admin • 833.24K Points
Coach

Q. Logical AND (&&) and Logical OR (||) are ___ operators.

  • (A) Logical
  • (B) Equality
  • (C) Class member
  • (D) Comma

A

Admin • 833.24K Points
Coach

Q. ____ operators have lower precedence to relational and arithmetic operators.

  • (A) Conditional
  • (B) Boolean
  • (C) Relational
  • (D) Logical

A

Admin • 833.24K Points
Coach

Q. How many C++ data types are broadly classified?

  • (A) 2
  • (B) 3
  • (C) 4
  • (D) 5

A

Admin • 833.24K Points
Coach

Q. Float and double are related to ____ data type.

  • (A) Void
  • (B) Fixed
  • (C) Floating
  • (D) Integral

A

Admin • 833.24K Points
Coach

Q. Variable names must begin with ___

  • (A) #
  • (B) $
  • (C) Number
  • (D) Letter

A

Admin • 833.24K Points
Coach

Q. Integer values are stored in ___ bit format in binary form.

  • (A) 8
  • (B) 32
  • (C) 16
  • (D) 64

A

Admin • 833.24K Points
Coach

Q. What is the output of the following C++ code?

Code:
#include <iostream>
using namespace std;
int main()
{
   void x = 5, y = 5;
   int s;
   s = x + y;
   cout << s;
   return 0;
}
  • (A) 10
  • (B) Runtime error
  • (C) Compilation error
  • (D) None of these

A

Admin • 833.24K Points
Coach

Q. Identify the wrong option.

  • (A) Enumerations are constants.
  • (B) Enums are user-defined types.
  • (C) The enumeration values start at 0 by default.
  • (D) Enumerations are the same as macros.

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