
OOP Quiz 5

Quiz
•
Computers, Education
•
University
•
Hard
stuti Ahuja
Used 2+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
20 sec • 1 pt
A protected member of the class in accessible in
Only same class
Same class and derived class
Outside the class
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
When will we use the function overloading?
different function name but same number of arguments
same function name but different number of arguments
same function name but same number of arguments
different function name but different number of arguments
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which of the following explains Polymorphism?
int func(int, int);
float func1(float, float);
int func(int);
int func(int);
int func(float);
float func(int, int, char);
4.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which feature allows you to create a Derived class that inherits properties from more than one Base class?
Multilevel Inheritance
Multiple Inheritance
Hierarchical Inheritance
Hybrid Inheritance
5.
MULTIPLE SELECT QUESTION
1 min • 1 pt
What will be the output?
Value of a:100
Value of b:200
Value of a:200
Value of b:100
Value of a:200
Value of b:200
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code if class A has a method void display(), and class B inherits from A and overrides display()?
Only the base class method will be called.
Both methods will be called.
Only the derived class method will be called.
It will result in a compilation error.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How is a friend function declared in a class?
friend returnType functionName(parameters);
functionType friend functionName(parameters);
returnType friend functionName(parameters);
friend functionType functionName(parameters);
Create a free account and access millions of resources
Similar Resources on Wayground
9 questions
C++ Puntatori

Quiz
•
University
10 questions
IT Quiz Round 3

Quiz
•
University
10 questions
Python - Functions

Quiz
•
University
10 questions
C++ Quiz

Quiz
•
University
10 questions
java

Quiz
•
University - Professi...
10 questions
The OOP Quiz

Quiz
•
University
10 questions
Introduction to Arrays

Quiz
•
KG - University
10 questions
Inheritance Quiz

Quiz
•
2nd Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University