OOPS Concepts Questions

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

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

Questions

Open any question to view the answer and explanation.

In standard C++ iostreams, what is the dynamic type (class) of the object std::cout? Choose the correct library type name.
Open
View answer
Consider the statements about when function calls are resolved: I) In procedure-oriented programming, all function calls are resolved at compile time. II) In object-oriented programming (OOP), all function calls are resolved at compile time. Which option correctly evaluates I and II?
Open
View answer
In C++, which statement about classes and structures is correct? Assume standard C++ (not C) access defaults and capabilities.
Open
View answer
In object-oriented design, which concept best matches “exposing only the necessary information to the client and hiding the rest”? Pick the most appropriate OOP term.
Open
View answer
Which of the following statements about C++ classes and structures is correct? Consider access control defaults and member capabilities.
Open
View answer
Which of the following is NOT a recognized form of inheritance in C++ class hierarchies? Select the option that does not name a standard inheritance pattern.
Open
View answer
Which is the correct way to declare a constant (const-qualified) member function in C++? Assume the intention is to prevent modification of the object's state.
Open
View answer
How many instances (objects) of an abstract class can be directly created in C++? Choose the correct count.
Open
View answer
In C++ programming, which of the following entities cannot be declared as a friend of a class? Identify the item that cannot gain friend-level access.
Open
View answer
C++ exceptions and errors: which kind of problem actually causes an exception at runtime? Choose the most accurate scenario among compile-time vs run-time issues.
Open
View answer
C++ inheritance syntax: which of the following is an invalid visibility label in a base-class list?
Open
View answer
C++ inheritance identification: what inheritance type does the following class use? class A : public X, public Y {}
Open
View answer
C++ operator overloading: which keyword is used in a function signature to overload an operator?
Open
View answer
C++ classes: what if a class is declared without a name (an anonymous class)? Choose the best statement based on standard practice.
Open
View answer
C++ static members: which statements about static data and static member functions are correct?
Open
View answer
C++ references vs pointers: why is a reference not the same as a pointer? Select the best comprehensive reason.
Open
View answer
C++ pointers and inheritance: which statement is correct regarding pointers to base and derived classes?
Open
View answer

Practice smarter

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