
python2-lesson13
Quiz
•
Computers
•
3rd - 11th Grade
•
Practice Problem
•
Medium
hang zheng
Used 33+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
如果想要创建一个类,需要用到哪个关键字
def
class
open
for
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
创建一个类,哪个函数是必须的?
--init--(self)
__init__()
init(self)
__init__(self)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
__init__(self)函数中的self代表什么?
代表每一个创建的实例对象
什么都不是,只是一个规范而已
代表类本身
代表一个传入的参数
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
阅读图中代码,现在如果想根据Car类创建一个实例,下列代码书写正确的是?
c=Car("red")
c=Car
c=Car()
c=Car(self)
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
观察上图代码,现在需要创建一个Car类的实例,下列哪种方式是正确的。
c=Car()
c=Car(c,"red","电动车",4)
c=Car("red","电动车",4)
Car("red","电动车",4)
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
现在已经存在一个People类,想要在类中增加一个新的方法,名字叫做playgame,下列代码正确的是?
def playgames(self):
def playgames():
def (playgames):
def ()playgames:
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
观察上图代码,c是Car类的一个实例,现在想打印出c中color属性,下列代码正确的是?
print(c)
print(Car.color)
print(c.color)
print(color)
Create a free account and access millions of resources
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
10 questions
2223_S4_ICT_T2_exam_exercise_1-10
Quiz
•
9th - 12th Grade
10 questions
scratch 小試身手
Quiz
•
3rd Grade
10 questions
scratch
Quiz
•
11th - 12th Grade
10 questions
113.2國三第二章網路連接(2)
Quiz
•
9th Grade
11 questions
著作權 合理使用2
Quiz
•
7th Grade
15 questions
資訊科技七年級第三次段考
Quiz
•
7th Grade
10 questions
Scratch小測驗2
Quiz
•
1st - 5th Grade
10 questions
Operation System
Quiz
•
10th - 12th Grade
Popular Resources on Wayground
10 questions
Honoring the Significance of Veterans Day
Interactive video
•
6th - 10th Grade
9 questions
FOREST Community of Caring
Lesson
•
1st - 5th Grade
10 questions
Exploring Veterans Day: Facts and Celebrations for Kids
Interactive video
•
6th - 10th Grade
19 questions
Veterans Day
Quiz
•
5th Grade
14 questions
General Technology Use Quiz
Quiz
•
8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Circuits, Light Energy, and Forces
Quiz
•
5th Grade
19 questions
Thanksgiving Trivia
Quiz
•
6th Grade
Discover more resources for Computers
18 questions
Company Logos
Quiz
•
6th - 8th Grade
13 questions
PowerPoint Basics
Quiz
•
6th - 8th Grade
10 questions
App Creators Lesson 2.1-2.4
Quiz
•
8th Grade
10 questions
Exploring Computer Science Careers and Subfields
Interactive video
•
6th - 10th Grade
15 questions
AP CSP Unit 4
Quiz
•
10th - 12th Grade
23 questions
Prog 1 Python Q1 Practice
Quiz
•
9th - 12th Grade
20 questions
logo quiz
Quiz
•
3rd Grade
