
Python 二级真题

Quiz
•
Computers
•
7th Grade
•
Hard

小星 翟
Used 3+ times
FREE Resource
38 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
期末考试结束了,全班的语文成绩都储存在列表score中,班主任老师请小明找到全班最高分,小明准备用Python来完成,以下哪个选项,可以获取最高分呢?
min(score)
max(score)
score.max()
score.min()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
已知列表a=[1,2,3,4,5,6],想输出[2,3,4],可以使用以下哪个语句?
print(a[2:4])
print(a[2:5])
print(a[1:4])
print(a[0:4])
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
第一小组成员姓名和年龄如下 dic1={'张明':12,'李红':12,'王长江':13} 现新增成员龙小勤,年龄为13,以下代码正确的是?
dic1['龙小勤']=13
['龙小勤']=13
dic1.['龙小勤']=13
dic1('龙小勤')=13
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
已知列表ls=list(range(3,33,3)),则ls第5个元素是?
15
18
21
24
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
执行如下代码,tuple不属于元组的选项是?
tuple=()
tuple=('北京')
tuple=('芜湖',)
tuple=('北京','芜湖','合肥','上海')
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
已知festival={"正月初一":"春节","正月十五":"元宵节","五月初五":"端午节","八月十五":"中秋节"},则输出"正月初一"对应节日的代码是?
print(delfestival["正月初一"])
print(festival["正月初一"])
print(festival.clear())
print(festival[1])
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
print(name+"天下第一可爱!")
print(name[1]+"天下第一可爱!")
print(name[0]+"天下第一可爱!")
print(name+天下第一可爱!)
Create a free account and access millions of resources
Similar Resources on Wayground
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade