
Advanced Python Assessment
Quiz
•
Information Technology (IT)
•
9th - 12th Grade
•
Practice Problem
•
Hard
Huda Learns
Used 1+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is the purpose of the __init__ method in a Python class?
Answer explanation
__init__ is the constructor method that initializes instance variables when an object is created.
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of the following demonstrates proper inheritance syntax in Python?
Answer explanation
Python uses class Child(Parent): syntax for inheritance.
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What will this code output?
Answer explanation
The child class B overrides the class variable x, so obj.x returns 20.
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which method is automatically called when an object is about to be destroyed?
Answer explanation
__del__ is the destructor method called when an object is about to be destroyed.
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What does super() do in Python inheritance?
Answer explanation
super() allows you to call methods from the parent class in the child class.
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Which of these is a private attribute in Python?
Answer explanation
Double underscore prefix (__variable) makes an attribute private through name mangling.
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
What is method overriding in Python?
Answer explanation
Method overriding is redefining a parent class method in the child class with the same name.
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
25 questions
Seni Budaya Quiz
Quiz
•
11th Grade - University
25 questions
1-kurs 1-semestr YAKUNIY 2025
Quiz
•
10th Grade
25 questions
UTS INFORMATIKA KELAS E
Quiz
•
8th Grade - University
25 questions
Materi Berpikir Komputasional Kelas 10
Quiz
•
10th Grade
25 questions
ULANGAN BAB ALGORITMA PEMROGRAMAN KELAS 8
Quiz
•
8th Grade - University
25 questions
KUIS ADMINISTRASI SISTEM JARINGAN
Quiz
•
11th Grade
25 questions
BERPIKIR KOMPUTASIONAL KELAS 9
Quiz
•
9th Grade
25 questions
SAS 1 Informatika 8
Quiz
•
8th Grade - University
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Information Technology (IT)
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
15 questions
Meiosis vs mitosis
Quiz
•
9th Grade
10 questions
Exploring the Origins of Veterans Day
Interactive video
•
6th - 10th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
16 questions
Ethos, Pathos, Logos Practice
Quiz
•
9th Grade
15 questions
Two Step Equations
Quiz
•
9th Grade
