Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Take Free Test
Objects and Classes Questions
C++ constructors vs. destructors: which statement correctly compares their ability to take arguments and return values?
C++ abstract classes: what is the correct way to make a class abstract (non-instantiable)?
C++ class design: what relationship is expressed by the following definitions? class Bike { Engine objEng; }; class Engine { float CC; };
C++ virtual base classes: what is their primary purpose in a multiple-inheritance hierarchy?
C++ data members: which category is shared by all instances of the class?
C++ friendship: which statement correctly describes valid use of the friend keyword inside a class?
C++ static member functions: evaluate two claims about their access and how they are called.
C++ public inheritance: under public inheritance, how do base-class public members appear in the derived class?
C++ classes: what is the default access specifier used inside a class definition (if none is written)?
In C++ polymorphic class design, which statement is correct regarding the destructor of a base class that may be deleted through a base pointer? Choose the best practice that prevents resource leaks and undefined behavior.
In object-oriented analysis and design (C++/UML), what does a class hierarchy primarily depict? Select the relationship a class–subclass tree is intended to model.
C++ static member function pointer: consider the program below. What is the correct outcome when compiling/linking? class CuriousTab { public: static void MyFunction(); }; int main() { void(ptr)() = &CuriousTab::MyFunction; return 0; }
In C++ terminology, which entity is also known as an instance of a class? Select the most accurate term used in object-oriented programming.
In C++ language features, which of the following can be overloaded to provide multiple meanings based on parameter types or counts? Choose the most complete answer.
C++ inheritance syntax check: what happens when compiling the following class definitions? class Birds {}; class Peacock : protected Birds {};
Dot operator (.) in C++: which pair of entities, read from left to right, can it legally connect? Pick the most precise description of member access.
C++ syntax basics: what is the only technical difference between a struct and a class in C++ (ignoring stylistic conventions)?
In object-oriented design, what term describes the use of an object of one class inside the definition of another class (i.e., a has-a relationship)?
Access control in C++ classes: who can access private data members or private member functions of a class? Choose the most accurate rule.
In C++ access control, which keyword is used specifically to control access to a class member (i.e., to set its accessibility level within and outside the class)?
1
2
3