InfyTQ OOPS Basic Quiz 1

Question 1

Time: 00:00:00
When deriving from a private base class, the public, protected and private members of the base class become private members of the derived class.

False

False

True

True

Question 2

Time: 00:00:00
Keyword which is used to access the method or member variables from the superclass

Super

Super

Has_a

Has_a

Using

Using

Is_a

Is_a

Question 3

Time: 00:00:00
The process by which one object can acquire the properties of another object:

Encapsulation

Encapsulation

Inheritance

Inheritance

Polymorphism

Polymorphism

Abstraction

Abstraction

Question 4

Time: 00:00:00
Information Hiding can also be termed as:

Inheritance

Inheritance

Data hiding

Data hiding

Encapsulation

Encapsulation

None of the above

None of the above

Question 5

Time: 00:00:00
Main method can be overridden:

True

True

False

False

Question 6

Time: 00:00:00
Pick the term that relates to polymorphism:

Dynamic allocation

Dynamic allocation

Static typing

Static typing

Static allocation

Static allocation

Dynamic binding

Dynamic binding

Question 7

Time: 00:00:00
When sub class declares a method that has the same type arguments as a method declared by one of its superclasses, it is termed as:

Method overloading

Method overloading

Method overriding

Method overriding

Operator overloading

Operator overloading

Operator overriding

Operator overriding

Question 8

Time: 00:00:00
Two or more methods with the same name in the same class with different arguments are called:

Method overriding

Method overriding

Method overloading

Method overloading

Operator overloading

Operator overloading

Operator overriding

Operator overriding

Question 9

Time: 00:00:00
Static methods cannot be accessed directly from the class level.

True

True

False

False

Question 10

Time: 00:00:00
Which of the following is not a part of OOP?

Multitasking

Multitasking

Information hiding

Information hiding

Type checking

Type checking

Polymorphism

Polymorphism

null
null