Aptitude Reasoning English GK Computer Knowledge Programming Skill Banking Software Testing



Question - 1

Which of the following is an abstract data type?

  • Int
  • Double
  • String
  • Class
Solutions
Question - 2

Which feature of OOPS derives the class from another class?

  • Inheritance
  • Data hiding
  • Encapsulation
  • Polymorphism
Solutions
Question - 3

How many instances of an abstract class can be created?

  • 0
  • 2
  • 3
  • 9
Solutions
Question - 4

Which of the following cannot be used with the keyword virtual?

  • Class
  • Member functions
  • Constructor
  • Destructor
Solutions
Question - 5

Which class cannot create its instance?

  • Parent class
  • Nested class
  • Anonymous class
  • Abstract class
Solutions
Question - 6

Which is not a feature of OOP in general definitions?

  • Code reusability
  • Modularity
  • Duplicate/Redundant data
  • Efficient Code
Solutions
Question - 7

Which of the following is not a type of constructor?

  • Default constructor
  • Friend constructor
  • Copy constructor
  • Parameterized constructor
Solutions
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
Question - 9

Which of the following is not the type of class?

  • Abstract Class
  • Final Class
  • Start Class
  • String Class
Solutions
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
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
Question - 12

Which keyword is used to inherit a class or abstract class?

  • Extends
  • Implement
  • Super
  • None of the above
Solutions
Question - 13

Which of the following is Access Modifiers in OOPs?

  • Private
  • Public
  • Protected
  • All of the above
Solutions
Question - 14

Which of the following access specifier is used as a default in a class definition?

  • Private
  • Public
  • Protected
  • Friend
Solutions
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
Question - 16

Which is known as Static Polymorphism?

  • Compile Time
  • Run Time
  • Both A & B
  • None of the above
Solutions
Question - 17

Which of the following is not a type of inheritance?

  • Multiple
  • Multilevel
  • Distributive
  • Hierarchical
Solutions
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
Question - 19

Which of the following operators cannot be overloaded?

  • []
  • ->
  • ?:
  • *
Solutions
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
Tags:
Oops MCQ (Multiple Choice Questions), Advanced Oops MCQ, Oops MCQ Online test,Oops MCQ Questions and answers PDF, Oops Interview Questions With Answers, Oops Technical Questions with full explanation