
Polymorphism in C++
Authored by Purushotham M
Computers
11th - 12th Grade
Used 11+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will be the output of this piece of code?
5500.263
500.2635
500.263
500.266
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of this piece of code?
print derived class
show base class
print derived class
show derived class
Error
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is invalid prototype for function overloading
(A) void fun (int x); void fun (char ch) ;
(B) void fun (int x); void fun (int y);
(C) void fun (double d); void fun (char ch);
(D) void fun (double d); void fun (int y);
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you declare a pure virtual function in C++?
virtual void func() = 0;
void func() = 0;
void func();
virtual void func();
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if a derived class does not override a virtual function?
The derived class will have a compilation error.
The base class function will be called.
The derived class will call its own function.
None of the above.
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output of the following code?
Base Display
Derived Display
Compilation Error
Runtime Error
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct way to implement polymorphism?
Using function overloading.
Using operator overloading.
Using virtual functions.
All of the above.
Access all questions and much more by creating a free account
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
10 questions
ML Course Activity-II
Quiz
•
University
10 questions
CodeMonkey for B.Ed IT
Quiz
•
University
13 questions
Processing Quiz
Quiz
•
University
10 questions
Quiz Pengetahuan Router dan Mikrotik
Quiz
•
11th Grade
10 questions
Introduction To Java: Hello World
Quiz
•
7th - 12th Grade
10 questions
Mid semester kelas XI RPL Konsep pemodelan berorientasi objek
Quiz
•
11th Grade
10 questions
STM BTEC DIT 3- 5. Maintenance, set-up, performance p152
Quiz
•
9th - 11th Grade
12 questions
Python Quiz 1.4
Quiz
•
University
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Valentines Day Trivia
Quiz
•
3rd Grade - University
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
21 questions
Presidents Day Trivia
Quiz
•
6th - 12th Grade
10 questions
Valentine's Day: History and Modern Celebration
Interactive video
•
9th - 12th Grade
11 questions
Valentine's Day Trivia
Quiz
•
8th - 12th Grade
10 questions
Factor Quadratic Expressions with Various Coefficients
Quiz
•
9th - 12th Grade
10 questions
Evaluating Piecewise Functions Practice
Quiz
•
11th Grade
18 questions
Success Strategies
Quiz
•
9th - 12th Grade