Top 80+ Solved Object Oriented Programming In cpp MCQ Questions Answer

From 16 to 30 of 87

Q. Which of the following is not a standard exception built in C++.

a. std::bad_creat

b. std::bad_alloc

c. std::bad_cast

d. std::bad_typeid

  • a. std::bad_creat

Q. What does STL stand for?

a. simple template library

b. standard template library

c. static type library

d. single type-based library

  • b. standard template library

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

a. overloading is a dynamic or run-time binding and overriding is static or compile-time binding

b. redefining a function in a friend class is called function overriding while redefining a function in a derived class is called an overloaded function.

c. overloading is a static or compile-time binding and overriding is dynamic or run-time binding

d. 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. redefining a function in a friend class is called function overriding while redefining a function in a derived class is called an overloaded function.

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

a. explicit

b. public

c. implicit

d. private

  • c. implicit

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

a. enumeration

b. iteration

c. culmination

d. pass through

  • c. culmination

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

a. const members can be invoked on both const as well as nonconst objects

b. const members can be invoked only on const objects and not on nonconst objects

c. nonconst members can be invoked on const objects as well as nonconst objects

d. none of the above

  • b. const members can be invoked only on const objects and not on nonconst objects

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

a. ‘has-a’ relationship

b. ‘is-a’ relationship

c. association relationship

d. none of the above

  • a. ‘has-a’ relationship

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

  • b. class a is friend of class c

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

  • c. files which are stored on a direct access storage medium

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

  • c. free integrity mechanism

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

  • d. none of the above

Q. ‘Prime area’ in context of file system is defined as

a. it is memory area created by operating system

b. it is an area into which data records are written

c. it is the main area of a web page

d. none of the above

  • b. it is an area into which data records are written

Q. In mulit-list organization

a. records that have equivalent value for a given secondary index item are linked together to form a list.

b. records are loaded in ordered sequence defined by collating sequence by content of the key

c. records are directly accessed by record key field

d. none of the above

  • b. records are loaded in ordered sequence defined by collating sequence by content of the key

Q. Which of the following is/are advantages of cellular partitioned structure:

a. simultaneous read operations can be overlapped

b. search time is reduced

c. both a & b

d. none of the above

  • a. simultaneous read operations can be overlapped

Q. *ptr++ is equivalenet to:

a. ptr++

b. *ptr

c. ++*ptr

d. none of the above

  • c. ++*ptr
Subscribe Now

Get All Updates & News