--:--









Quiz for Concepts of Object-Oriented Programming (OOP)

Course: C++ Language | Subject: Unit 4 | Topic: Classes and Objects



Logo

Q1: Which of the following is NOT a basic concept of OOP?

Logo

Q2: What does encapsulation mean in OOP?

Logo

Q3: Which feature allows using the same function name with different parameters?

Logo

Q4: Inheritance in OOP allows:

Logo

Q5: Abstraction in OOP means:

Logo

Q6: Which of the following represents a class?

Logo

Q7: An object in OOP is:

Logo

Q8: Which keyword is used to define a class in C++?

Logo

Q9: What is a constructor?

Logo

Q10: What is a destructor?

Logo

Q11: Which access specifier allows members to be accessed only inside the class?

Logo

Q12: Which access specifier allows members to be accessed from anywhere?

Logo

Q13: Which feature allows a class to use another class's properties?

Logo

Q14: Which of the following is true about polymorphism?

Logo

Q15: Which OOP concept helps reduce complexity by hiding unnecessary details?

Logo

Q16: What does the keyword "this" refer to in a class?

Logo

Q17: Which of the following is NOT a benefit of OOP?

Logo

Q18: What is the difference between class and struct in C++?

Logo

Q19: Which of the following is an example of polymorphism?

Are you ready to start test? Set your time limit