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

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

Доступ

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

клас

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

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

this

26%
74%
View this question

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

98%
2%
View this question

Класи

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

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

98%
2%
View this question

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

class MyClass:

    d = 20

    def __init__(self):

        self.a   = 10 

        self._b  = 20  

        self.__c = 30  

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 недоступні напряму зовні

92%
8%
View this question

Методи класу можуть міняти міняти конкретний об’єкт

52%
48%
View this question

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

class MyClass:

    x = 1

p1 = MyClass()

p2 = MyClass()

p1.x = 2

print(p2.x)

View this question

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

30%
70%
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