Конструктор дегеніміз не?

ООП лекция1

Quiz
•
Computers
•
University
•
Medium
СМАГУЛОВА ЛАУРА
Used 1+ times
FREE Resource
14 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Объектіні жоятын әдіс
Кластың атрибуттарын өзгерту әдісі
Объектіні құрған кезде шақырылатын әдіс
Класс туралы ақпаратты шығаратын әдіс
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Объектіні инициалдау үшін қандай әдіс қолданылады?
__init__
__del__
set_coords
get_coords
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Класс әдістеріне әрқашан қандай параметр беріледі?
self
cls
obj
data
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
__del__ әдісі не істейді?
Объектіні инициализациялайды
Объект туралы ақпаратты шығарады
Объектіні жасайды
Объектіні жояды
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Келесі кодта қай әдіс нүктенің координаттарын қайтарады?
сlass Point:
color = 'red'
circle = 2
def set_coords(self, x, y):
self.x = x
self.y = y
def get_coords(self):
return (self.x, self.y)
print(pt.get_coords())
get_coords
set_coords
__init__
__del__
6.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
set_coords әдісі шақырылғанда не болады?
сlass Point:
color = 'red'
circle = 2
def set_coords(self, x, y):
self.x = x
self.y = y
def get_coords(self):
return (self.x, self.y)
print(pt.get_coords())
Объектінің координаталары орнатылады
Нүктенің координаталарын қайтарады
Класс туралы ақпарат шығарылады
Жаңа объекті жасалады
7.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Point класындағы 'red' мәні бар атрибут қайсы?
сlass Point:
color = 'red'
circle = 2
def set_coords(self, x, y):
self.x = x
self.y = y
def get_coords(self):
return (self.x, self.y)
color
circle
self.x=color
y=color
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Chapter 8-2

Quiz
•
University
14 questions
Лекция 7 ОБП

Quiz
•
University
11 questions
Quiz 5

Quiz
•
University
15 questions
Knowledge Knockout[Quiz Round](2nd-4th years)

Quiz
•
University
10 questions
CSS Grids

Quiz
•
University
17 questions
Administrasi Sistem Jaringan

Quiz
•
University
10 questions
Entorno de Programación - Fundamentos

Quiz
•
University
15 questions
SCRIPTING PROGRAMMING WITH PYTHON

Quiz
•
University
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
20 questions
Math Review - Grade 6

Quiz
•
6th Grade
20 questions
math review

Quiz
•
4th Grade
5 questions
capitalization in sentences

Quiz
•
5th - 8th Grade
10 questions
Juneteenth History and Significance

Interactive video
•
5th - 8th Grade
15 questions
Adding and Subtracting Fractions

Quiz
•
5th Grade
10 questions
R2H Day One Internship Expectation Review Guidelines

Quiz
•
Professional Development
12 questions
Dividing Fractions

Quiz
•
6th Grade