OOPS in Python
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Medium
Harmeet Kaur
Used 2+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
1. Which of the following best describes encapsulation?
Answer explanation
Encapsulation hides internal state and provides controlled access via methods.
2.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
2. What will be printed by the following code?
Answer explanation
B calls A.__init__ (value=5) then adds 5, so display prints 10.
3.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
3. In OOP, 'is-a' relationship is implemented through:
Answer explanation
Inheritance models the 'is-a' relationship between classes.
4.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
4. What is the output?
Answer explanation
Default parameter n=1; x1 has 5, x2 has 1; __str__ returns those.
5.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
5. Which is TRUE about method overriding?
Answer explanation
Overriding requires same signature to redefine parent behavior.
6.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
6. What will the following code output?
Answer explanation
Derived.__init__ replaces Base.__init__; data is set to 'Derived'.
7.
MULTIPLE CHOICE QUESTION
1 min • 2 pts
7. Which of these is NOT an advantage of OOP?
Answer explanation
OOP improves design and reuse; it does not guarantee faster runtime.
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?
Similar Resources on Wayground
15 questions
Data Security Worksheet
Quiz
•
10th Grade - University
13 questions
Arrays in Swift
Quiz
•
10th - 12th Grade
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
10 questions
COMPUTER PROGRAMMING Q2_FLOWCHART (2 points each)
Quiz
•
11th - 12th Grade
15 questions
Quiz-OSI Layers
Quiz
•
12th Grade
10 questions
2025 python class first quiz
Quiz
•
9th Grade - University
10 questions
Pre tes dan Post test
Quiz
•
12th Grade
12 questions
UTS Semester 1 Informatika 2024/2025
Quiz
•
8th Grade - University
Popular Resources on Wayground
8 questions
2 Step Word Problems
Quiz
•
KG - University
20 questions
Comparing Fractions
Quiz
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Latin Bases claus(clois,clos, clud, clus) and ped
Quiz
•
6th - 8th Grade
22 questions
fractions
Quiz
•
3rd Grade
7 questions
The Story of Books
Quiz
•
6th - 8th Grade
Discover more resources for Computers
8 questions
2 Step Word Problems
Quiz
•
KG - University
10 questions
Martin Luther King, Jr. For Kids
Interactive video
•
1st - 12th Grade
10 questions
Dr. King's Speech and Its Impact
Interactive video
•
7th - 12th Grade
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
7 questions
Anti-Bullying ARS 15-341
Quiz
•
9th - 12th Grade
13 questions
Model Exponential Growth and Decay Scenarios
Quiz
•
9th - 12th Grade
15 questions
TSI Math Practice Questions
Quiz
•
8th - 12th Grade
24 questions
Identify Properties of Polygons and Quadrilaterals
Quiz
•
9th - 12th Grade
