logo

Crowdly

Мова програмування Python

Looking for Мова програмування Python test answers and solutions? Browse our comprehensive collection of verified answers for Мова програмування Python at elr.tnpu.edu.ua.

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

Оберіть результат виконання програми:

class Y:

....def __init__(self, one="aaa",two):

........self.one = one

........self.two = two

y = Y("bbb")

print(y.one)

print(y.two)

100%
0%
0%
0%
View this question

Оберіть результат виконання програми:

def dbl(self, x):

....return x * 2

class C:

....f = dbl

obj = C()

print(obj.f(1))

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

Оберіть, що означає термін ООП.

0%
0%
100%
View this question

Оберіть вірний запис наслідування обєкта у мові програмування Python.

0%
100%
0%
0%
View this question

Оберіть результат виконання програми:

class Element:

....def __init__(self, name):

........self.name = name+"-element"

water = Element("Water")

print(water.name)

0%
0%
0%
100%
View this question

Оберіть який клас є батьківським у наведеному коді:

class Bird():

....def __init__(self):

class Penguin(Bird):

....def __init__(self):

....self.abilitytofly = False

class Parrot():

....def __init__(self):

....self.total = True

0%
0%
0%
100%
View this question

Оберіть термін який характеризує змінну obj для класcу Example:

class Example:

....def __init__(self):

........self.data = ''

....def something(self):

........self.data = ''

obj = Example()

0%
100%
100%
0%
View this question

Оберіть який клас є дочірній у наведеному коді:

class Bird():

....def __init__(self):

class Penguin(Bird):

....def __init__(self):

........self.abilitytofly = False

class Parrot(Bird):

....def __init__(self):

........self.total = True

0%
100%
0%
0%
View this question

Оберіть результат виконання програми:

class Bird():

....def __init__(self):

........self.abilitytofly = True

class Parrot(Bird):

....pass

class Penguin(Bird):

....def __init__(self):

........self.abilitytofly = False

frosty = Penguin()

petya = Parrot()

print(frosty.abilitytofly, petya.abilitytofly)

0%
100%
0%
0%
View this question

Оберіть термін який характеризує something для класcу Example:

class Example:

....def __init__(self):

........self.data = ''

....def something(self):

........self.data = ''

obj = Example()

100%
0%
0%
0%
View this question

Want instant access to all verified answers on elr.tnpu.edu.ua?

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