#1552. 2024年6月python三级单选题
2024年6月python三级单选题
单选题(每题2分,共30分)
第1题
⼩杨父母带他到某培训机构给他报名参加CCF组织的GESP认证考试的第1级,那他可以选择的认证语言有几 种?( )
{{ select(1) }}
- 1
- 2
- 3
- 4
第2题
下⾯流程图在yr输⼊2024时,可以判定yr代表闰年,并输出2月是29天,则图中菱形框中应该填入( )。
{{ select(2) }}
- (yr%400 == 0) || (yr%4 == 0)
- (yr%400 == 0) || (yr%4 == 0 && yr%100 != 0)
- (yr%400 == 0) && (yr%4 == 0)
- (yr%400 == 0) && (yr%4 == 0 && yr%100 != 0)
第3题
下列流程图的输出结果是?( )
{{ select(3) }}
- 5
- 10
- 20
- 30
第4题
将十进制2024转化成八进制,可以使用下列哪个表达式?( )
{{ select(4) }}
- bin(2024)
- int(2024)
- oct(2024)
- hex(2024)
第5题
执行下面Python代码后,输出的结果是?( )
{{ select(5) }}
- 1
- 2
- 3
- 4
第6题
执行下面Python代码后,输出的结果不可能是哪⼀项?( )
{{ select(6) }}
- {0: 8, 4: 4, 6: 2, 2: 6}
- {8: 0, 6: 2, 4: 4, 2: 6}
- {4: 4, 6: 2, 8: 0, 2: 6}
- {8: 0, 2: 6, 4: 4, 6: 2}
第7题
执行下面Python代码后,输出的结果是?( )
{{ select(7) }}
- ('scratch', 'c++', 'python')
- ('python', 'scratch', 'c++')
- ('scratch', 'python','c++')
- ( 'c++','python','scratch')
第8题
执行下面Python代码后,输出的结果是?( )
{{ select(8) }}
- (3, 4, 5, 6, 7, 'c', 'd', 'e')
- (3, 4, 5, 6, 7, 'f', 'e', 'd', 'c')
- (3, 4, 5, 6, 'f', 'e', 'd', 'c')
- (3, 4, 5, 6, 7, 'f', 'e', 'd')
第9题
执行下面Python代码后,输出的结果是?( )
{{ select(9) }}
- [9, 7, 5, 3, 1] [8, 6, 4, 2, 0]
- [8, 6, 4, 2, 0] [9, 7, 5, 3, 1]
- [0, 2, 4, 6, 8] [1, 3, 5, 7, 9]
- [1, 3, 5, 7, 9] [0, 2, 4, 6, 8]
第10题
执行下面Python代码后,输出的结果是?( )
{{ select(10) }}
- ['a', 'e', 'g', 'n', 'o', 'r']
- ['e', 'g', 'n', 'a', 'r', 'o']
- ['r', 'o', 'n', 'g', 'e', 'a']
- ['o', 'r', 'a', 'n', 'g', 'e']
第11题
下面可以正确输出 They're planning a party for their friend's birthday. 的Python语句是?( )
{{ select(11) }}
- print('They\ 're planning a party for their friend\ 's birthday.")
- print("They\ 're planning a party for their friend\ 's birthday.')
- print('They're planning a party for their friend's birthday.')
- print('They\ 're planning a party for their friend\ 's birthday.')
第12题
执行下面Python代码后,输出的结果是?( )
{{ select(12) }}
- ['gesp', 'ccf.org.cn']
- ['gesp', 'ccf', 'org.cn']
- ['gesp', 'ccf', 'org', 'cn']
- ['gesp.ccf.org.cn']
第13题
执行下面Python代码后,输出的结果可能是?( )
{{ select(13) }}
- {'H', 'p', 'w', 'e', 'y', 'a', 'r', 'p', 'n'}
- {'p', 'n', 'w', 'r', 'H', 'y', 'a', 'e'}
- {'r', 'y', 'w', 'n', 'e', 'a', 'p', 'H', ' '}
- {'r', 'p', 'e', 'a', 'H', 'w', 'n', 'a', 'y'}
第14题
⼩杨在做数学题,题⽬要求找出从1到35中能被7整除的数字,即[7, 14, 21, 28, 35],以下哪个解析式可以完成这样的任务?( )
{{ select(14) }}
- [i for i in range(36) if i % 7 == 0]
- [i for i in range(1, 36) if i % 7 == 0]
- [i for i in range(1, 35) if i % 7 == 0]
- [i for i in range(1, 36) if i // 7 == 0]
第15题
某小学男子篮球队招募新成员,要求加入球队的成员身高在135厘米以上(不含135厘米)。本次报名的⼈ 员有10人,她们的身高分别是125、127、136、134、137、138、126、135、140、145。完善以下代码,求出本次球 队能够招募到新成员的⼈数?( )
{{ select(15) }}
- a.index(135)
- sum(b)
- len(b)
- b.count('True')
相关
在以下作业中: