C++ MCQs with answers Page - 61

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 does STL stand for?

  • (A) Single Type-based Library
  • (B) Static Type Library
  • (C) Standard Template Library
  • (D) Simple Template Library

A

Admin • 833.24K Points
Coach

Q. What is the difference between overloaded functions and overridden functions?

  • (A) Redefining a function in a friend class is called function overloading while Redefining a function in a derived class is called as overridden function.
  • (B) Overloading is a static or compile-time binding and Overriding is dynamic or run-time binding
  • (C) Redefining a function in a friend class is called function overriding while Redefining a function in a derived class is called an overloaded function.
  • (D) Overloading is a dynamic or run-time binding and Overriding is static or compile-time binding

A

Admin • 833.24K Points
Coach

Q. Which one of the following is not a valid reserved keyword in C++

  • (A) Private
  • (B) Implicit
  • (C) Public
  • (D) Explicit

A

Admin • 833.24K Points
Coach

Q. Each pass through a loop is called a/an

  • (A) pass through
  • (B) culmination
  • (C) iteration
  • (D) enumeration

A

Admin • 833.24K Points
Coach

Q. Which of the following is true about const member functions?

  • (A) nonconst members can be invoked on const objects as well as nonconst objects
  • (B) const members can be invoked on both const as well as nonconst objects
  • (C) Both A and B
  • (D) const members can be invoked only on const objects and not on nonconst objects

A

Admin • 833.24K Points
Coach

Q. Which of the following relationship is known as inheritancerelationship?

  • (A) ‘has-a’ relationship
  • (B) association relationship
  • (C) ‘is-a’ relationship
  • (D) None of these

A

Admin • 833.24K Points
Coach

Q. If class A is friend of class B and if class B is friend of class C, which of the following is true?

  • (A) Class C is friend of class A
  • (B) Class A is friend of class C
  • (C) Class A and Class C do not have any friend relationship
  • (D) None of the above

A

Admin • 833.24K Points
Coach

Q. A direct access file is:

  • (A) A file in which recoreds are arranged in a way they are inserted in a file
  • (B) A file in which records are arranged in a particular order
  • (C) Files which are stored on a direct access storage medium
  • (D) None of the above

A

Admin • 833.24K Points
Coach

Q. Which of the following is not a component of file system

  • (A) Access method
  • (B) Auxiliary storage management
  • (C) Free integrity mechanism
  • (D) None of the above

A

Admin • 833.24K Points
Coach

Q. Seek time is

  • (A) time taken to retrieve a dta
  • (B) Time taken by read/write head mechanism to position itself over appropriate cylinder
  • (C) Time taken by appropriate sector to come under read/write
  • (D) None of the above

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