Object Orientation 2
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Easy
O Hawkridge
Used 6+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is a class in Python?
A blueprint for creating objects
A method for organizing code in Python
A built-in data type in Python
A type of function in Python
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an object in Python?
A programming language in Python
A type of snake
A type of food in Python
A collection of data (variables) and methods (functions) that act on the data.
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is inheritance in Python?
It is used to override methods in a class.
It is a feature that allows classes to share attributes and methods.
It is a way to create new classes in Python.
It allows a class to inherit attributes and methods from another class.
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is encapsulation in Python?
Storing data in a list
Wrapping data and methods within a class
Creating functions outside of a class
Using global variables for data access
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the syntax for creating a new class in Python?
class ClassName:
ClassName = class:
def ClassName():
create class ClassName:
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of single inheritance in Python?
Class A inherits from Class B
Class B inherits from Class A
Class A and Class B inherit from each other
Class A and Class B do not have any inheritance relationship
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which access modifier is used to define private variables in Python?
protected
_ or __
PRIVATE
public
Create a free account and access millions of resources
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
12 questions
HTML
Quiz
•
9th - 12th Grade
10 questions
conditional and iterative statements
Quiz
•
11th Grade
16 questions
Kod Arahan
Quiz
•
9th - 11th Grade
15 questions
CIW
Quiz
•
9th - 12th Grade
10 questions
Word basics
Quiz
•
8th - 12th Grade
20 questions
Primary storage
Quiz
•
9th - 11th Grade
20 questions
Repaso TIC- 1º-bach
Quiz
•
11th Grade
20 questions
Microsoft Excel
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
36 questions
Benchmark 2 Review (LEAP)
Quiz
•
11th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
hands washing
Quiz
•
5th - 12th Grade
