Top 150+ Solved Object Oriented Programming with C++ (OOP in C++) MCQ Questions Answer
Q. In OOP which cocept provides the idea of reusability.
a. inheritance
b. encapsulation
c. data hiding
d. polymorphism
Q. What are the basic run time entities in an object oriented program?
a. objects
b. functions
c. datas
d. none of these
Q. Tne multiple use of input and output operator is called …………….
a. polymorphism
b. inheritance
c. cascading
d. none of these.
Q. Which of the following is not a feature of OOPs.
a. polymorphism
b. inheritance
c. dynamic binding
d. none of these.
Q. Which of the following is a UML relationship.
a. dependency
b. association
c. generalization
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
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.
Q. We declare a function with ______ if it does not have any return type
a. long
b. double
c. void
d. int
Q. There is a unique function in C++ program by where all C++ programs start their execution
a. start()
b. begin()
c. main()
d. output()
Q. Which of the following is a correct comment?
a. */ Comments */
b. ** Comment **
c. /* Comment */
d. { Comment }
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