
Python 二级真题
Quiz
•
Computers
•
7th Grade
•
Hard
小星 翟
Used 3+ times
FREE Resource
Enhance your content in a minute
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
