Which of the following symbol is used to pass a parameter by reference?
a) #
b) *
c) @
d) &
Which of the following function / types of function cannot have default parameters?
a) member function of class
b) main ()
c) member function of structure
d) both b & c
Which of the following is correct way to declare pure virtual function?
a) virtual void foo () =0;
b) void virtual foo={0}
c) virtual void foo () {} =0;
d) none of these
What is the scope of variable declared in user defined function?
a) whole program
b) only inside block {}
c) main function
d) none of these
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