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

From 31 to 45 of 87

Q. The conditional compilation

a. it is taken care of by the compiler

b. it is setting the compiler option conditionally

c. it is compiling a program based on a condition

d. none of above

  • d. none of above

Q. Originally ‘C’ was developed as:

a. system programming language

b. general purpose language

c. data processing language

d. none of above

  • c. data processing language

Q. An inverted file

a. locates information about data in small files that are maintained apart from actual data record

b. a file which stores opposite records

c. a file which stores information about records of a system

d. none of above

  • b. a file which stores opposite records

Q. Which of the following is not a file operation:

a. repositioning

b. truncating

c. appending

d. none of above

  • a. repositioning

Q. Latency time is:

a. time taken by read/write head mechanism to position itself over appropriate cylinder

b. time taken to transfer a dta from memory

c. time taken by appropriate sector to come under read/write head

d. none of above

  • d. none of above

Q. The two types of file structure existing in VSAM file are

a. key sequenced structure, entry sequenced structure

b. key sequence structure, exit sequenced structure

c. entry sequence structure, exit sequenced structure

d. none of above

  • c. entry sequence structure, exit sequenced structure

Q. How many copies of a class static member are shared between objects of the class?

a. a copy of the static member is shared by all objects of a class

b. a copy is created only when at least one object is created from that class

c. a copy of the static member is created for each instntiation of the class

d. no memory is allocated for static members of a class

  • c. a copy of the static member is created for each instntiation of the class

Q. Which looping process checks the test condition at the end of the loop?

a. for

b. while

c. do-while

d. no looping process checks the test condition at the end

  • c. do-while

Q. The default access level assigned to members of a class is ___________

a. private

b. public

c. protected

d. needs to be assigned

  • c. protected

Q. Which of the following correctly describes the meaning of‘namespace’ feature in C++?

a. namespaces refer to the memory space allocated for names used in a program

b. namespaces refer to space between the names in a program

c. namespaces refer to packing structure of classes in a program.

d. namespaces provide facilities for organizing the names in aprogram to avoid name clashes.

  • a. namespaces refer to the memory space allocated for names used in a program

Q. Which of the following correctly describes the meaning of ‘namespace’ feature in C++?

a. namespaces refer to the memory space allocated for names used in a program

b. namespaces refer to space between teh names in a program

c. namespaces refer to space between the names in a program

d. namespaces provide facilities for organizing the names in a program to avoid name clashes

  • d. namespaces provide facilities for organizing the names in a program to avoid name clashes

Q. Which of the following language is not supported by C++?

a. exception handling

b. reflection

c. operator overloading

d. namespaces

  • d. namespaces

Q. class derived: public base1, public base2 { } is an example of

a. polymorphic inheritance

b. multilevel inheritance

c. hierarchical inheritance

d. multiple inheritance

  • b. multilevel inheritance

Q. Which of the following languages is a subset of C++ language?

a. c language

b. java language

c. c# language

d. language

  • d. language

Q. How do we declare an ‘interface’ class?

a. by making all the methods pure virtual in a class

b. by making all the methods abstract using the keyword ‘abstract’ in a class

c. by declaring the class as interface with the keyword ‘interface’

d. it is not possible to create interface class in c++

  • a. by making all the methods pure virtual in a class
Subscribe Now

Get All Updates & News