logo

Crowdly

Browser

Add to Chrome

Програмування скриптовими мовами [04797]

Looking for Програмування скриптовими мовами [04797] test answers and solutions? Browse our comprehensive collection of verified answers for Програмування скриптовими мовами [04797] 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:

    def __init__(self):

        self.x = 10

    def print_x(self):

        print(self.x)

 

c = MyClass()

View this question

Виберіть, що виведеться після виконання вказаного

фрагменту коду

class

My

Class:

    x = 10     

    def __init__(self):

        self.y = 20   

c1,

c2 = My

Class(), MyClass()         

MyClass

.x

= 88

c1.y

= 88

print

(c1.x,

c2.x, c1.y, c2.y)

View this question

Атрибути і методи класу з одним нижнім підкресленням в Python

можна

змінити зовні

 

96%
4%
View this question

Перевантаження оператора додавання проводиться за допомогою  методу  __add__

100%
0%
View this question

Імена приватних атрибутів і методів класу у Python починаються з одного нижнього підкреслення ()

37%
63%
View this question

Виберіть синтаксично вірний конструктор класу в Python

View this question

Виберіть синтаксично вірні створення класів у Python

View this question

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

class

Class1:

    def func1(self):

        print('1', end = ' ')

    def func2(self):

        print('2', end = ' ')

 

class

Class2(Class1):

    def func2(self):

        print('3', end = ' ')

        super().func2()

 

c =

Class2()

c.func1()

c.func2()

View this question

Імена захищених атрибутів і методів класу у Python починаються з одного нижнього підкреслення ()

100%
0%
View this question

Змінна у

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

екземпляра

класу

class MyClass:

    def __init__(self):

        self.y = 20    

100%
0%
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