APP下载
首页
>
财会金融
>
C语言期末复习基础知识测验
搜索
C语言期末复习基础知识测验
题目内容
(
单选题
)
3、构成C语言源程序的基本单位是( )(1.5)

A、 过程

B、 函数

C、 子程序

D、 命令

答案:B

C语言期末复习基础知识测验
10、
https://www.shititong.cn/cha-kan/shiti/00054443-7207-177e-c014-cedb28f5e100.html
点击查看题目
32、putchar( )函数可以向终端输出一个( )。(1.5)
https://www.shititong.cn/cha-kan/shiti/00054443-7207-4b8a-c014-cedb28f5e100.html
点击查看题目
57、源程序program.c经编译产生的目标文件和连接后产生的可执行文件是( )。(1.5)
https://www.shititong.cn/cha-kan/shiti/00054443-7207-82c3-c014-cedb28f5e100.html
点击查看题目
78、 下面程序段循环一次也不执行。 int x=10; while(x=0) x=x-1;
https://www.shititong.cn/cha-kan/shiti/00054443-7207-af31-c014-cedb28f5e100.html
点击查看题目
77、 执行以下程序段后,x的值为0,y的值为1。 int x, y; if (x = 0) y = 0; else y = 1;
https://www.shititong.cn/cha-kan/shiti/00054443-7207-ad4d-c014-cedb28f5e100.html
点击查看题目
5、下列属于C语言中合法标识符的是( )(1.5)
https://www.shititong.cn/cha-kan/shiti/00054443-7207-0bd7-c014-cedb28f5e100.html
点击查看题目
9、
https://www.shititong.cn/cha-kan/shiti/00054443-7207-1588-c014-cedb28f5e100.html
点击查看题目
72、C语言的每条可执行语句最终都将被转换成二进制的机器指令。(0.5)
https://www.shititong.cn/cha-kan/shiti/00054443-7207-a339-c014-cedb28f5e100.html
点击查看题目
31、若 x 为 float 型变量,则以下语句( )。x=213.82631; printf("%-4.2f\n",x);(1.5)
https://www.shititong.cn/cha-kan/shiti/00054443-7207-4997-c014-cedb28f5e100.html
点击查看题目
43、下列程序段运行后x的值是( )。int a = 0, b = 0, c = 0, x = 35;if (!a) x--;else if (b);if (c) x = 3;else x = 4;(1.5)
https://www.shititong.cn/cha-kan/shiti/00054443-7207-64ca-c014-cedb28f5e100.html
点击查看题目
首页
>
财会金融
>
C语言期末复习基础知识测验
题目内容
(
单选题
)
手机预览
C语言期末复习基础知识测验

3、构成C语言源程序的基本单位是( )(1.5)

A、 过程

B、 函数

C、 子程序

D、 命令

答案:B

C语言期末复习基础知识测验
相关题目
10、

A. .cpp

B. .c

C. .obj

D. .exe

https://www.shititong.cn/cha-kan/shiti/00054443-7207-177e-c014-cedb28f5e100.html
点击查看答案
32、putchar( )函数可以向终端输出一个( )。(1.5)

A. 字符串

B. 字符或字符型变量值

C. 实型变量值

D. 浮点型变量值

https://www.shititong.cn/cha-kan/shiti/00054443-7207-4b8a-c014-cedb28f5e100.html
点击查看答案
57、源程序program.c经编译产生的目标文件和连接后产生的可执行文件是( )。(1.5)

A. program.bak和program.obj

B. program.obj和program.exe

C. program.exl和program.c

D. program.bak和prgram.exe

https://www.shititong.cn/cha-kan/shiti/00054443-7207-82c3-c014-cedb28f5e100.html
点击查看答案
78、 下面程序段循环一次也不执行。 int x=10; while(x=0) x=x-1;
https://www.shititong.cn/cha-kan/shiti/00054443-7207-af31-c014-cedb28f5e100.html
点击查看答案
77、 执行以下程序段后,x的值为0,y的值为1。 int x, y; if (x = 0) y = 0; else y = 1;
https://www.shititong.cn/cha-kan/shiti/00054443-7207-ad4d-c014-cedb28f5e100.html
点击查看答案
5、下列属于C语言中合法标识符的是( )(1.5)

A. ex-1

B. _cook

C. 951a

D. if

https://www.shititong.cn/cha-kan/shiti/00054443-7207-0bd7-c014-cedb28f5e100.html
点击查看答案
9、

A. 若干过程

B. 一个或多个函数

C. 若干子程序

D. 一个主程序与若干子程序

https://www.shititong.cn/cha-kan/shiti/00054443-7207-1588-c014-cedb28f5e100.html
点击查看答案
72、C语言的每条可执行语句最终都将被转换成二进制的机器指令。(0.5)
https://www.shititong.cn/cha-kan/shiti/00054443-7207-a339-c014-cedb28f5e100.html
点击查看答案
31、若 x 为 float 型变量,则以下语句( )。x=213.82631; printf("%-4.2f\n",x);(1.5)

A. 输出为213.83

B. 输出格式描述符的域宽不够,不能输出

C. 输出为213.82

D. 输出为-213.82

https://www.shititong.cn/cha-kan/shiti/00054443-7207-4997-c014-cedb28f5e100.html
点击查看答案
43、下列程序段运行后x的值是( )。int a = 0, b = 0, c = 0, x = 35;if (!a) x--;else if (b);if (c) x = 3;else x = 4;(1.5)

A. 34

B. 35

C. 4

D. 3

https://www.shititong.cn/cha-kan/shiti/00054443-7207-64ca-c014-cedb28f5e100.html
点击查看答案
试题通小程序
试题通app下载