stud
bud
Sign up
Log in
Home
Library
Explore
SAT
More
Polymorphism quiz Flashcards | StudBud
Explore
/
Polymorphism quiz
Polymorphism quiz
10 terms
·
StudBud Administration
·
7 plays
Imported from external platform
Flashcards
10 cards
F
Practice quiz
P
Host live
L
Questions
10
Answers
1
Polymorphism allows us to perform a single action in different ways.
False
True
2
Compile time polymorphism u
ses method of overriding to create multiple methods
True
False
3
Example of a compile time rule
Must match compile time method signature to method in actual object class
It can not look for reference type for methods
It can only look in reference type for methods
Follows the exact runtime type (object type) to find method
4
two types of polymorphism
Run time polymorphism, superclass polymorphism
Compile Time Polymorphism, subclass polymorphism
Compile Time Polymorphism, Run time polymorphism
Run time polymorphism, inheritance polymorphism
5
What is function overloading?
Allows a class to inherit from a superclass and then to modify
Ability to create one function with different data types.
Ability to create different functions.
Different methods have different implementations in the arguments.
6
In what set of lectures was polymorphism first described in
“Fundamental Concepts in programming languages”
"Object Oriented Programming"
"Higher-Order and Symbolic Computation
"Exploring polymorphism"
7
What best describes doc polymorphism
Generic functions that treat values in a data set the same way
Implemented to different arguments and operates according to the argument.
Operate based on a specific section of database record
Create algorithms in which the types can be provided as parameters
8
Subtyping polymorphism
can create multiple functions or subroutines that can operate on the super type class.
True
False
9
What is polymorphism
Mechanism of basing an object or class upon another object or class
Bundling of data and methods operating on this data into one unit.
Definition of the methods and variables in a particular kind of object.
The condition of occurring in various forms
10
Polytypism is u
sed to create algorithms where types can be provided as parameters when the algorithm is installed.
True
False