
python2 条件语句 数据类型 循环

Quiz
•
Computers
•
University
•
Medium

昀浩 管
Used 13+ times
FREE Resource
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语句的循环条件后都必须输入冒号,需要循环执行的语句必须
有缩进。
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Computers
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
2 questions
Pronouncing Names Correctly

Quiz
•
University
34 questions
WH - Unit 2 Exam Review -B

Quiz
•
10th Grade - University
21 questions
Mapa países hispanohablantes

Quiz
•
1st Grade - University
10 questions
Transition Words

Quiz
•
University
5 questions
Theme

Interactive video
•
4th Grade - University
25 questions
Identifying Parts of Speech

Quiz
•
8th Grade - University
10 questions
Spanish Greetings and Goodbyes!

Lesson
•
6th Grade - University