logo

Crowdly

Browser

Add to Chrome

Основи програмування

Looking for Основи програмування test answers and solutions? Browse our comprehensive collection of verified answers for Основи програмування at virt.ldubgd.edu.ua.

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

Скільки параметрів (включаючи self) має метод __init__ у наведеному коді?

class Person:

def __init__(self, name, age):

self.name = name

self.age = age

View this question

Яку проблему вирішує поведінковий патерн Strategy?

0%
100%
0%
0%
View this question

Який декоратор перетворює метод класу на властивість для читання (getter)?

0%
0%
0%
100%
View this question

На які три категорії поділяються шаблони проектування?

0%
0%
0%
100%
View this question

Як правильно оголосити власний клас виключення MyError?

0%
100%
0%
0%
View this question

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

class Vec:

def __init__(self, x):

self.x = x

def __add__(self, other):

return Vec(self.x + other.x)

v = Vec(3) + Vec(7)

print(v.x)

View this question

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

class A:

def __init__(self):

self.x = 5

class B(A):

def __init__(self):

super().__init__()

self.y = 3

b = B()

print(b.x + b.y)

View this question

Що гарантує патерн проектування Singleton?

0%
0%
100%
0%
View this question

Яку проблему вирішує структурний патерн Adapter?

0%
0%
0%
100%
View this question

Твердження: у Python можна передати об'єкт будь-якого класу у функцію, якщо він має необхідний метод — незалежно від його типу.

100%
0%
View this question

Want instant access to all verified answers on virt.ldubgd.edu.ua?

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

Browser

Add to Chrome