1/19
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai |
|---|
No analytics yet
Send a link to your students to track their progress
What do you call an instance or creation of a class?
Object
What is Object-Oriented Programming (OOP)?
A software development paradigm
This structure stores information about an object and defines its state:
Attribute
A method is best described as:
A function that performs a task
These are the two major concepts that OOP relies on:
Class and Object
Which benefit of OOP allows code to be used again without rewriting it?
Reusability
Which principle hides complex details and presents only the essential features?
Abstraction
The term meaning "many forms", which allows objects to have different behaviors depending on their type:
Polymorphism
What allows a new class to acquire properties and functions from an existing class?
Inheritance
Which OOP principle involves binding data and functions into a class to protect it?
Encapsulation
If you can easily add new features and classes to a system without changing existing code, it demonstrates:
Extensibility
In the example given, Grasshopper and Ant are subclasses that inherit features from which parent class?
Insect
Which principle helps improve maintainability by keeping data safe from outside interference?
Encapsulation
In the polymorphism example, what makes the function produce "Meow" for Cat and "Bark" for Dog?
The method is overridden
OOP encourages organization into discrete, self-contained units. This benefit is called:
Modularity
Inheritance allows code reusability and establishes class hierarchies? (true or false)
TRUE
Objects cannot interact with one another in OOP. (true or false)
FALSE
In encapsulation, private data can be accessed directly by any code outside the class. (true or false)
FALSE
Abstraction helps isolate the impact of changes made to the code. (true or false)
TRUE
Procedural programming and Object-oriented programming are exactly the same. (True or false)
FALSE