
ООП лекция1
Authored by СМАГУЛОВА ЛАУРА
Computers
University
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
17 questions
Administrasi Sistem Jaringan
Quiz
•
University
10 questions
Test Form HTML 2
Quiz
•
University
10 questions
NLP-Transformers Last Quiz
Quiz
•
University
15 questions
Python Skills
Quiz
•
1st Grade - Professio...
10 questions
Lesson 3: Boolean Logic and Logic Gates
Quiz
•
University
10 questions
Scrum 101: The Introduction
Quiz
•
University
12 questions
C/C++ C Function
Quiz
•
University
15 questions
Engineering ACW Semester 2 - #5 AI Part 2
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade