Q.

Which of the following definition is incorrect for polymorphism?

A.  

Polymorphism helps in redefining the same functionality

B.  

Polymorphism concept is the feature of object-oriented programming (OOP)

C.  

It always increases the overhead of function definition

D.  

Ease in the readability of the program

Similar Questions
1.

What is the full form of oop

A.  

Object oriented programming

B.  

Oriented object programming

C.  

Office oriented programming

D.  

office objective programming

2.

What is the output of below program ?

int main()

{

int a = 10;

cout<<a++;

return 0;

}

 

A.  

10

B.  

11

C.  

12

D.  

Not defined

3.

class base

{

public:

      base()

      {          

          cout<<"BCon";

      }

      ~base()

      {

   cout<<"BDest ";

      }

};

class derived: public base

{

public:

     derived()

      {     cout<<"DCon ";

      }

      ~derived()

      {     cout<<"DDest ";

      }

};

int main()

{

derived object;

return 0;  

}

A.  

Dcon DDest

B.  

Dcon DDest BCon BDest

C.  

BCon DCon DDest BDest

D.  

BCon DCon BDes DDest

4.

//What is the value of a in below program?

int main()

{

int a, b=20;

a = 90/b;

return 0;

}

 

A.  

4.5

B.  

4.0

C.  

4

D.  

Compilation Error

5.

Which operator has highest precedence ?

A.  

()

B.  

=

C.  

*

D.  

++

6.

Which operator has highest precedence in * / % ?

A.  

*

B.  

/

C.  

%

D.  

all have same precedence

7.

How to access and edit data in data file handling using structures

A.  

read()

B.  

write()

C.  

both A and B

D.  

without read()

8.

What is output of below program?

int main()

{

 const int a=10;

 a++;

 cout<<a;

return 0;

 

}

A.  

10

B.  

11

C.  

Compilation Error

D.  

Linking Error

9.

How many times CppBuzz.com is printed?

 

int main()

{

   int i=0;

   lbl:

   cout<<"CppBuzz.com";

   i++;

   if(i<5)

   {

goto lbl;

   }

return 0;

}

 

A.  

Error

B.  

5 times

C.  

4 times

D.  

6 times

10.

Can we overload functions in C++ ?

A.  

Yes

B.  

No

C.  

Compilation Error

D.  

Runtime Error

PROGRAMMING IN C++ TOPICS