c语言测试清单,c语言测试(C language test).doc

c语言测试(C language test)

c语言测试(C language test)

* * college course exam papers

Course Name: "C: the use of C language programming software to enter the world" (A) volume

Grade: class:

Name: ______BUKAILI_________ number: _________________ test (test) closed book

Question no. 1-20 21-40 41-50 total

Fraction

Multiple choice (2 points for each question, a total of 100 points)

1. in the C language, the following is a valid identifier (AB). (choose two.)

A. COUNT B. P234 C. 4x D. short

2. there is an array of int num [5] = {10,20,30,40,50}; num[3] = (C). (choose one)

A. 30 B. 50 C. 40 D. 20 E. 10

B

3.C, while and do... The main difference is the while cycle (B). (choose one)

The cycle of control of A.while than do... The while loop control strict conditions

B.do... The body of the while is at least the unconditional implementation of a

C.do... While allows from the outside into the loop body

D.do... The body of the loop is not while compound statement

The correct description is below 4. (CD). (choose two.)

A. in the C program, only a written statement in each line

B. in the C program, Abc and ABC are the same 2 variables

If the C. type A and B in the same way, the value of B will put a in the assignment expression of a=b were calculated, and the value of B.

D. if a is a float type variable, a=10 is legal, because the float variable allows storing integer

The output result is below 5. C code (BC). (choose one)

Int answer, result;

Answer=100;

Result=answer-10;

Printf ("The result is%d, result+5);

A.The result is 90 B. The result is 95

C. The result is 10 D. The result is 100

6. in C, with char array []= array definition: "China"; the array space for array (C). (choose one)

A. 4 bytes of B. 5 bytes of C. 6 bytes of D. 7 bytes

7. in C (A) is outside any function declaration. (choose one)

A. global variable B. C. local variable parameter D. argument

8. of the following C program:

#include

Void (main)

{

Int num=0;

While (num<=2) {

Num++;

Printf (%d, num);

}

}

The output is the result (A). (ch

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值