c语言考试题6(国外英语资料)
c语言考试题6
Paper number: 8324
Language: C
Test plan: CQM
The total score: 100 points
Common problem: 4 kinds
━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━
10 (20 points)
━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━
Problem 1 (2.0) : 1152
After execution of the following program segment: int x = 4, y = 25, and z = 5 Z = y/x * z; The value of z is [1].
The answer:
1). 30
Problem 2 (2.0) : 1191
If there are array a, array elements: a [0] ~ a [9], the value is
9, 4, 4, 12, 8, 8, 2, 10, 7, 5, 1, 3
The lower value of the element in the array is [1].
The answer:
1). 8
Problem 3 (2.0) : 332
If there are array a, array elements: a [0] ~ a [9], the value is
9, 4, 4, 12, 8, 8, 2, 10, 7, 5, 1, 3
The smallest possible value for this array is [1].
The answer:
1). 0
Problem 4 (2.0) : 1517
The value of x is 15, the value of n is 2, and then x % = (n + = 3), the value of x is [1].
The answer:
1). 0
Problem 5 (2.0) : 306
When a = 1, b = 2, c = 3, the following segment of the program is followed by b = 【 1 】.
If (a > c) b = a;
A = c.
C = b;
The answer:
2 1).
Problem 6 (2.0) : 540
If you have the following definitions and statements:
Int a [5] = {1, 3, 5, 7, 9}, * p;
P = & a, [2].
+ + (* p) is the value of 1.
The answer:
6 1).
Problem 7 (2.0) : 1560
Set a = 3, b = 4, c = 4, and the expression a + b >, c & &b = c & &b = c &c & b = = c is equal to the value of c (1).
The answer:
1).
Problem 8 (2.0) : 344
The library function of the copied string is [1], just write the function name.
The answer:
1). A strcpy
Problem 9 (2.0) : 1582
Set x and y are both int variables, and the number of times that the scanf statement in the for loop is performed at most is [1].
For (x = 0, y = 0; y factorial = 123 & x < 3; x + +)
Scanf (" % d ", & y);
The answer:
1). 3
Problem 10 (2.0) : 254
Int a = 1, b = 2, c = 3; After execution of the statement a + = b * = c; The value of a is.
The answer:
1). 7
━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━
(10 points)
━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━ ━
Problem 1 (1.0) : 40
An include command can specify multiple files that