
FGWHN Python OOP - Polymorphism

Quiz
•
Computers
•
University
•
Medium
Doãn Tùng
Used 6+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is polymorphism in OOP?
A way to create classes and objects.
The ability of an object to take on many forms.
A type of variable in Python.
A way to sort elements in Python.
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
How is polymorphism implemented in Python?
Through using multiple inheritance.
By using the polymorphic keyword.
Through defining different classes with the same method names.
Python doesn't support polymorphism.
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is a key feature of polymorphism?
Objects of different types can be passed to the same function.
All objects must be of the same type.
Only integers and strings can be used with polymorphism.
Polymorphism is only applicable to data structures.
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
In Python, why is polymorphism useful with inheritance?
It allows objects from a child class to be treated as objects from a parent class.
It is required for inheritance to work.
It makes the code less readable.
Polymorphism is not useful with inheritance.
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What is the output?
"Drawing a shape"
"Drawing a circle"
Error, invalid method call.
None of the above.
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Given the following code, how would you call the speak
function to print "Hello"?
speak(English)
speak(Spanish)
speak(English())
speak(Spanish())
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What will be the output of the following Python code?
100 km/h
150 km/h
Error, invalid method call.
None of the above.
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
Java Questions & Answers

Quiz
•
University
15 questions
PSP Week 4

Quiz
•
University
10 questions
Python Generators

Quiz
•
10th Grade - University
12 questions
CSSE Quiz Day2

Quiz
•
University
15 questions
Web Dev Quizz 1

Quiz
•
University
10 questions
JAVA FOR ANDROID-JAVA

Quiz
•
University
15 questions
H466 - Paradigms and High-Level Programming Languages

Quiz
•
12th Grade - University
10 questions
Python Lists Quiz

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