执行代码后,输出的结果是?( )

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 Quizizz
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade