
OOP Quiz 5
Quiz
•
Computers, Education
•
University
•
Practice Problem
•
Hard
stuti Ahuja
Used 2+ times
FREE Resource
Enhance your content in a minute
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Human Computer Interaction (HCI)
Quiz
•
University
15 questions
Labor Relations and Negotations 1
Quiz
•
University - Professi...
10 questions
CSE205-DCN-QUIZ-UNIT-5
Quiz
•
University
15 questions
Assessment 08
Quiz
•
University
12 questions
ICT450-TOPIC 1
Quiz
•
University
10 questions
Communicable Disease Act and related legislation
Quiz
•
University
10 questions
AR/VR workshop phase 2
Quiz
•
University
10 questions
Principles of Teaching
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
