Конструктор класу, в якому зазвичай задають властивості об'єктів, має назву
Python Класи, наслідування

Quiz
•
Computers
•
6th - 10th Grade
•
Hard
Светлана М
Used 7+ times
FREE Resource
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
__def__
__const__
__init__
__class__
2.
MULTIPLE CHOICE QUESTION
10 sec • 5 pts
Чи можна створити клас без методу __init__?
Так
Ні
3.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
Для створення класу використовують ключове слово
init
def
super
class
4.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Що відбудеться після запуску програми?
надрукує Bar!
нічого не буде
буде помилка у рядку 2
буде помилка у рядку 6
5.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Як у конструкторі класу __init__(self, Step) створити властивість step екземпляру?
self.step = Step
self.step = step
step.self = self
Step.self = step
6.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Для того, щоб визвати конструктор батьківського класу, записують:
class.__init__(...)
super.__init__(...)
super().__init__(...)
class().init(...)
7.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Щоб створити клас Foo, який наслідує клас Bar, потрібно записати:
class Foo.Bar:
class Bar(Foo):
class Foo(Bar):
class Bar.Foo:
8.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
Щоб створити екземпляр класу Foo, потрібно записати:
bar = new(Foo)
bar = create Foo(...)
bar = self.Foo(...)
bar = Foo(...)
9.
MULTIPLE CHOICE QUESTION
45 sec • 5 pts
Що буде після запуску програми?
надрукує "Hello!"
надрукує "Bye!"
надрукує "Hello!", потім "Bye!"
надрукує "Bye!", потім "Hello!"
Similar Resources on Quizizz
12 questions
Python1 Functions

Quiz
•
7th - 11th Grade
6 questions
Pygame_quiz

Quiz
•
10th Grade - University
11 questions
Conditional statements

Quiz
•
7th Grade
10 questions
Python1: Ігри - ООП - Зображення

Quiz
•
8th Grade
10 questions
Python2 віджети qt

Quiz
•
6th - 12th Grade
10 questions
Python

Quiz
•
8th Grade
11 questions
Python1 pygame fin

Quiz
•
7th - 11th Grade
10 questions
python oop+

Quiz
•
8th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Computers
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade