C language test c (fast)
First, multiple-choice questions (***20 points, 2 points for each question)

1. The following statement is true _ _ d _ _ _ _

A) You cannot use the loop formed by the do…while statement.

B) The B)do…while statement forms a loop, and you must use the break statement to exit.

C) The loop formed by C)do…while statement ends when the expression value in the while statement is not zero.

D)do…while statement, which ends when the expression value in the while statement is zero.

2. The correct one in the following description is _ _ _ _ _ A _ _ _

A) Strings can be stored in character arrays.

B) It is not allowed to input or output the whole string.

C) integer array can be input and output as a whole.

D) You can assign a value to the whole character array through the assignment operator "=" in the assignment statement.

3. Structured programming emphasizes _ _ _ _ _ B _ _ _

A) the execution speed of the program b) the readability of the program

C) the economy of the program d) the correctness of the program

4. A good algorithm consists of the following basic structure, but does not include _ _ _ d _ _ _ _ _

A) sequence structure b) selection structure c) cyclic structure? D) jump structure

5. The correct one in the following statement is _ _ _ _ _ c _ _ _

A)C language is a low-level language

B)C language is more efficient than assembly language.

C)C language is expressed in natural language and mathematical language close to English-speaking countries.

D)C language appeared at the latest and has all the advantages of other languages.

6. In C language, when referencing array elements, the data type of its array subscripts is allowed to be _ _ _ c _ _ _.

A) character b) array name

C) integer constant or integer expression d) logical expression

7. If there are the following program segments:

Char s[]= "China";

char * p;

p = s;

Then the following statement is correct _ _ _ c _ _ _

A)*p equals s

B)p equals s[0]

C)p equals S.

D)*p and & S[0] are equal.

8. In C language, the incorrect int type constant is _ _ _ all pairs _ _ _ _

a)-32778 B)32767 C)037D)0x afffff

9. in c language, the backspace character is d.

A)\n B)\t C)\f D)\b

10. The expression X+=Y*Z+8 is equivalent to _ _ _ a _ _ _ _

A)X=X+Y*Z+8

B)X=X*Y*Z+X*8

C)X=X*Y*8+X

D)X=Y+Z+8

Second, the judgment question. (* * Each question 10, 1)

1 C language programs are functions. (√ )

2 2. There is no difference between # include "stu.h" and # include < stu.h & gt (10)

3. The %d in the output table column parameter of the 3.printf function means output as an integer. (√ )

4. The operator of logical NOT operation is! . (√ )

5. When defining global variables, the static keyword cannot be omitted. (10)

6. The function is used to copy a string. (10)

7. When calculating, the conditional operator in the expression takes precedence over the assignment operator. (√ )

8. The 8.break command can be used to jump out of the current switch structure. ( √ )

9. String cannot be used as a function parameter. (10)

10. Register variables are partitioned in memory. (x)-CPU register area