Python程序设计(英语)智慧树知到答案章节测试2023年中央财经大学

更新时间:2023-07-07 22:12:10 阅读: 评论:0

第一章测试
1.What is the fundamental question of computer science? ( )
A:How much money can a programmer make?
B:How fast can a computer compute?
C:What can be computed?
D:What is the most effective programming language?
答案:C
2.A statement is ( )
A:a preci description of a problem
B:a complete computer command
C:a translation of machine language
D:a ction of an algorithm
答案:B
3.The items listed in the parenthes of a function definition are called ( )
A:parentheticals
B:both B and C are correct
五大宝石C:arguments
D:parameters
答案:B
糖醋鸡米花
4.All information that a computer is currently working on is stored in main memory. ( )
A:对
椒盐豆腐B:错
答案:A
5.A loop is ud to skip over a ction of a program. ( )
A:错
B:对
答案:A
第二章测试
6.Which of the following is not a legal identifier? ( )
A:spam
B:2spam
C:spam4U
D:spAm
答案:A
7.In Python, getting ur input is done with a special expression called ( )
A:input
B:for
C:read
D:simultaneous assignment
答案:A
8.The process of describing exactly what a computer program will do to solve a problem is called ( )
A:programming
B:implementation
C:specification
D:Design
答案:C
9.In Python, x = x + 1 is a legal statement. ( )
卖酒A:错
B:对
答案:B
10.The best way to write a program is to immediately type in some code and then debug it until it works. ( )
A:错
B:对
答案:A
第三章测试
11.Which of the following is not a built-in Python data type? ( )
A:float
B:rational
C:string
D:int
答案:B
12.The most appropriate data type for storing the value of pi is ( )
A:string
B:irrational
C:int
D:float
答案:D
13.The pattern ud to compute factorials is ( )
A:counted loop
B:input, process, output
C:accumulator
D:plaid
答案:C
14.In Python, 4+5 produces the same result type as 4.0+5.0. ( )
A:错
B:对
答案:A
15.Definite loops are loops that execute a known number of times. ( )
A:对
B:错
答案:A
第四章测试
16.A method that changes the state of an object is called a(n) ( )
A:accessor
B:function
C:mutator
D:constructor
答案:C
17.Which of the following computes the horizontal distance between points p1 and p2? ( )
X( ) - p1.getX( )
B:Y( ) - p2.getY( ))
C:abs (p1-p2)
D:X( ) - p2.getX( ))
答案:D
18.What color is color_rgb (0,255,255)? ( )
A:Orange
B:Cyan
C:Magenta
D:Yellow
答案:B
19.The situation where two variables refer to the same object is called aliasing. ( )
A:错
梅花树简笔画B:对
答案:B
20.A single point on a graphics screen is called a pixel. ( )
A:对
B:错
答案:A
第五章测试
21.Which of the following is the same as s [0:-1]? ( )
A:s[0:len(s)]
B:s[:]
C:s[:len(s)-1]
D:s[-1]
答案:C
22.Which of the following cannot be ud to convert a string of digits into a number? ( )
A:eval
B:float
C:str
D:int
答案:C
23.Which string method converts all the characters of a string to upper ca? ( )
A:capwords
一年级音乐歌曲B:upperca
C:capitalize
D:upper
答案:D
24.In Python “4”+“5”is “45”. ( )
A:对
B:错
答案:A
25.The last character of a strings is at position len(s)-1. ( )
A:对
B:错
答案:A
第六章测试
26.A Python function definition begins with ( )
A:function
B:def
C:define
D:defun
答案:B
27.Which of the following is not a reason to u functions? ( )
A:to make a program more modular
B:to demonstrate intellectual superiority
C:to make a program more lf-documenting
D:to reduce code duplication意识淡薄
答案:B
28.A function with no return statement returns ( )
A:None
B:nothing
C:its variables
D:its parameters
答案:A
29.The scope of a variable is the area of the program where it may be referenced. ( )
A:对
B:错
答案:A
30.In Python, a function can return only one value. ( )
A:错
B:对
答案:A
第七章测试
31.In Python, the body of a decision is indicated by ( )
A:parenthes
B:curly braces
C:a colon
D:indentation
答案:D
32.Placing a decision inside of another decision is an example of ( )
A:nesting
B:spooning
C:procrastination
D:cloning
答案:A
33.Find a correct algorithm to solve a problem and then strive for ( )
A:scalability
行政主管的工作内容和职责B:efficiency
C:clarity
D:simplicity
答案:ABCD

本文发布于:2023-07-07 22:12:10,感谢您对本站的认可!

本文链接:https://www.wtabcd.cn/fanwen/fan/89/1072155.html

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

标签:工作   内容   豆腐   音乐   椒盐   歌曲
相关文章
留言与评论(共有 0 条评论)
   
验证码:
推荐文章
排行榜
Copyright ©2019-2022 Comsenz Inc.Powered by © 专利检索| 网站地图