Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
OOPS Concepts Questions
In C++, which of the following are legal ways to access a data member x from inside a member function using the this pointer? Assume x is a non-static data member of the current class.
Consider the statements about operator overloading in C++: I) All operators can be overloaded. II) We can change the basic meaning of an operator. Which option correctly evaluates these statements?
For the standard output stream object cout (std::cout), which operator is overloaded to support formatted output? Select the operator commonly chained in printing expressions.
Which statement correctly captures the relationship between classes and objects in C++? Choose the standard definition used in OOP.
Which kind of class pattern allows only one object of the class to be created throughout the program's lifetime? Identify the design that enforces single-instance control.
Which C++ feature allows the compiler to insert missing arguments at the call site using specified defaults? Identify the mechanism that fills in omitted parameters automatically.
In C++, which of the following is not a member of a class by definition? Identify the construct that has access but is not itself a class member.
Which of the following best represents an abstract data type (ADT) in C++? Choose the option that encapsulates data and behavior behind an interface.
In type theory terms, what kind of polymorphism does function overloading in C++ exemplify? Pick the standard category used to describe overloading.
C++ OOP: which is the correct syntax to declare a pure virtual function? Choose the exact declaration form used in an abstract base class.
Object-oriented basics in C++: which concept refers to wrapping data and functions together into a single unit?
C++ constructors: which of the following is NOT a constructor type?
C++ classes: what is the default access specifier for members inside a class definition?
C++ object lifecycle: when is a constructor invoked for a class object?
C++ iostreams: what exactly is cout in standard C++?
C++ headers: which header provides the declarations for both cin and cout (per classic options listed)?
Late binding in C++: which feature enables runtime selection of the method implementation?
Name hiding vs overriding: if base and derived define a function with the same prototype, which function is called?
C++ inline functions: which statements are correct about their impact?
In object-oriented programming with C++, which concept best matches the statement: “The compiler checks the type of the reference used for a call rather than the actual object’s type.” Select the most appropriate concept name.
1
2
3