
Chapter 10: Object Oriented Programming
Authored by Dottie Holland
others
Used 13+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 6 pts
In Python, a class is ___________ for a concrete object.
a blueprint
a distraction
an instance
a nuisance
2.
MULTIPLE CHOICE QUESTION
30 sec • 6 pts
class Dog: def __init__(self, name, age): self.name = name self.age = age The correct way to instantiate the above Dog class is:
Dog("Rufus", 3)
Dog.create("Rufus", 3)
Dog()
Dog.__init__("Rufus", 3)
3.
MULTIPLE CHOICE QUESTION
30 sec • 6 pts
Object and class attributes are accessed using ___________ notation in Python.
dash
indent
dot
slash
4.
MULTIPLE CHOICE QUESTION
30 sec • 6 pts
In Python, a function within a class definition is called a:
an operation
a method
a callable
a factory
a class function
5.
MULTIPLE CHOICE QUESTION
30 sec • 7 pts
What concept of OOP is demonstrated by the 'Dog' and 'Cat' classes in the above code?
Encapsulation
Inheritance
Polymorphism
Abstraction
6.
MULTIPLE CHOICE QUESTION
30 sec • 7 pts
What is Object-Oriented Programming (OOP)?
A method of programming that uses procedures and functions.
A programming paradigm based on the concept of "objects".
A type of programming that focuses solely on data analysis.
A programming technique used only in web development.
7.
MULTIPLE CHOICE QUESTION
30 sec • 7 pts
What does a class represent in OOP?
A specific data type, like integers or strings.
A blueprint for creating objects.
A function inside an object.
A variable used in object methods.
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?