OOPS Concepts Questions

Practice OOPS Concepts MCQs with answers and explanations. Page 1 of 3.

Category
C++ Programming
Topic
OOPS Concepts
Page
1 / 3
Mode
Practice

Questions

Open any question to view the answer and explanation.

Which of the following statements about C++ type checking and static member functions are correct? Select the most accurate combination based on the C++ language rules.
Open
View answer
Which statements correctly describe C++ function overloading? Choose all that make two functions with the same name distinct overloads.
Open
View answer
Which OOP concept means deciding at runtime which method implementation to invoke for a call through a base interface? Identify the correct term used in C++ for this behavior.
Open
View answer
Which programming approach is primarily associated with C++ and object-oriented design? Choose the best match for how systems are modeled and built.
Open
View answer
How many major kinds of polymorphism does C++ support? Distinguish by when binding happens relative to compile time.
Open
View answer
In C++ access control, which members are intended to be accessible only within the class and its derived classes (i.e., within the class hierarchy chain)? Choose the best match for “available only in the hierarchy”.
Open
View answer
In C++, which of the following cannot be declared with the keyword virtual? Select the entity for which virtual is not permitted.
Open
View answer
Which C++ operator cannot be overloaded by user code? Identify the operator that is excluded from overloading rules.
Open
View answer
In object-oriented C++, which feature primarily provides a code-reuse mechanism? Select the concept most directly associated with reusing existing implementations.
Open
View answer
In modern C++, which of the following are mechanisms of static (compile-time) polymorphism? Choose the option that best captures all techniques resolved before runtime.
Open
View answer
In C++, how do you make a class abstract (i.e., uninstantiable and intended as an interface/base)? Select the standard language feature used to enforce abstractness.
Open
View answer
Which concept refers to adding new program components while the application is running (rather than at compile/link time)? Pick the term commonly used in C/C++ systems.
Open
View answer
In C++, what is the term for a function that is defined inside a class definition? Choose the standard name used in OOP and C++.
Open
View answer
In C++, how is late binding (deciding the override at runtime) implemented under the hood? Identify the common mechanism used by compilers.
Open
View answer
Which C++ concept lets one class contain and manage objects of another class as part of its own state? Select the composition-style reuse mechanism.
Open
View answer
In C++, what are the primary roles of a constructor? Choose the option that best reflects what constructors actually do.
Open
View answer
What can a friend function access in a C++ class? Identify the correct scope of access granted by friendship.
Open
View answer
Why is reusability considered a desirable feature in a programming language and ecosystem? Select the most defensible advantages commonly achieved by reuse.
Open
View answer
In which contexts are virtual calls effectively resolved at compile time (i.e., dynamic dispatch is suppressed) in C++? Choose the standard situations where a virtual call does not dispatch to a more derived override at runtime.
Open
View answer
In C++ object-oriented programming, which concept refers to waiting until runtime to decide which actual function implementation will be called through a base interface? Choose the best term that names this runtime decision process.
Open
View answer

Practice smarter

Solve a few questions daily and revisit weak topics regularly to improve accuracy.