C++ MCQs with answers Page - 114

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. What do container adapter provide to interface?

  • (A) Restricted interface
  • (B) More interface
  • (C) No interface
  • (D) None

A

Admin • 833.24K Points
Coach

Q. What does the sequence adaptor provide?

  • (A) Insertion
  • (B) Deletion
  • (C) Interface to sequence container
  • (D) None

A

Admin • 833.24K Points
Coach

Q. At which time does the static_cast can be applied?

  • (A) Compile-time construct
  • (B) Runtime construct
  • (C) Both Compile-time & Runtime construct
  • (D) None

A

Admin • 833.24K Points
Coach

Q. String class have a concat() function that is used to _____________________

  • (A) Replace old string by new string
  • (B) Add two strings
  • (C) Append one string at end of another string
  • (D) Remove a string from end of one string

A

Admin • 833.24K Points
Coach

Q. Which among the following is/are type(s) of this pointer?

  • (A) const
  • (B) volatile
  • (C) const or volatile
  • (D) int

A

Admin • 833.24K Points
Coach

Q. Which is the pointer which denotes the object calling the member function?

  • (A) Variable pointer
  • (B) This pointer
  • (C) Null pointer
  • (D) Zero pointer

A

Admin • 833.24K Points
Coach

Q. Which property is shown most when upcasting is used?

  • (A) Code reusability
  • (B) Code efficiency
  • (C) Complex code simple syntax
  • (D) Encapsulation

A

Admin • 833.24K Points
Coach

Q. If multiple inheritance is implemented, which upcasting will be correct?

  • (A) Upcast to first base class listed in inheritance
  • (B) Upcast to any base class
  • (C) Upcast to send base class listed in inheritance
  • (D) Upcast is not possible

A

Admin • 833.24K Points
Coach

Q. Which among the following is a mandatory condition for downcasting?

  • (A) It must not be done explicitly
  • (B) It must be done implicitly
  • (C) It must be done explicitly
  • (D) It can’t be done explicitly

A

Admin • 833.24K Points
Coach

Q. Which container provides random access iterators?

  • (A) vector
  • (B) deque
  • (C) sort
  • (D) both vector & deque

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