OOPs (NCO)
Description: It contains basic concepts of OOPs. | |
Number of Questions: 25 | |
Created by: Amit Pandey | |
Tags: OOPs C |
Which of the following is a special member function that is automatically called whenever an object of the class is destroyed?
A function call mechanism that passes arguments to a function by another name of arguments is
In the given options which one is not a OOPs concept?
In C++, which operator is used to access a global object or global data or static data member which is defined outside the class?
Which of the following is the valid class declaration header for the derived class A with base classes B and C?
Which of the following is not the characteristic of constructor?
The process in which a class is defined within another class is called
If a class C is derived from class B, which is derived from class A, all through public inheritance, then this type of inheritance is called
A constructor which takes arbitrary number of arguments is called
A function that is declared within the base class, but redefined inside the derived class is called
Which of the following is not the characteristics of a friend function?
Which of the following is not the characteristics of a static data member?
Which of the following is not the characteristic of destructor?
Which visibility mode is used for data hiding in OOPs?
If you want to open a file from initial position to the end of file, then which of the following modes is used?
Which of the following defines an instance of class disk?
Encapsulation feature of OOPs __________ data from user.
A non-static function requires ___________ to access data.
Which of the following is not true about abstract class?
The functions that change an object’s state or attributes are called
You have defined a class named Book that contains two non-static private fields, book_number and price. When you write a main () function and declare one Book object named Book1, you can display the object’s price field with the statement
A function or group of functions that differ in the types of parameters they use is called
A constructor is defined as Sum(int a = 10, float b = 10.0, char d = 'k'). Which of the following is a not legal statement that uses the constructor?
Which of the following is not the characteristic of virtual function?
The process of creating objects out of class is called