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!

Встановить відповідності

View this question

Методи класу

можуть міняти міняти конкретний

об’єкт

46%
54%
View this question

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

View this question

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

96%
4%
View this question

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

class MyClass:

    x = 10 

    def __init__(self):

        self.y = 20     

 

c1 = MyClass()

c2 = MyClass() 

c1.x = 30

print(c2.x)

View this question

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

37%
63%
View this question

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

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

class

Base:

    def op1(self):

        self.op2()

    def op2(self):

        print("Base", end = " ")

 

class

SubA(Base):

    def op2(self):

        print("SubA", end = " ")

 

obj

= SubA()

obj.op1()

View this question

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

class Base:

    def op1(self):

        self.op2()

    def op2(self):

        print("Base", end = " ")

 

class SubA(Base):

    def op2(self):

        print("SubA", end = " ")

 

class SubB(SubA):

    def op2(self):

        print("SubB", end = " ")

        super().op2()

 

obj = SubB()

obj.op1()

View this question

Доступ

до атрибутів і методів

клас

у всередині методу, що

визначається проводиться через змінну

this

37%
63%
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

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