OODP CT2-Quiz

OODP CT2-Quiz

University

15 Qs

quiz-placeholder

Similar activities

SGDC FINAL 2022

SGDC FINAL 2022

University

10 Qs

Talent Next Java MCQ-1

Talent Next Java MCQ-1

University

10 Qs

Abstraction, Encapsulation & Exception in C++

Abstraction, Encapsulation & Exception in C++

University

10 Qs

Design Patterns-Introduction-Session-1

Design Patterns-Introduction-Session-1

University

11 Qs

funWithJava

funWithJava

University

10 Qs

Quiz 12: Templates, STL

Quiz 12: Templates, STL

University

10 Qs

AITT LAB QUIZ  4

AITT LAB QUIZ 4

University

10 Qs

PT101 - Mobile and Game Platform

PT101 - Mobile and Game Platform

11th Grade - University

12 Qs

OODP CT2-Quiz

OODP CT2-Quiz

Assessment

Quiz

Computers

University

Hard

Created by

Thilagavathy R

Used 4+ times

FREE Resource

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

 In case of inheritance where both base and derived class are having constructors, when an object of derived class is created then___________ .

constructor of derived class will be invoked first

constructor of base class will be invoked first

constructor of derived class will be executed first followed by base class

constructor of base class will be executed first followed by derived class

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If base class has constructor with arguments, then it is ________________ for the derived class to have constructor and pass the arguments to base class constructor.

Optional

Mandatory

Compiler dependent

Error

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In case of inheritance where both base and derived class are having constructor and destructor, then which if the following are true ?

1. Constructors are executed in their order of derivation

2. Constructors are executed in reverse order of derivation

3. Destructors are executed in their order of derivation

4. Destructors are executed in reverse order of derivation

Only 2 ,4

Only 1 , 3

Only 1 , 4

Only 2, 3

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If same message is passed to objects of several different classes and all of those can respond in a different way, what is this feature called?

Inheritance

Overloading

Polymorphism

Overriding

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A virtual function is a member function of which of the following class?

Derived class

Parent Class

Base Class

Both Parent and Derived Class

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The virtual function is used to tell the compiler to perform ______________

Dynamic Binding

Static Binding

Late Binding

Both Dynamic and Late Binding

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Early binding can be implemented by which of the following?

Virtual Function

Pure Virtual Function

Function Overloading

Function Overriding

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?