IndiaBIX
IndiaBIX
Start typing & press "Enter" or "ESC" to close
  • Home
  • Jobs
  • Results
  • Current Affairs
  • GK
  • Online Test
  • HR Interview
  • BLOG

OOPS Concepts (2)

  • Home
  • Computer Science & Engineering
  • C++ Programming Questions and Answers
  • OOPS Concepts
9. 

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

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

10. 

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.

Answer: Option D

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

11. 

Which of the following keyword is used to overload an operator?

A. overload
B. operator
C. friend
D. override

Answer: Option B

Explanation:

No answer description available for this question. Let us discuss.
View Answer Discuss Workspace Report

12. 

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.
View Answer Discuss Workspace Report

13. 

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.
View Answer Discuss Workspace Report

14. 

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.
View Answer Discuss Workspace Report

15. 

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.
View Answer Discuss Workspace Report

16. 

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.
View Answer Discuss Workspace Report

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7

Questions & Answers

Aptitude Chemical Engineering Civil Engineering Computer Science & Engineering Current Affairs Data Interpretation Electrical & Electronics Engineering Electronics & Communication Engineering General Knowledge Logical Reasoning Mechanical Engineering Non Verbal Reasoning Verbal Ability Verbal Reasoning

Interviews

HR Interview

Jobs

Sarkari Jobs

Results

Rojgar ResultSarkari Result

Admission

Admission 2023

Admit Card

Admit Card 2023

Answer Key

Answer Key 2023
copyright
Privacy Policy
© 2025 IndiaBIX. All Rights Reserved.

Report