logo

Crowdly

Browser

Add to Chrome

Технології програмування, частина 1 [05914]

Looking for Технології програмування, частина 1 [05914] test answers and solutions? Browse our comprehensive collection of verified answers for Технології програмування, частина 1 [05914] at vns.lpnu.ua.

Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!

Що виведе наступний код:

class MyClass:

    x = 1

p1 = MyClass()

p2 = MyClass()

p1.x = 2

print(p2.x)

0%
100%
0%
0%
View this question

Атрибут екземпляра класу доступний всім екземплярам класу, і після зміни атрибута значення зміниться в усіх екземплярах класу

0%
100%
View this question

Конструктор класу у Python оголошується таким чином:

def init(self):

0%
100%
View this question

В одному класі можуть одночасно існувати атрибут об'єкта і атрибут реалізації з одним ім'я

100%
0%
View this question

Змінна у у наступному фрагменті коду це атрибут екземпляра класу

class MyClass:

    def __init__(self):

        self.y = 20

100%
0%
View this question

Виберіть спеціальні методи класів

0%
0%
100%
100%
100%
100%
View this question

Класи

містять атрибути

(властивості) та методи

0%
0%
View this question

Виберіть базові принципи об'єктно-орієнтованого програмування

0%
0%
0%
0%
0%
View this question

Що виведе наступний фрагмент коду

class MyClass:

    x = 10 

    def __init__(self):

        self.y = 20     

 

c1 = MyClass()

c2 = MyClass() 

c1.x = 30

print(c2.x)

0%
0%
0%
View this question

Для заданого фрагменту коду встановить відповідності

class MyClass:

    def __init__(self):

        self.x = 10

    def print_x(self):

        print(self.x)

 

c = MyClass()

View this question

Want instant access to all verified answers on vns.lpnu.ua?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!

Browser

Add to Chrome