Sobes.tech

class Rectangle: def set_width(self, width): self._width = width def set_height(self, height): self._height = height def get_area(self): return self._width * self._height class Square(Rectangle): def set_width(self, width): self._width = width self._height = width def set_height(self, height): self._width = height self._height = height

118

Describe the structure of a relational database for an online store: customers, products, and orders (tables and fields without types).

117

class C: def __init__(self, x): self.x = x def calculate(self): return self.x * 2 + 1 class A(C): def __init__(self, x, y): super().__init__(x) self.y = y def calculate(self): return super().calculate() + self.y class B(A): def __init__(self, x, y, z): super().__init__(x, y) self.z = z def calculate(self): return self.z - super().calculate() a = C(2) b = A(4, 7) c = B(1, 3, 5) print(a.calculate()) print(b.calculate()) print(c.calculate())

115

What is the algorithmic complexity of external merge sort for sorting a large file?

110
/2