C++ MCQs with answers Page - 5

Dear candidates you will find MCQ questions of C++ here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Share your questions by clicking Add Question

U

Uday Singh • 7.23K Points
Tutor III

Q. What is a comment in c++?

  • (A) comments are executable
  • (B) comments are parts of the source code disregarded by the compiler
  • (C) comments are executed by the compiler to find the meaning of the comment
  • (D) All of above

U

Uday Singh • 7.23K Points
Tutor III

Q. How many types of comments are there in c++?

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

B

Brijesh Goswami • 9.45K Points
Tutor III

Q. Identify the correct extension of the user-defined header file in C++.

  • (A) .cpp
  • (B) .hg
  • (C) .h
  • (D) .hf

B

Brijesh Goswami • 9.45K Points
Tutor III

Q. Identify the incorrect constructor type.

  • (A) Friend constructor
  • (B) Default constructor
  • (C) Parameterized constructor
  • (D) Copy constructor

B

Brijesh Goswami • 9.45K Points
Tutor III

Q. C++ uses which approach?

  • (A) right -left
  • (B) Top-down
  • (C) left-right
  • (D) bottom -up

B

Brijesh Goswami • 9.45K Points
Tutor III

Q. Which of the following data type is supported in C++ but not in C?

  • (A) int
  • (B) bool
  • (C) double
  • (D) float

B

Brijesh Goswami • 9.45K Points
Tutor III

Q. Identify the correct syntax for declaring arrays in C++.

  • (A) array arr[10]
  • (B) array{10}
  • (C) int arr[10]
  • (D) int arr

B

Brijesh Goswami • 9.45K Points
Tutor III

Q. Size of wchat_t is.

  • (A) 2
  • (B) 4
  • (C) 2 or 4
  • (D) Depends on number of bits in system

B

Brijesh Goswami • 9.45K Points
Tutor III

Q. Which of the following is “address of operator”?.

  • (A) *
  • (B) &
  • (C) []
  • (D) &&

B

Brijesh Goswami • 9.45K Points
Tutor III

Q. identify the correct example for a pre-increment operator.

  • (A) ++n
  • (B) n++
  • (C) - -n
  • (D) +n

Loding content...

Download our easy to use, user friendly Android App from Play Store. And learn MCQs with one click.

Image

Login

Forgot username? click here

Forgot password? Click here

Don't have account? Register here.