Конструктор класу, в якому зазвичай задають властивості об'єктів, має назву
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
Базові поняття програмного середовища Lazarus

Quiz
•
5th - 8th Grade
12 questions
Повторення 6 клас

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

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

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

Quiz
•
8th Grade
11 questions
Архівування даних. Види стиснення. Архіви

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

Quiz
•
8th Grade
12 questions
Архіви та операції над ними

Quiz
•
8th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
20 questions
Final Exam Vocabulary

Quiz
•
6th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade