C++ Programming - OOPS Concepts

Exercise : OOPS Concepts - General Questions
  • OOPS Concepts - General Questions
41.
Which of the following operators cannot be overloaded?
[]
->
?:
*
Answer: Option
Explanation:
No answer description is available. Let's discuss.

42.
In which of the following a virtual call is resolved at the time of compilation?
From inside the destructor.
From inside the constructor.
From inside the main().
Both A and B.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

43.
Which of the following statements regarding inline functions is correct?
It speeds up execution.
It slows down execution.
It increases the code size.
Both A and C.
Answer: Option
Explanation:
No answer description is available. Let's discuss.

44.
Which one of the following is the correct way to declare a pure virtual function?
virtual void Display(void){0};
virtual void Display = 0;
virtual void Display(void) = 0;
void Display(void) = 0;
Answer: Option
Explanation:
No answer description is available. Let's discuss.

45.
Which of the following header file includes definition of cin and cout?
istream.h
ostream.h
iomanip.h
iostream.h
Answer: Option
Explanation:
No answer description is available. Let's discuss.