In OOP which cocept provides the idea of reusability.

A.        inheritance

B.        encapsulation

C.        data hiding

D.        polymorphism

The process of making an operator to exhibit different behaviors in different instances is called ‐‐‐‐‐.

A.        function overloading

B.        operator overloading

C.        inheritance

D.        none of these

The process of making a function to exhibit different behaviors in different instances is called ‐‐‐‐‐.

A.        function overloading

B.        operator overloading

C.        inheritance

D.        none of these

Objects communicate with one another by using ‐‐‐‐‐‐‐‐‐‐.

A.        message passing

B.        operator overloading

C.        inheritance

D.        both a & b

Through ‐‐‐‐‐‐‐‐ we can eliminate redundant code and extend the use of existing class.

A.        inheritance

B.        operator overloading

C.        encapsulation

D.        both a & b

The ‐‐‐‐‐‐‐‐‐ principle helps the programmer to build secure programs.

A.        operator overloading

B.        encapsulation

C.        data hiding

D.        polymorphism

What are the basic run time entities in an object oriented program?

A.        objects

B.        functions

C.        datas

D.        none of these

 

Which function best describe the concept of polymorphism in programming languages?

A.        Class member function

B.        Virtual function

C.        Inline function

D.        Undefined function

Which member function is assumed to call first when there is a case of using function overloading or abstract class?

A.        Global function

B.        Local function

C.        Function with lowest priority

D.        Function with the highest priority

Which of the following language uses the classes but not the polymorphism concept?

A.        Procedure Oriented language

B.        Object-based language

C.        Class-based language

D.        If classes are used, then the polymorphism concept will always be used in the programming languages.

Which of the following OOP concept is not true for the C++ programming language?

A.        A class must have member functions

B.        C++ Program can be easily written without the use of classes

C.        At least one instance should be declared within the C++ program

D.        C++ Program must contain at least one class

What is the extra feature in classes which was not in the structures?

A.        Member functions

B.        Data members

C.        Public access specifier

D.        Static Data allowed

How many types of polymorphism in the C++ programming language?

A.        Three types of polymorphism

B.        Two types of polymorphism

C.        Five types of polymorphism

D.        Four types of polymorphism

Which of the following feature is also known as run-time binding or late binding?

A.        Dynamic typing

B.        Dynamic loading

C.        Dynamic binding

D.        Data hiding

Which among the following is not a member of the class?

A.        Virtual function

B.        const function

C.        Static function

D.        Friend function

Which of the following class is known as the generic class?

A.        Final class

B.        Template class

C.        Abstract class

D.        Efficient code

Which operator overloads using the friend function?

A.        *

B.        ( )

C.        ->

D.        =

Which of the following OOP concept binds the code and data together and keeps them secure from the outside world?

A.        Polymorphism

B.        Inheritance

C.        Abstraction

D.        Encapsulation

Which member of the superclass is never accessible to the subclass?

A.        Public member

B.        Protected member

C.        Private member

D.        All of the mentioned

Which class cannot create its instance?

A.        Parent class

B.        Nested class

C.        Anonymous class

D.        Abstract class

OOPs follows ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ approach during program design.

A.        top down

B.        bottom ‐up

C.        both a & b

D.        none of these

In object oriented Programming the program is divided into ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐.

A.        class

B.        object

C.        function

D.        none of these

Which one is the Object Oriented Programming language?

A.        Cobol

B.        C

C.        C++

D.        both C & C++

The wrapping up of data and functions into a single unit is called ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐.

A.        inheritance

B.        encapsulation

C.        data hiding

D.        polymorphism

The process by which objects of one class acquire the properties of objects of another class is called ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ .

A.        abstraction

B.        inheritance

C.        encapsulation

D.        polymorphism

The technique of Hiding internal details in an object is called‐‐‐‐‐

A.        encapsulation

B.        functions

C.        Abstraction

D.        inheritance

classes are ‐‐‐‐‐‐‐‐ datatype.

A.        derived

B.        user‐defined

C.        built‐in

D.        both a & c

‐‐‐‐‐‐‐‐‐‐ provides interface between the object’s data and program.

A.        object

B.        functions

C.        class

D.        polymorphism

‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ refers to the linking of procedure call to the code to be executed in response to the call.

A.        polymorphism

B.        functions

C.        dynamic binding

D.        object

A ‐‐‐‐‐‐‐‐ for an object is a request for execution of a procedure.

A.        object

B.        functions

C.        dynamic binding

D.        message

The << operator is known as‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐.

A.        put to

B.        get from

C.        insertion

D.        both a & c

The >> operator is known as‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐.

A.        put to

B.        get from

C.        extraction

D.        both b & c

‐‐‐‐‐‐‐‐ contains function prototype for the standard input and output functions.

A.        iomanip.h

B.        iostream.h

C.        stdlib.h

D.        both a & b

In C++ default return type for all the functions is ‐‐‐‐‐‐‐‐‐.

A.        int

B.        void

C.        float

D.        none of these

The multiple use of input and output operator is called …………….

A.        polymorphism

B.        inheritance

C.        cascading

D.        none of these.

Which of the following is not a feature of OOPs.

A.        polymorphism

B.        inheritance

C.        dynamic binding

D.        none of these.

‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ model is also known as linear sequential model.

A.        prototype model

B.        waterfall model

C.        spiral model

D.        none of these

In UML ‐‐‐‐‐‐‐‐‐‐‐‐‐‐‐ is a collection of things tied together through relationships.

A.        things

B.        relationships

C.        diagrams

D.        none of these

Which of the following language was developed as the first purely object programming language?

A.        SmallTalk

B.        C++

C.        Kotlin

D.        Java

Who developed object-oriented programming?

A.        Adele Goldberg

B.        Dennis Ritchie

C.        Alan Kay

D.        Andrea Ferro

Which of the following is not an OOPS concept?

A.        Encapsulation

B.        Polymorphism

C.        Exception

D.        Abstraction

Which feature of OOPS described the reusability of code?

A.        Abstraction

B.        Encapsulation

C.        Polymorphism

D.        Inheritance

Which of the following language supports polymorphism but not the classes?

A.        C++ programming language

B.        Java programming language

C.        Ada programming language

D.        C# programming language

Which among the following feature is not in the general definition of OOPS?

A.        Modularity

B.        Efficient Code

C.        Code reusability

D.        Duplicate or Redundant Data

Which feature of OOPS derives the class from another class?

A.        Inheritance

B.        Data hiding

C.        Encapsulation

D.        Polymorphism

Define the programming language, which does not support all four types of inheritance?

A.        Smalltalk

B.        Kotlin

C.        Java

D.        C++

A single program of OOPS contains _______ classes?

A.        Only 1

B.        Only 999

C.        Only 100

D.        Any number

Which operator from the following can be used to illustrate the feature of polymorphism?

A.        Overloading <<

B.        Overloading &&

C.        Overloading | |

D.        Overloading +=

Which two features of object-oriented programming are the same?

A.        Abstraction and Polymorphism features are the same

B.        Inheritance and Encapsulation features are the same

C.        Encapsulation and Polymorphism features are the same

D.        Encapsulation and Abstraction

Which header file is required by the C++ programming language to use the OOPS concept?

A.        stdio.h

B.        iostream.h

C.        stdliB.h

D.        We can easily use the OOPS concepts in c++ programs without using any header file.

Which of the following definition is incorrect for polymorphism?

A.        Polymorphism helps in redefining the same functionality

B.        Polymorphism concept is the feature of object-oriented programming (OOP)

C.        It always increases the overhead of function definition

D.        Ease in the readability of the program

Which among the following cannot be used for the concept of polymorphism?

A.        Static member function

B.        Constructor Overloading

C.        Member function overloading

D.        Global member function

Which of the following variable violates the definition of encapsulation?

A.        Array variables

B.        Local variables

C.        Global variables

D.        Public variables

 

How can the concept of encapsulation be achieved in the program?

A.        By using the Access specifiers

B.        By using the concept of Abstraction

C.        By using only private members

D.        By using the concept of Inheritance

The concept of encapsulation helps in writing which type of classes in the Java programming language?

A.        Abstract classes

B.        Wrapper classes

C.        Mutable classes

D.        Immutable classes

Which of the following statement of a program is not right?

A.        class teacher{ }; teacher s[5];

B.        class teacher{ }s;

C.        class teacher{ }; teacher s;

D.        class teacher{ }s[];

Which of the following syntax is incorrect for the class definition?

A.        student class{ };

B.        class student{ student(int a){} };

C.        class teacher{ public: teacher(int a){ } };

D.        None of the mentioned

The object cannot be________?

A.        passed by copy

B.        passed as function

C.        passed by value

D.        passed by reference

Which among the following feature does not come under the concept of OOPS?

A.        Data binding

B.        Data hiding

C.        Platform independent

D.        Message passing

Which of the following feature may be breaked if the user does not use the classes in the code?

A.        Object must be used violated

B.        Only the encapsulation concept is violated

C.        Inheritance cannot be implemented

D.        Basically, all the features of OOPS get violated

Which of the following feature interacts one object with another object?

A.        Message reading

B.        Message passing

C.        Data transfer

D.        Data binding

The combination of abstraction of the data and code is viewed in________.

A.        Inheritance

B.        Object

C.        Class

D.        Interfaces

Using the concept of encapsulation security of the data is ___________

A.        Ensured to some extent

B.        Purely ensured

C.        Not ensured

D.        Very low

The name of the default access specifier for the member functions or data members in the C++ programming language is_________.

A.        Private access specifier

B.        Public access specifier

C.        Protected access specifier

D.        Depends on compiler

 

To convert from a user-defined class to a basic type, you would most likely use
A.           an overloaded = operator

B.            a one-argument constructor
C.            a built-in conversion operator
D.           a conversion operator that‘s a member of the class

Inheritance is a way to
A.           pass arguments to objects of classes
B.            add features to existing classes without rewriting them

C.            improve data-hiding and encapsulation
D.           organize data

Which one of the following features of OOP is used to derive a class from another?
A.           Encapsulation
B.            Polymorphism
C.            Data hiding
D.           Inheritance

What is a class?
A.           A class is the part of an object that contains the variables
B.            A class is a description of a kind of object

C.            A class is a section of the hard disk reserved for object oriented programs
D.           A class is a section of computer memory containing objects

The main function of scope resolution operator (::) is,
A.           To define an object
B.            To define a data member

C.            To link the definition of an identifier to its declaration
D.           All of the given

Which of the following operators always takes no argument if overloaded?
A.           ++

B.            /
C.           
D.           +

Assume a class C with objects obj1, obj2, and obj3. For the statement obj3 = obj1 – obj2 to work correctly, if the overloaded – operator must
A.           take two arguments

B.            take four arguments
C.            create a named temporary object
D.           return a value

The keyword that is used that the variable can not change state?
A.           static
B.            friend
C.            private
D.           const

Using encapsulation we can achieve
A.           Implementation independence
B.            Information hiding
C.            Least inter-dependencies among modules
D.           All of given options

A member function having the same name as that of a class and a ~ sign with it is called,
A.           Setter
B.            Getter
C.            Constructor
D.           Destructor

We can get only one unique value which can be used by all the objects of that class by the use of
A.           instance variables
B.            dynamic variables
C.            static variables

D.           data members

Which of the following features of OOP is used to derive a class from another?
A.           Encapsulation
B.            Data hiding
C.            Polymorphism
D.           Inheritance

A good model is ________ related to a real life problem
A.           Closely
B.            Openly
C.            Loosely

D.           None of these

Information hiding can be achieved through
A.           Encapsulation, Abstraction

B.            Encapsulation, Polymorphism
C.            Encapsulation, Inheritance
D.           Overloading

A C++ class is similar to
A.           Structure

B.            Library File
C.            Header File
D.           None of these

In object orientated programming, a class of objects cans _____________ properties from another class of objects
A.           Utilize
B.            Inherit

C.            Borrow
D.           Adopt

The technique in which we visualize our programming problems according to real life‘s problems is called
A.           structured programming
B.            procedural programming
C.            object oriented Programming

D.           None of these

Using encapsulation we can achieve
A.           Implementation independence
B.            Information hiding
C.            Least inter-dependencies among modules
D.           All of given options

A member function having the same name as that of a class and a ~ sign with it is called,
A.           Setter
B.            Getter
C.            Constructor
D.           Destructor

We can get only one unique value which can be used by all the objects of that class by the use of
A.           instance variables
B.            dynamic variables
C.            static variables

D.           data members

We can call base class constructor from derived class constructor
A.           We can not call the base class constructor
B.            From the initializer list of derived class constructor
C.            From derived class constructor body

D.           From any member function of derived class

Consider the code below, class class1{ public: int I; }; class class2 : public class1 { }; Then int member I of class1 is ______ in class2
A.           private
B.            public

C.            protected
D.           None of these

Consider the following two lines of code written for a class Student, 1. Student subj1,subj2; 2. subj2 = subj1; In line No.2 what constructor of Student class will be called
A.           Default constructor of Student class

B.            Copy constructor of student class
C.            Both default and copy constructer of Student class
D.           No constructor will be called

Child class can call constructor of its
A.           Direct base class

B.            Both direct and indirect base classes
C.            Indirect base class
D.           None of these

In private inheritance derived class pointer can be assigned to base class pointer in
A.           In base class member and friend functions

B.            In derived class member and friend functions
C.            Main function
D.           None of these

Consider the code below, class class1{ protected: int i; }; class class2 : public class1 { }; Then int member I of class1 is ______ in class2
A.           public
B.            protected

C.            private
D.           None of these

In case of dynamic memory allocation in a class we should use
A.           User defined default constructor
B.            Both a & c

C.            User defined copy constructor
D.           None of these

Which of the following features of OOP is used to derive a class from another?
A.           Encapsulation
B.            Data hiding
C.            Polymorphism
D.           Inheritance

A good model is ________ related to a real life problem
A.           Closely
B.            Openly
C.            Loosely

D.           None of these

Information hiding can be achieved through
A.           Encapsulation, Abstraction

B.            Encapsulation, Polymorphism
C.            Encapsulation, Inheritance
D.           Overloading

A C++ class is similar to
A.           Structure

B.            Library File
C.            Header File
D.           None of these

In object orientated programming, a class of objects cans _____________ properties from another class of objects
A.           Utilize
B.            Inherit

C.            Borrow
D.           Adopt

The technique in which we visualize our programming problems according to real life‘s problems is called
A.           structured programming
B.            procedural programming
C.            object oriented Programming

D.           None of these

What a derived class can add?
A.           New data members
B.            New member functions and New friend functions
C.            New constructors and destructor
D.           All of above

________ is/are used to access information hidden within an object?
A.           Private member functions
B.            Private data members
C.            Interface

D.           Both public and private members

A template provides a convenient way to make a family of
A.           variables and data members

B.            functions and classes
C.            classes and exceptions
D.           programs and algorithms

Public Inheritance represents
A.           “IS A” relationship

B.            ―IS Special Kind of‖ relationship
C.            ―Has A‖ relationship
D.           None of these