C++ MCQs with answers Page - 6

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. goto can be classified into?

  • (A) label
  • (B) variable
  • (C) operator
  • (D) function

A

Admin • 833.24K Points
Coach

Q. Identify the correct definition of ‘*’ operator in pointer.

  • (A) Address of operator
  • (B) Value of address operator
  • (C) Multiplication operator
  • (D) All of the above

A

Admin • 833.24K Points
Coach

Q. By which of the following can the if-else statement be replaced?

  • (A) Bitwise operator
  • (B) Logical operator
  • (C) Conditional operator
  • (D) Arithmetic operator

A

Admin • 833.24K Points
Coach

Q. Choose the correct default return value of function.

  • (A) int
  • (B) void
  • (C) char
  • (D) float

A

Admin • 833.24K Points
Coach

Q. Using which of the following data type can 19.54 be represented?

  • (A) void
  • (B) double
  • (C) int
  • (D) None

A

Admin • 833.24K Points
Coach

Q. When can an inline function be expanded?

  • (A) Runtime
  • (B) Compile time
  • (C) Never gets expanded
  • (D) All of the above

A

Admin • 833.24K Points
Coach

Q. Identify the correct function from which the execution of C++ program starts?

  • (A) new()
  • (B) start()
  • (C) pow()
  • (D) main()

A

Admin • 833.24K Points
Coach

Q. Choose the correct option which is mandatory in a function.

  • (A) return_type
  • (B) parameters
  • (C) function_name
  • (D) Both a and c

A

Admin • 833.24K Points
Coach

Q. The constants in C++ are also known as?

  • (A) pre-processor
  • (B) literals
  • (C) const
  • (D) none

A

Admin • 833.24K Points
Coach

Q. Using which of the following keywords can an exception be generated?

  • (A) threw
  • (B) throws
  • (C) throw
  • (D) catch

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