本答案对应课程为:点我自动跳转查看
本课程起止时间为:2020-02-24到2020-12-31
本篇答案更新状态:已完结

【作业】学习本课前你必须知道的那些事儿 作业1 test

1、 问题:完成相应的上机题目
评分规则: 【 代码全部正确
运行结果截图

第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 ().‍
选项:

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

   

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注