c语言英语试题,c语言考试题6(国外英语资料).doc

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

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值