
python2 条件语句 数据类型 循环
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
昀浩 管
Used 16+ times
FREE Resource
Enhance your content in a minute
35 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
执行代码后,输出的结果是?( )
22 10
12 7
45 9
55 10
2.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
已知s=list("sgdhasdghasdg"),以下选项中能输出字符“g”出现的次数的是?
print(s.index(g))
print(s.index("g"))
print(s.count("g"))
print(s.count(g))
3.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
代码的执行结果是?( )
efg
efgh
def
defg
4.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
运行如图代码,结果是?
3
4
5
6
5.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
如图代码的输出结果是?
[0,1,2,3,4]
[0,1,2,3]
0,1,2,3,4
0,1,2,3
6.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
如图代码输出结果是?
橘子芒果草莓西瓜水蜜桃
橘子 芒果 草莓 西瓜 水蜜桃
"橘子","芒果","草莓","西瓜","水蜜桃"
"橘子" "芒果" "草莓" "西瓜" "水蜜桃"
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
关于Python中的流程控制语句,下列描述错误的是?
在分支结构中,if、elif、else都可以单独使用。
分支结构中的条件判断通常用关系表达式或逻辑表达式来进行描述。
continue语句和break语句只有在循环结构中才可以使用。
while语句和for语句的循环条件后都必须输入冒号,需要循环执行的语句必须
有缩进。
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
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
