Python 二级真题

Python 二级真题

7th Grade

38 Qs

quiz-placeholder

Similar activities

S11电脑与网络安全

S11电脑与网络安全

7th Grade - University

35 Qs

輔助字型練習

輔助字型練習

7th - 9th Grade

35 Qs

遙控無人機考古題(專業操作證4)

遙控無人機考古題(專業操作證4)

KG - Professional Development

40 Qs

デジタル機器利用ポリシー

デジタル機器利用ポリシー

7th Grade

42 Qs

數概_上_Ch12

數概_上_Ch12

6th - 8th Grade

42 Qs

Python 二级真题

Python 二级真题

Assessment

Quiz

Computers

7th Grade

Hard

Created by

小星 翟

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Media Image

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?