C++ MCQs with answers Page - 113

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. When a virtual function is redefined by the derived class, it is called___________.

  • (A) Overloading
  • (B) Overriding
  • (C) Rewriting
  • (D) All of these

A

Admin • 833.24K Points
Coach

Q. While overloading binary operators using member function, it requires ___ argument/s.

  • (A) Zero
  • (B) One
  • (C) Two
  • (D) Three

A

Admin • 833.24K Points
Coach

Q. For automatic objects, constructors and destructors are called each time the objects

  • (A) enter and leave scope
  • (B) inherit parent class
  • (C) are constructed
  • (D) are destroyed

A

Admin • 833.24K Points
Coach

Q. Which operation is used as Logical 'AND'

  • (A) Operator-&
  • (B) Operator-
  • (C) Operator-&&
  • (D) Operator +

A

Admin • 833.24K Points
Coach

Q. When an ADT is implemented as a C++ class, which of the following should normally be true?

  • (A) Member functions are private, member variables are public
  • (B) Member functions are public, member variables are private
  • (C) Member functions as well as member variables are private
  • (D) Member functions as well as member variables are public

A

Admin • 833.24K Points
Coach

Q. Variable that are listed in function's calls are called

  • (A) Actual parameter
  • (B) Declared parameter
  • (C) Passed parameter
  • (D) None

A

Admin • 833.24K Points
Coach

Q. Which operations don’t throw anything?

  • (A) Operations which are reversible
  • (B) Operations which are irreversible
  • (C) Operations which are static
  • (D) Operations which are dynamic

A

Admin • 833.24K Points
Coach

Q. Which interface in the container is required for storage management?

  • (A) Memory management
  • (B) Allocator interface
  • (C) Memory interface
  • (D) None of the mentioned

A

Admin • 833.24K Points
Coach

Q. How can the member functions in the container be accessed?

  • (A) Iterator
  • (B) Indirect
  • (C) Both Iterator & Indirect
  • (D) None of the mentioned

A

Admin • 833.24K Points
Coach

Q. In which type of storage location are the vector members stored?

  • (A) Contiguous storage locations
  • (B) Non-contiguous storage locations
  • (C) Contiguous & Non-contiguous storage locations
  • (D) None of the mentioned

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