Search Header Logo

Python Класи, наслідування

Authored by Светлана М

Computers

6th - 10th Grade

Used 8+ times

Python Класи, наслідування
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Media Image

Що відбудеться після запуску програми?

надрукує 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:

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?