Question - 1
Which of the following is an abstract data type?
Answer- D
Question - 2
Which feature of OOPS derives the class from another class?
- Inheritance
- Data hiding
- Encapsulation
- Polymorphism
Solutions
Answer- A
Question - 3
How many instances of an abstract class can be created?
Answer- A
Question - 4
Which of the following cannot be used with the keyword virtual?
- Class
- Member functions
- Constructor
- Destructor
Solutions
Answer- C
Question - 5
Which class cannot create its instance?
- Parent class
- Nested class
- Anonymous class
- Abstract class
Solutions
Answer- D
Question - 6
Which is not a feature of OOP in general definitions?
- Code reusability
- Modularity
- Duplicate/Redundant data
- Efficient Code
Solutions
Answer- C
Question - 7
Which of the following is not a type of constructor?
- Default constructor
- Friend constructor
- Copy constructor
- Parameterized constructor
Solutions
Answer- B
Question - 8
Which of the following best defines a class?
- Parent of an object
- Instance of an object
- Blueprint of an object
- Scope of an object
Solutions
Answer- B
Question - 9
Which of the following is not the type of class?
- Abstract Class
- Final Class
- Start Class
- String Class
Solutions
Answer- C
Question - 10
Which of the following is correct for the copy constructor?
- The argument object is passed by reference
- It can be defined with zero arguments
- Used when an object is passed by value to a function
- Used when a function returns an object
Solutions
Answer- B
Question - 11
The principle of abstraction ___.
- is used to achieve OOPS
- Use abstraction at its minimum
- is used to avoid duplication
- is used to remove longer codes
Solutions
Answer- C
Question - 12
Which keyword is used to inherit a class or abstract class?
- Extends
- Implement
- Super
- None of the above
Solutions
Answer- A
Question - 13
Which of the following is Access Modifiers in OOPs?
- Private
- Public
- Protected
- All of the above
Solutions
Answer- D
Question - 14
Which of the following access specifier is used as a default in a class definition?
- Private
- Public
- Protected
- Friend
Solutions
Answer- A
Question - 15
Which syntax for class definition is wrong?
- class student{ student(int a){} };
- student class{ };
- class student{ public: student(int a){ } };
- class student{ student(int a){} };
Solutions
Answer- B
Question - 16
Which is known as Static Polymorphism?
- Compile Time
- Run Time
- Both A & B
- None of the above
Solutions
Answer- A
Question - 17
Which of the following is not a type of inheritance?
- Multiple
- Multilevel
- Distributive
- Hierarchical
Solutions
Answer- C
Question - 18
Which of the following is the correct way of declaring a function as constant?
- const int ShowData(void) { /* statements */ }
- int const ShowData(void) { /* statements */ }
- int ShowData(void) const { /* statements */ }
- Both A and B
Solutions
Answer- C
Question - 19
Which of the following operators cannot be overloaded?
Answer- C
Question - 20
Which inheritance type is used in the class given below? class A : public X, public Y {}
- Multilevel inheritance
- Multiple inheritance
- Hybrid inheritance
- Hierarchical Inheritance
Solutions
Answer- B
Practice more set questions