Python语言程序设计(全英)智慧树知到课后章节答案2023年下华南理工大学
华南理工大学
第一章测试
1.Which is NOT the main part of computer ( )

A:memory
B:CPU
C:Cache
D:I/O equipment

答案:Cache

2.Which symbol can be used for comments in Python ( )


A://
B:#
C:!
D:“

答案:#
;“

3.The integrated development tool built into Python is ( ).

A:IDLE
B:Jupyter
C:Pycharm
D:Vs code

答案:IDLE

4.Which is the correct operator for power(Xy)? ( )

A:X**y
B:X^^y
C:X^y
D:None of the mentioned

答案:X**y

5.Which of the following is incorrect? ( )

A:float(4.2)
B:float("3")
C:float(3)
D:float("3+5")

答案:float("3+5")大学python知识点汇总
第二章测试
6.Which of the following is an invalid variable? ( )

A:my_string_1
B:1st_string
C:foo
D:_

答案:1st_string

7.What will be the output of the following Python code ?
not(10<20) and not(10>30) ( )

A:True
B:No output
C:False
D:Error

答案:False

8.Which one will return error when accessing the list ‘l’ with 10 elements. ( )

A:l[-1]
B:l[0]
C:l[-10]
D:l[10]

答案:l[10]

9.What will be the output of the following Python code?
lst=[3,4,6,1,2]
lst[1:2]=[7,8]
print(lst) ( )

A:[3,[7,8],6,1,2]
B:[3,4,6,7,8]
C:Syntax error
D:[3, 7, 8, 6, 1, 2]

答案:[3, 7, 8, 6, 1, 2]

10.The following program input data: 95, the output result is?  (    )


A:
Please enter your score: 95
Your ability exceeds 85% of people!
B:
Please enter your score: 95
Awesome!
Your ability exceeds 85% of people!
C:
Please enter your score: 95
Awesome!
D:none of the mentioned

答案:
Please enter your score: 95
Awesome!
Your ability exceeds 85% of people!
第三章测试
11.Which one description of condition in the followings is correct? ( )

A:The condition 24<=28<25 is illegal
B:The condition 24<=28<25 is legal, and the output is True
C:The condition 24<=28<25 is legal, and the output is False
D:The condition 35<=45<75 is legal, and the output is False

答案:The condition 24<=28<25 is legal, and the output is False

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。