
OODP CT2-Quiz

Quiz
•
Computers
•
University
•
Hard
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
Similar Resources on Wayground
10 questions
Quiz on OOPs- Day 1 (30-01-2025)

Quiz
•
University
12 questions
Database Design Theory

Quiz
•
University
15 questions
Coding and Debugging

Quiz
•
University
10 questions
FOP - CHAPTER 6

Quiz
•
University
20 questions
java quiz on exception handling

Quiz
•
University
20 questions
POO_BasicoyJava

Quiz
•
University
20 questions
DBMS E-R Diagram Quiz 2

Quiz
•
University
16 questions
Subprograms and ADT

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University