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 Wayground
7 questions
CodeHS 4.12 Inheritance

Quiz
•
9th - 12th Grade
9 questions
Python2 befor SmartNotes

Quiz
•
8th Grade
11 questions
Git Basics

Quiz
•
9th Grade
11 questions
Foo Fighters Quiz

Quiz
•
10th Grade
5 questions
Git М1У3

Quiz
•
6th - 8th Grade
12 questions
Повторення. C# (основи)

Quiz
•
10th Grade
10 questions
Техніка безпеки в кабінеті інформатики

Quiz
•
5th - 8th Grade
12 questions
Basic Linux Commands Part 1

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
25 questions
Exploring POV and Unreliable Narrators

Quiz
•
7th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
30 questions
Computer Terminology Exercise #1 ( Fill Ins)

Quiz
•
9th Grade
15 questions
MLA Formatting

Quiz
•
9th Grade
20 questions
Typing Practice

Quiz
•
7th - 12th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
20 questions
Input, Output, Processing or Storage

Quiz
•
5th - 6th Grade