Which of the following operators cannot be overloaded?
A -
[]
B -
->
C -
?:
D -
*
2-
In which of the following a virtual call is resolved at the time of compilation?
A -
From inside the destructor.
B -
From inside the constructor.
C -
From inside the main().
D -
Both A and B.
3-
Which of the following statements regarding inline functions is correct?
A -
It speeds up execution.
B -
It slows down execution.
C -
It increases the code size.
D -
Both A and C.
4-
Which one of the following is the correct way to declare a pure virtual function?
A -
virtual void Display(void){0};
B -
virtual void Display = 0;
C -
virtual void Display(void) = 0;
D -
void Display(void) = 0;
5-
Which of the following header file includes definition of cin and cout?
A -
iostream.h
B -
iomanip.h
C -
ostream.h
D -
istream.h
6-
Which of the following keyword is used to overload an operator?
A -
overload
B -
operator
C -
friend
D -
override
7-
What will happen if a class is not having any name?
A -
It cannot have a destructor.
B -
It cannot have a constructor.
C -
It is not allowed.
D -
Both A and B.
8-
Which inheritance type is used in the class given below?
class A : public X, public Y
{}
A -
Multilevel inheritance
B -
Multiple inheritance
C -
Hybrid inheritance
D -
Hierarchical Inheritance
9-
Which one of the following is correct about the statements given below?
1/ All function calls are resolved at compile-time in Procedure Oriented Programming.
2/ All function calls are resolved at compile-time in OOPS.
A -
Only II is correct.
B -
Both I and II are correct.
C -
Only I is correct.
D -
Both I and II are incorrect.
10-
Which of the following is an invalid visibility label while inheriting a class?