Конструктор класу, в якому зазвичай задають властивості об'єктів, має назву
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
11 questions
Conditional statements

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

Quiz
•
8th Grade
11 questions
Python. Умовний оператор

Quiz
•
5th - 10th Grade
10 questions
Python quiz

Quiz
•
10th Grade - Professi...
6 questions
Pygame_quiz

Quiz
•
10th Grade - University
10 questions
Python1: ООП - Продовження

Quiz
•
8th Grade
11 questions
Кнопки та їх налаштування.

Quiz
•
8th Grade
11 questions
Рядкові величи

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

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade
Discover more resources for Computers
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
12 questions
Dividing Fractions

Quiz
•
6th Grade
9 questions
1. Types of Energy

Quiz
•
6th Grade
20 questions
Parts of Speech

Quiz
•
3rd - 6th Grade
43 questions
LinkIt Test - 24-25_BM4_7th

Quiz
•
7th Grade
6 questions
Final Exam: Monster Waves

Quiz
•
6th Grade