Top 80+ Solved Object Oriented Programming (OOP) MCQ Questions Answer

From 61 to 75 of 94

Q. What will be the values of x, m and n after execution of the following statements? Int x, m, n;m=10; n=15;x= ++m + n++;

a. x=25, m=10, n=15

b. x=27, m=10, n=15

c. x=26, m=11, n=16

d. x=27, m=11, n=16

  • c. x=26, m=11, n=16

Q. Which of the following approach is adapted by C++?

a. top-down

b. bottom-up

c. right-left

d. left-right

  • b. bottom-up

Q. Which of the following is the correct class of the object cout?

a. iostream

b. istream

c. ostream

d. ifstream

  • c. ostream

Q. Which of the following functions are performed by a constructor?

a. construct a new class

b. construct a new object

c. construct a new function

d. initialize objects

  • d. initialize objects

Q. Which of the following ways are legal to access a class data member using this pointer?

a. this->x

b. this.x

c. *this.x

d. *this-x

  • a. this->x

Q. Which operator is having right to left associativity in the following?

a. array subscripting

b. function call

c. addition and subtraction

d. type cast

  • d. type cast

Q. Which operator is having the highest precedence?

a. postfix

b. unary

c. shift

d. equality

  • a. postfix

Q. In procedural programming the focus in on …...........

a. data

b. structure

c. function

d. pointers

  • c. function

Q. In object oriented programming the focus is on ….......

a. data

b. structure

c. function

d. pointers

  • a. data

Q. Which of the following feature of procedure oriented program is false?

a. makes use of bottom up approach

b. functions share global data

c. the most fundamental unit of program is function

d. all of these

  • a. makes use of bottom up approach

Q. Which of the following feature of object oriented program is false?

a. data and functions can be added easily

b. data can be hidden from outside world

c. object can communicate with each other

d. the focus is on procedures

  • d. the focus is on procedures

Q. C++ was originally developed by ….......

a. donald knuth

b. bjarne sroustrups

c. dennis ritchie

d. none of these

  • b. bjarne sroustrups

Q. Which of the following approach is adopted in C++?

a. top down

b. bottom up

c. horizontal

d. vertical

  • b. bottom up

Q. Which feature of C++ contain the concept of super class and subclass?

a. class and object

b. encapsulation

c. abstraction

d. inheritance

  • d. inheritance
Subscribe Now

Get All Updates & News