第一章 单元测试

1、 问题:

A successful approach of learning  program in C depends on large amounts of practice. ( )

选项:
A:对
B:错
答案: 【


2、 问题:

A structured program consists of three basic structures, and an algorithm consisting of three basic structures can( )

结构化程序由三种基本结构组成,三种基本结构组成的算法可以( )

选项:
A:Tasks of any complexity can be accomplished.

可以完成任何复杂的任务

B:Only partially complex tasks can be completed.

只能完成部分复杂的任务

C:Only tasks that conform to the structure can be completed.

只能完成符合结构化的任务

D:Only a few simple tasks can be completed.

只能完成一些简单的任务

答案: 【
Tasks of any complexity can be accomplished.

可以完成任何复杂的任务

3、 问题:

Which of the following descrpitions is correct( )

选项:
A:Algorithms implemented in C programs must have both input and output operations.

用C程序实现的算法必须要有输入和输出操作

B:Algorithms implemented in C programs can have no output, but they must have inputs.

用C程序实现的算法可以没有输出但必须要有输入

C:Algorithms implemented in C programs can have no input, but they must have outputs.

用C程序实现的算法可以没有输入但必须要有输出

D:Algorithms implemented with C programs can have neither input nor output.

用C程序实现的算法可以既没有输入也没有输出

答案: 【
Algorithms implemented in C programs can have no input, but they must have outputs.

用C程序实现的算法可以没有输入但必须要有输出

4、 问题:Which language runs the fastest on the computer?( )
选项:
A:Machine Language机器语言
B:Assembley Language汇编语言
C:Advanced Language高级语言
D:It takes the same amount of time上述语言运行得一样快
答案: 【
Machine Language机器语言

5、 问题:

Which of the following descrpitions is wrong?

选项:
A:computer cannot directly execute a source program written in C.

计算机不能直接执行用C语言编写的源程序 

B:When the C program is compiled by the C compiler, the file with the  obj extension is a binary file. 

C程序经C 编译程序编译后,生成扩展名为obj 的文件是一个二进制文件

C:A file with the extension obj, and a file with the extension exe generated by the connector is a binary file.

扩展名为obj的文件,经连接程序生成扩展名为 exe 的文件是一个二进制文件

D:Binaries with the extension obj and exe can be run directly.

扩展名为obj和exe的二进制文件都可以直接运行

答案: 【
Binaries with the extension obj and exe can be run directly.

扩展名为obj和exe的二进制文件都可以直接运行

第二章 单元测试

1、 问题:Comments cannot be nested(嵌套), i.e. you cannot have a comment within another comment.( )
选项:
A:对
B:错
答案: 【

2、 问题:

Which of the following options are valid variable names?( )

选项:
A:stock_code
B:money$
C:X-RAY
D:xyz
答案: 【
stock_code
xyz

3、 问题:

The correct floating constant (实型常量) in the following options is ( )

选项:
A:32.88
B:

C:.871
答案: 【
32.88

4、 问题:

which description is correct?( )

选项:
A:Comments in C programs can only appear at the beginning of the program and at the end of the statement.

 C程序中的注释只能出现在程序的开始位置和语句的后面

B:C programs are written in a strict format, requiring that only one sentence can be written in a line. 

C程序书写格式严格,要求一行内只能写一个语句

C:C programs are written in a free format, and a single statement can be written on multiple lines.

C程序书写格式自由,一个语句可以写在多行上

D:Programs written in C can only be placed in one program file. 

用C语言编写的程序只能放在一个程序文件中

答案: 【
C programs are written in a free format, and a single statement can be written on multiple lines.

C程序书写格式自由,一个语句可以写在多行上

5、 问题:Assuming the following:
int i;
char c;
which of the following statements are valid ?( )
选项:
A:c = ‘A’ ;
B:i = “1” ;
C:i = 1 ;
D:c = ‘1’;
答案: 【
c = ‘A’ ;
i = 1 ;
c = ‘1’;

第三章 单元测试

1、 问题:

The operator with the lowest priority(优先级) among the following options is ( )

选项:
A:||
B:!=
C:<=
D:+
答案: 【
||

本门课程剩余章节答案为付费内容
支付后可长期查看
有疑问请添加客服QQ 2356025045反馈
如需购买期末请联系客服QQ 2356025045
如遇卡顿看不了请换个浏览器即可打开
请看清楚了再购买哦,电子资源购买后不支持退款哦