Top 150+ Solved Object Oriented Programming with C++ (OOP in C++) MCQ Questions Answer

From 1 to 15 of 134

Q. Which one is the Object Oriented Programming language?

a. Cobol

b. C

c. C++

d. both C & C++

  • c. C++

Q. In OOP which cocept provides the idea of reusability.

a. inheritance

b. encapsulation

c. data hiding

d. polymorphism

  • a. inheritance

Q. What are the basic run time entities in an object oriented program?

a. objects

b. functions

c. datas

d. none of these

  • a. objects

Q. Tne multiple use of input and output operator is called …………….

a. polymorphism

b. inheritance

c. cascading

d. none of these.

  • c. cascading

Q. Which of the following is not a feature of OOPs.

a. polymorphism

b. inheritance

c. dynamic binding

d. none of these.

  • d. none of these.

Q. Which of the following is a UML relationship.

a. dependency

b. association

c. generalization

d. all of the above

  • d. all of the above

Q. Which of the following is a UML constituents

a. things

b. relationships

c. diagrams

d. all of the above

  • d. all of the above

Q. Find the false statement from the following

a. An identifier in C++ is defined as an unlimited sequence of characters.

b. The first character must be an alphabet followed by digits or underscore or alphabets.

c. Identifiers are not case sensitive.

d. You can use both uppercase and lower case alphabets in the same identifier.

  • c. Identifiers are not case sensitive.

Q. Array indexing always starts with the number

a. 0

b. 1

c. 2

d. \0

Q. We declare a function with ______ if it does not have any return type

a. long

b. double

c. void

d. int

  • c. void

Q. Which of the following is selection statement in C++?

a. Break

b. goto

c. exit

d. switch

  • d. switch

Q. Which of the following is a correct comment?

a. */ Comments */

b. ** Comment **

c. /* Comment */

d. { Comment }

  • c. /* Comment */

Q. Which of the following is not a correct variable type?

a. Float

b. Real

c. Int

d. double

  • b. Real

Q. A variable is/are

a. String that varies during program execution

b. A portion of memory to store a determined value

c. Those numbers that are frequently required in programs

d. None of these

  • b. A portion of memory to store a determined value
Subscribe Now

Get All Updates & News