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
13 questions
Exploring web expression

Quiz
•
6th Grade
12 questions
Python1 Functions

Quiz
•
7th - 11th Grade
10 questions
Windows Movie Maker

Quiz
•
8th Grade
9 questions
Python L30 OOP class

Quiz
•
6th - 8th Grade
10 questions
Exam

Quiz
•
6th - 8th Grade
10 questions
Microsoft Excel - Basics, Formatting and Calculating

Quiz
•
6th - 8th Grade
10 questions
WORD PROCESSING BASICS

Quiz
•
8th - 10th Grade
10 questions
Internet Words for ITC

Quiz
•
2nd - 6th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

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

Interactive video
•
6th - 10th Grade
8 questions
Time Management

Quiz
•
6th Grade
18 questions
Company Logos

Quiz
•
6th - 8th Grade
15 questions
Acceptable Use Policy (Quiz)

Quiz
•
6th - 8th Grade
25 questions
Career Vs. Job

Quiz
•
6th - 8th Grade
17 questions
[AP CSP] Binary Number System

Lesson
•
9th - 12th Grade
15 questions
Computer Components Video

Interactive video
•
8th Grade
14 questions
Computer Hardware

Quiz
•
7th Grade