C++ Programming - OOPS Concepts

Exercise :: OOPS Concepts - General Questions

  • OOPS Concepts - General Questions
41. 

Which of the following operators cannot be overloaded?

A. []
B. ->
C. ?:
D. *

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

42. 

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.

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

43. 

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.

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.

44. 

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;

Answer: Option C

Explanation:

No answer description available for this question. Let us discuss.

45. 

Which of the following header file includes definition of cin and cout?

A. istream.h
B. ostream.h
C. iomanip.h
D. iostream.h

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.