程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
您现在的位置: 程式師世界 >> 編程語言 >  >> 更多編程語言 >> Python

Analysis of level 2 real questions (multiple choice questions) of Python programming level test for youth software programming of the Institute of Electronics June 2021

編輯:Python

2021 year 6 month Python Analysis of real questions of level 2 programming test

choice question ( common 25 topic , Each question 2 branch , common 50 branch )

1、 After executing the following code , The result of the operation is

seq = ['hello','good','morning']
s = '*'.join(seq)
print(s)

A、hellogoodmorning*

B、hellogood*morning

C、hello*good*morning

D、*hello*good*morning*

answer :C

Test point analysis : Examine comprehensive knowledge ,join function , Is to convert each element in the sequence into a string through the connection of the preceding characters , So the answer C

2、 Xiao Hong uses a list score=[80,78,92,96,100,88,95] To show her seven week English test score in turn , If you want to find the English test score of the third week and delete it , What to do

A、score[3]

B、score[2]

C、score.pop(3)

D、score.pop(2)

answer :D


  1. 上一篇文章:
  2. 下一篇文章:
Copyright © 程式師世界 All Rights Reserved