2024知到答案 高级语言程序设计(双语版)(温州医科大学) 最新智慧树满分章节测试答案
第一章 单元测试
文章目录
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:Only tasks that conform to the structure can be completed.只能完成符合结构化的任务
B:Only partially complex tasks can be completed.只能完成部分复杂的任务
C:Only a few simple tasks can be completed.只能完成一些简单的任务
D:Tasks of any complexity can be accomplished.可以完成任何复杂的任务
答案: 【Tasks of any complexity can be accomplished.可以完成任何复杂的任务】
3、单选题:
Which of the following descrpitions is correct( )
选项:
A:Algorithms implemented in C programs can have no output, but they must have inputs.用C程序实现的算法可以没有输出但必须要有输入
B:Algorithms implemented in C programs can have no input, but they must have outputs.用C程序实现的算法可以没有输入但必须要有输出
C:Algorithms implemented in C programs must have both input and output operations.用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:Advanced Language高级语言
B:It takes the same amount of time上述语言运行得一样快
C:Assembley Language汇编语言
D:Machine Language机器语言
答案: 【Machine Language机器语言】
5、单选题:
Which of thefollowing descrpitionsis wrong?
选项:
A:Binaries with the extension obj and exe can be run directly.扩展名为obj和exe的二进制文件都可以直接运行
B:A file with the extension obj, and a file with the extension exe generated by the connector is a binary file.扩展名为obj的文件,经连接程序生成扩展名为 exe 的文件是一个二进制文件
C:When the C program is compiled by the C compiler, the file with the obj extension is a binary file.C程序经C 编译程序编译后,生成扩展名为obj 的文件是一个二进制文件
D:computer cannot directly execute a source program written in C.计算机不能直接执行用C语言编写的源程序
答案: 【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:xyz
B:money$
C:stock_code
D:X-RAY
答案: 【xyz;
stock_code】
3、单选题:
The correct floating constant (实型常量) in the following options is ( )
选项:
A:.871
B:
C:32.88
答案: 【32.88】
4、单选题:
which description is correct?( )
选项:
A:C programs are written in a strict format, requiring that only one sentence can be written in a line.C程序书写格式严格,要求一行内只能写一个语句
B:Comments in C programs can only appear at the beginning of the program and at the end of the statement.C程序中的注释只能出现在程序的开始位置和语句的后面
C:Programs written in C can only be placed in one program file.用C语言编写的程序只能放在一个程序文件中
D:C programs are written in a free format, and a single statement can be written on multiple lines.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:i = "1" ;
B:c = '1';
C:c = 'A' ;
D:i = 1 ;
答案: 【c = '1';;
c = 'A' ;;
i = 1 ;】