
ООП лекция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 Wayground
10 questions
Класи початок з pygame

Quiz
•
University
15 questions
Py-Hackathon - Week 2 - Day 2

Quiz
•
University
15 questions
OE- Introduction To Artificial Intelligence

Quiz
•
University
9 questions
BIOS review

Quiz
•
KG - University
10 questions
Unit 3 - 2.4.1 - Malware

Quiz
•
12th Grade - University
13 questions
AI-1

Quiz
•
KG - University
9 questions
CHAPTER 5 ONLINE QUIZ

Quiz
•
University
13 questions
ITLM - Compliance and Audits

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
Appointment Passes Review

Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
Grammar Review

Quiz
•
6th - 9th Grade