
Advanced Python Assessment
Authored by Huda Learns
Information Technology (IT)
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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.
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
25 questions
Fundamentals of Computer Science with Karel Unit 2 Exam
Quiz
•
12th Grade
25 questions
STS INFORMATIKA *
Quiz
•
8th Grade - University
25 questions
Quiz Pemrograman Python
Quiz
•
10th Grade - University
25 questions
Seatwork #4
Quiz
•
12th Grade - University
25 questions
soal uh 9
Quiz
•
9th Grade - University
25 questions
JARINGAN KOMPUTER
Quiz
•
11th Grade
25 questions
Quiz Berpikir Komputasional (XF)
Quiz
•
10th Grade
29 questions
Ôn tập tin 7 giữa kì 1
Quiz
•
7th Grade - University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
10 questions
Understanding Meiosis
Interactive video
•
6th - 10th Grade
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
10 questions
Exploring Christmas Traditions Through Cartoons
Interactive video
•
6th - 10th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade