C++ MCQs with answers Page - 136

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 binding of data and functions together into a single class‐type is referred to as ‐‐‐‐‐‐‐‐

  • (A) Abstraction
  • (B) Encapsulation
  • (C) Inheritance
  • (D) Polymorphism

A

Admin • 833.24K Points
Coach

Q. When a function is defined inside a class,it is treated as ‐‐‐‐‐‐‐

  • (A) Inline function
  • (B) Inside definition
  • (C) Inline definition
  • (D) Data function

A

Admin • 833.24K Points
Coach

Q. Calling a member function by using its name from another member function of the same class is known as ‐‐‐‐‐‐

  • (A) Grouping of member function
  • (B) Member function group
  • (C) Nesting of member function
  • (D) Nested group of member function

A

Admin • 833.24K Points
Coach

Q. ‐‐‐‐‐ function can only be called by another function that is a member of its class.

  • (A) Member function
  • (B) Private member function
  • (C) Nested member function
  • (D) Public member function

A

Admin • 833.24K Points
Coach

Q. ‐‐‐‐‐‐‐‐ are normally used to maintain values common to the entire class.

  • (A) Dynamic variables
  • (B) Static variables
  • (C) Private variables
  • (D) Public variables

A

Admin • 833.24K Points
Coach

Q. A static variable is initialized to ‐‐‐‐‐when the first object of its class is created.

  • (A) 1
  • (B) Null
  • (C) 0
  • (D) None of these

A

Admin • 833.24K Points
Coach

Q. The same function name having different tasks

  • (A) Function overloading
  • (B) Constructor overloading
  • (C) Polymorphism
  • (D) Operator overloading

A

Admin • 833.24K Points
Coach

Q. The main function having argument

  • (A) Default Argument
  • (B) Command line argument
  • (C) Const argument
  • (D) Constructor overloading

A

Admin • 833.24K Points
Coach

Q. A function calling itself

  • (A) Inline function
  • (B) Static function
  • (C) Friend function
  • (D) Recursion

A

Admin • 833.24K Points
Coach

Q. In object oriented Programming the program is divided into ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐.

  • (A) class
  • (B) object
  • (C) function
  • (D) none of these

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