
PY3 - <class>
Authored by Aim Sity
Computers
9th - 12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
5 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What will be the output ?
A) <class 'ExampleClass'>
B) <class '__main__.ExampleClass'>
C) <class 'object'>
D) <class 'int'>
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is self in the init method?
A) A built-in function
B) A reference to the current instance of the class
C) A global variable
D) A reserved keyword in Python
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What happens if you remove self from the init method?
A) The program will still run normally
B) Python will raise a TypeError
C) The class will work but won't store any values
D) The value will be assigned to the class instead of the instance
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
What is the purpose of the init method in a class?
A) It creates a new object of the class
B) It is a special method used for initialization of instance variables
C) It prints the values inside a class
D) It destroys an object from memory
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output for this code ?
5
10
Error
None
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
10 questions
1. Berpikir Komputasional (Sosial Murni)
Quiz
•
11th Grade
10 questions
Konsep Routing
Quiz
•
1st - 10th Grade
10 questions
ICT as Social Change
Quiz
•
12th Grade
10 questions
Word 2016
Quiz
•
10th Grade
10 questions
C# lesson10
Quiz
•
1st - 10th Grade
10 questions
สอบย่อย ครั้งที่ 1 (BC.2/2)
Quiz
•
11th Grade
10 questions
=NOW()
Quiz
•
11th Grade
10 questions
HTML & Google Site Seatwork
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade