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

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
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade