中级程序设计(孙丽娜 孙宪丽)(沈阳工程学院)中国大学MOOC答案100分最新完整版

骑煞舍吼滔涎枫宝沥氮较膛鞠

对应课程:点击查看
起止时间:2020-02-24到2020-12-31
更新状态:已完结

第3周——从键盘中来,到键盘中去,开始输入和输出啦 第一次课单元测试-单选题

1、 Which one is an invalid identifier as follows ().

A:abc123
B:No.1
C:123
D:OK
答案: No.1

2、 Which one is a valid identifier as follows ( ). ‍

A:_buy_2
B:2_buy
C:? _buy
D:buy?
答案: _buy_2

3、 Which one is a valid identifier as follows (). ‍

A:int Define WORD
B:a3_b3 _123 IF
C:For -ABC Case
D:2a do sizeof
答案: a3_b3 _123 IF

4、 Which one is not the keyword in C language () .

A:int
B:break
C:while
D:character
答案: character

5、 Which one is the keyword in C language (). ‍

A:Float
B:signed
C:integer
D:Char
答案: signed

6、 Which one is right as follows (). ‍

A:A c program is consisted of a main program and a number of sub-programs.
B:A c program is consisted of one or more functions.
C:A c program is consisted of a number of processes.
D:A c program several sub-programs.
答案: A c program is consisted of one or more functions.

7、 What is the unit of C program (). ‍

A:Program Line
B:Statement
C:function
D:Character
答案: function

8、 Which one is wrong as
follows (). ‍

A:Only one statement
can be written on a line.
B:Each function has a
function header and a function body, and the main function is no exception.
C:The main function can only call user
functions or system functions, and user functions may call each other. ‍
D:A program is made up of several functions, but there must be, and only one, a main function.
答案: Only one statement
can be written on a line.

9、 Which one is right as
follows (). ‍

A:A c language program always starts with
the first defined function.
B:The function to be called must be
defined in the main function.
C:A c language program
always starts with the main function.
D:The main function in the C language program must be placed at the beginning of the program.
答案: A c language program
always starts with the main function.

10、 What is the C
compiler (). ‍

A:It is a machine
language version.
B:It is a set of
machine language instruction.
C:It is used to compile
the C source program into the target program.
D:It is a set of application software
provided by manufacturers.
答案: It is used to compile
the C source program into the target program.

11、 The ASCII code value of uppercase ‘A’ is 65, and the lowercase ‘a’ is 97, What is the value of character constant ‘ \101 ‘ ( ). ‍

A:A
B:a
C:c
D:Illegal constants
答案: A

12、 Which one is correct escape character ( ). // escape character 转义字符‍

A:’ \ ‘
B:’ 018 ‘
C: ‘ xab ‘
D:’ \abc ‘
答案: ‘ \abc ‘

13、 Which
one is the correct character constant (). ‍

A:”F”
B:’ \ ‘ ‘
C:’ W ‘
D: ”
答案: ‘ W ‘

14、 Which expression is
correct as follows ().int m=8,n, a, b; unsigned long w=10; double x=3.14, y=0.12;‍

A:a+=a-= (b=2) * (a=8)
B:n=n*3=18
C:x%3
D:y=float (m)
答案: a+=a-= (b=2) * (a=8)

15、 Which one is a
correct assignment expression as follows (). ‍

A:a=9+b+c=d+9
B:a= (9+b, c=d+9)
C:a=9+b, b++, c+9
D:a=9+b++=c+9
答案: a= (9+b, c=d+9)

16、 If the ASCII code of
letter A is decimal number 65 and s is a character type,
What is the value of s, after the statement s= ‘ A ‘ + ‘ 6 ‘-‘ 3 ‘ is executed().‍

A: ‘d’
B:68
C:The indeterminate value
D:’D’
答案: ‘D’

17、 In C language, which
operator need the operation’s data type must be integer(). ‍

A:/
B:+ +
C:*=
D:%
答案: %

18、 Given: char s= ‘ /72
‘; which is right as follows (). ‍

A:s contains a
character
B:s contains two
characters
C:s contains three
characters
D:The description is invalid,
the value of s is uncertain
答案: s contains a
character

19、 Given: int m=7; float
x=2.5, y=4.7; what is the value of the expression of x+m%3* (int) (x+y)%2/4 ().‍

A:2.500000
B:2.750000
C:3.500000
D:0.000000
答案: 2.500000

20、 Given float x; int m; the following can be implemented to retain the value in x two bits after the decimal point, and the third bit is the expression of the rounding operation is (). 设变量x为float类型,m为int类型,则以下能实现将x中的数值保留小数点后两位,第三位进行四舍五入运算的表达式是‍

       


上方为免费预览版答案,如需购买完整答案,请点击下方红字:


点击这里,购买完整版答案


为了方便下次阅读,建议在浏览器添加书签收藏本网页

添加书签方法:

1.电脑按键盘的Ctrl键+D键即可收藏本网页

2.手机浏览器可以添加书签收藏本网页

点击浏览器底部菜单-【添加书签】-收藏本网页
中级程序设计(孙丽娜 孙宪丽)(沈阳工程学院)中国大学MOOC答案100分最新完整版第1张

点击浏览器底部菜单-【书签/历史】-可查看本网页
中级程序设计(孙丽娜 孙宪丽)(沈阳工程学院)中国大学MOOC答案100分最新完整版第2张


获取更多慕课答案,欢迎在浏览器访问我们的网站:

http://mooc.mengmianren.com

中级程序设计(孙丽娜 孙宪丽)(沈阳工程学院)中国大学MOOC答案100分最新完整版第3张

中级程序设计(孙丽娜 孙宪丽)(沈阳工程学院)中国大学MOOC答案100分最新完整版第4张

注:请切换至英文输入法输入域名,如果没有成功进入网站,请输入完整域名:http://mooc.mengmianren.com/


我们的公众号

打开手机微信,扫一扫下方二维码,关注微信公众号:萌面人APP

本公众号可查看各种网课答案,还可免费查看大学教材答案

点击这里,可查看公众号功能介绍

中级程序设计(孙丽娜 孙宪丽)(沈阳工程学院)中国大学MOOC答案100分最新完整版第5张



APP下载


点击这里下载萌面人APP,使用更方便!



APP功能说明

1.可查看各种网课答案

点击【萌面人官网】,可查看知到智慧树,超星尔雅学习通,学堂在线等网课答案

中级程序设计(孙丽娜 孙宪丽)(沈阳工程学院)中国大学MOOC答案100分最新完整版第6张

点击【中国大学慕课答案】,可查看mooc慕课答案

中级程序设计(孙丽娜 孙宪丽)(沈阳工程学院)中国大学MOOC答案100分最新完整版第7张

2.可一键领取淘宝/天猫/京东/拼多多无门槛优惠券

如图所示,点击对应图标即可领取淘宝/天猫/京东/拼多多无门槛优惠券

中级程序设计(孙丽娜 孙宪丽)(沈阳工程学院)中国大学MOOC答案100分最新完整版第8张


 

受沁尘创簇醒诵撅锯娟具鞍枷