The superstar Erya learned the answer to the test in Chapter 2023 of Python Language Foundation and Application (Peking University).
chapter one
1. program is a series of () steps to do one thing or solve a problem. D
First, disorder
B, random
repeat
D, fixing
Statement lines in 2.2. Python language programs must be aligned (). D
A, centered
B, right
C, alignment is not required.
D, left side
3. Some statements (such as if, else, while) end with a colon:, so the following lines are indented by (_ _ _ _ _ _) spaces. B
One, at least four
B, at least 1
C, must be 2.
D, 4 at most
4.Python3 no longer distinguishes between integers and long integers, but is unified as () type. C
A, floating
B, string
c、int
D, Longlong
5. The following belongs to the man-machine interaction mode is (). B.C.
A, CPU performs calculation.
B, input text
C, toggle the joystick
D, virtual reality technology
6. The content after the symbol # in the program is (). ab blood type
A. Comments
B. comments
C, executable statements
D, function call
7. What processes can be regarded as procedures in daily life? Alternating current
I. Drama performance
Concert performance
C, cooking with a rice cooker
D, bank teller withdrawal service
8.8 The most suitable application field. Python language ABC
A. Website development
B. Big data analysis
C, artificial intelligence application
D, large-scale 3D game development
9. Guido was named Python because his family has a pet snake. (error)
10. The first generation of programmers who programmed the first computer were six women. (correct)
1 1.Python released its first version on 200 1 (error)
12.Python statement must be right-aligned. (error)
13.if statement should have a semicolon at the end, and the following statements should be indented by four spaces. (error)
Python is an advanced, dynamic and completely object-oriented language. () Correct
15.Python version is fully compatible with 3. X. (error)
chapter two
On which operating systems can 1? Python run? D
A: Linux
iMac
c、Windows
D, every option is fine.
2. The integrated development environment attached to the official version 2.0. Python package is (_ _ _ _ _ _). B
First, the eclipse
B, the shell is idle
C. Peacham
boa
3.3 Which of the following data types is not supported? Python? C
A, floating
B. List
c、char
D, complex
4. Call the (_ _ _ _ _ _ _) function of the (_ _ _ _ _) module in 4. Python to realize the operation of square root of realistic number. A
A, mathematics sqrt
b、cmath abs
c、cmath sqrt
D, mathematics abs
5. The following options belong to Python philosophy (_ _ _ _ _ _). American Broadcasting Company Inc (ABC)
First, flat is better than nested.
B, beauty is better than ugliness.
Simple is better than complicated.
D, simplicity is not as good as redundancy
6. The following information about the data is (_ _ _ _ _ _). Accelerated business collection and delivery system (adopted by the United States post office)
There are various data types, including number type, text string type and so on.
B.Python language is widely used in the field of big data analysis and processing.
C. data is the expression and carrier of information.
Three-dimensional data is the abstraction of entities and concepts in the real world.
7.IDLE is the visual interface of the integrated development environment that comes with Python software package. (right)