程序设计基础(东北大学)1206690865 中国大学MOOC答案100分完整版

靛壳斯小袱沃蛾衔长芜礁贤眠

Chapter 5. Functions

程序设计基本概念复习测验

1、单选题:
​Which of the following must every C program have?‏

A: main
B: #include
C: /*
D: <stdio.h>
答案:  main

2、单选题:
‌Every statement in C must end with a‍

A: period (.)
B: semicolon (;)
C: colon (:)
D: backslash (/)
答案:  semicolon (;)

3、单选题:
‍Which of the following is not a valid escape sequence?​

A: n
B: \
C: ~
D: ”
答案:  ~

4、单选题:
‍Which statement about comments is false?‏

A: Comments begin and end with /* and */, respectively.
B: Programmers insert comments to document programs and improve program readability.
C: Comments do not cause any machine language object code to be generated.
D: Lengthy comments can cause poor execution-time performance.
答案:  Lengthy comments can cause poor execution-time performance.

5、单选题:
‍Lines beginning with a # are processed​

A: at execution time.
B: at compile time.
C: at preprocessor time.
D: at postprocessor time.
答案:  at preprocessor time.

6、单选题:
‍Which of the following is not a valid integer value?‌

A: -3
B: 0
C: 2134859
D: 1.1
答案:  1.1

7、单选题:
‍Which of the following is an invalid identifier (variable name)?​

A: _Test
B: TEST
C: 5test
D: test1
答案:  5test

8、单选题:
‌Which statement is false.‍

A: Variables may be defined anywhere in the body of main.
B: All variables must be defined before they are used.
C: All variable definitions must include the name and data type of each variable.
D: Several variables of the same data type may be defined in one definition.
答案:  Variables may be defined anywhere in the body of main.

9、单选题:
‌C’s if statement executes the statement inside its body if a specified __________ is __________.‎

A: condition, true
B: condition, false
C: equality operator, true
D: relational operator, true
答案:  condition, true

10、单选题:
​Which of the following is not a keyword?‎

A: int
B: return
C: if
D: main
答案:  main

11、单选题:
​Which of the following is an iteration statement?​

A: if
B: if…else
C: do…while
D: switch
答案:  do…while

12、单选题:
‌The __________ selection statement performs an action if a condition is true and skips that action if the condition is false.‎

A: if
B: when
C: if…else
D: switch
答案:  if

13、单选题:
‌The __________ selection statement performs an action if a condition is true and performs a different action if the condition is false.‌

A: if
B: when
C: if…else
D: switch
答案:  if…else

14、单选题:
‏The __________ selection statement performs one of many different actions, depending on the value of an expression.‌

A: if
B: when
C: if…else
D: switch
答案:  switch

15、单选题:
​The conditional operator (?:) ________.​

A: is the only ternary operator in C
B: is a unary operator
C: associates from left to right
D: accepts two operands
答案:  is the only ternary operator in C

16、单选题:
​Having a loop within a loop is known as​

A: recursion
B: doubling up
C: nesting
D: a redundancy
答案:  nesting

17、单选题:
‎Which statement automatically handles all the details of counter-controlled iteration.‍

A: for
B: while
C: do …while
D: continue
答案:  for

18、单选题:
​If a do…while statement is used,‏

A: an infinite loop will not take place
B: the counter must be preincremented if it’s also the condition
C: the body of the loop will execute at least once
D: an off-by-one error wil



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



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


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

添加书签方法:

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

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

点击浏览器底部菜单-【添加书签】-收藏本网页

程序设计基础(东北大学)1206690865 中国大学MOOC答案100分完整版第1张

点击浏览器底部菜单-【书签/历史】-可查看本网页

程序设计基础(东北大学)1206690865 中国大学MOOC答案100分完整版第2张


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



http://mooc.mengmianren.com

程序设计基础(东北大学)1206690865 中国大学MOOC答案100分完整版第3张

程序设计基础(东北大学)1206690865 中国大学MOOC答案100分完整版第4张

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


我们的公众号

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

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

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

程序设计基础(东北大学)1206690865 中国大学MOOC答案100分完整版第5张




APP下载



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




APP功能说明

1.可查看各种网课答案

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

程序设计基础(东北大学)1206690865 中国大学MOOC答案100分完整版第6张

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

程序设计基础(东北大学)1206690865 中国大学MOOC答案100分完整版第7张

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

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

程序设计基础(东北大学)1206690865 中国大学MOOC答案100分完整版第8张


炯女鲤裴乓荡琼浇欺豪涸千秆