Curioustab
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Aptitude
General Knowledge
Verbal Reasoning
Computer Science
Interview
Objects and Classes Questions
Which of the following statements is correct about the constructors and destructors?
How can we make a class abstract?
What does the class definitions in following code represent? class Bike { Engine objEng; }; class Engine { float CC; };
Which of the following statements about virtual base classes is correct?
Which of the following type of data member can be shared by all instances of its class?
Which of the following statement is correct with respect to the use of friend keyword inside a class?
Which of the following statements are correct for a static member function? It can access only other static members of its class. It can be called using the class name, instead of objects.
Which of the following statements is correct when a class is inherited publicly?
Which of the following access specifies is used in a class definition by default?
Which of the following statement is correct regarding destructor of base class?
What does a class hierarchy depict?
Which of the following statements is correct about the program given below? class CuriousTab { public: static void MyFunction(); }; int main() { void(*ptr)() = &CuriousTab::MyFunction; return 0; }
Which of the following also known as an instance of a class?
Which of the following can be overloaded?
What happens when we try to compile the class definition in following code snippet? class Birds {}; class Peacock : protected Birds {};
Which of the following two entities (reading from Left to Right) can be connected by the dot operator?
Which of the following is the only technical difference between structures and classes in C++?
Which of the following means "The use of an object of one class in definition of another class"?
Which of the following can access private data members or member functions of a class?
Which of the following keywords is used to control access to a class member?
1
2
3