Which of the following support function overloading and default
program?
a) inheritance
b) polymorphism
c) encapsulation
d) all of these
What is the output of following?
float x=3.1496;
cout<<set precision(2) <<x;
a) 3.14
b) 3.15
c) 3
d) 3.1
Which of the following is correct using default argument?
a) int foo (int x, int y=5, int z=10)
b) int foo (int x=5, int y=10, int z)
c) int foo (int x=5, int y, int z=10)
d) all of these
How many functions needed to be represented in C++?
a) 0
b) 1
c) 2
d) 3
Unary scope resolution operator is denoted by…..
a) !!
b) %%
c) :
d) ::
Which of the following functions are provided by compiler default?
a) copy constructor
b) assignment
c) constructor
d) all of these