C++程序设计(面向对象进阶)(北京邮电大学)中国大学mooc慕课答案2024版100分完整版

庞哎杀炼骡戈痢显够肮稻南鲍

对应课程:点击查看
起止时间:2021-02-19到2021-06-19
更新状态:每5天更新一次

第1单元:C++概览 第1单元测验

1、 第一个被称为“Modern C++”的标准是?

A:C++98
B:C++03
C:C++11
D:C++14
E:C++17
F:C++20
答案: C++11

2、 集成开发环境中不一定包括

A:编译器
B:链接器
C:图形界面设计工具
D:调试器
答案: 图形界面设计工具

3、 集成开发环境的英文缩写是

A:IEE
B:IDD
C:DEV
D:IDE
答案: IDE

4、 C++ 11支持的编程范式包括

A:脚本编程范式
B:结构化编程范式
C:函数式编程范式
D:OO编程范式
E:泛型编程范式
F:解释型编程范式
答案: 结构化编程范式;
函数式编程范式;
OO编程范式;
泛型编程范式

5、 如何学好C++?

A:多看书,少编程
B:多编程
C:多调试解决程序BUG
D:多装几个C++开发环境
答案: 多编程;
多调试解决程序BUG

6、 C++集成开发环境包括下面所列的哪些部分?

A:编辑器
B:编译器
C:链接器
D:开发器
E:运行器
F:测试器
答案: 编辑器;
编译器;
链接器

7、 集成开发环境中一般包含

A:编辑器
B:编译器
C:链接器
D:测试器
E:调试器
答案: 编辑器;
编译器;
链接器;
调试器

8、 本课程讨论区不建议问下列哪些问题?

A:cout.flush()函数的参数是什么?
B:如何安装Visual Studio 2019?
C:谁能帮我编一段排序算法的代码?
D:我的main()函数如下int main() { char x { ‘\0’ }; std::cin >> x; std::cout cin.get(); return 0;}我编译运行,并且输入了字符a之后,屏幕没有显示输出结果。我尝试了几次,都是同样的情况。我的开发环境是Windows 10上面的Visual Studio 2017。
答案: cout.flush()函数的参数是什么?;
如何安装Visual Studio 2019?;
谁能帮我编一段排序算法的代码?

9、 我们在C++学习过程中,选择开发工具应尽量选择简单的、问世时间比较久的工具。因为这样的工具易用且稳定。

A:正确
B:错误
答案: 错误
分析:应选新工具。新工具会提供对程序员更加友好的功能帮助

10、 C语言支持面向对象编程范式

A:正确
B:错误
答案: 错误

11、 编译器的英文是____
答案: compiler

第1单元:C++概览 第1单元课前测试:C语言水平评估 (英文题目;选做)

1、 The keyword “unsigned” can modify the keyword [ ]

A:signed
B:long double
C:long
D:float
答案: long

2、 In the following strings, the correct C identifier is [ ]

A:foo-1
B:2d
C:break
D:_256
答案: _256

3、 The string “r\tu\r”Okay?”” will occupy [ ] bytes memory.

A:12
B:13
C:15
D:18
答案: 13

4、 After executing the following statements: int i=0; for( ;++i<=4; ) {}; the value of variable i is[ ]

A:3
B:4
C:5
D:6
答案: 5

5、 The output of the statements: int a=3, b=4; printf(“%d”, (a>=b?a:a 4

6、 The output of the following statements is [ ] ( ASCII code of ‘a’ is 97)int a = 98;char b = ‘a’;printf(“%c%d”, (char) a, (int)b);

A:b97
B:98a
C:a98
D:97b
答案: b97

7、 In C programming language, the result of statement 5 ^ 4 is [ ]

A:1
B:2
C:3
D:4
答案: 1

8、 “x is divisible by 3 but can’t be divisible by 5” can be written as [ ]

A:x%3 || x%5
B: x%3==0 || x%5 !=0
C:!(x%3) && !(x%5 ==0)
D: (x%3) && !(x%5 != 0)
答案: !(x%3) && !(x%5 ==0)

9、 For the statement: int a[10],b; the correct description is[ ]

A:a can only be lvalue, but b can be rvalue
B:a can only be rvalue, but b can be lvalue
C:both a and b can only be lvalue
D:both a and b can only be rvalue
答案: a can only be rvalue, but b can be lvalue

10、 The correct description about the following program is[ ]#include
int pPointer;
int nNumber;
void f() {
nNumber = 25;
pPointer = &nNumber;
}
int main() {
f();
printf(“Value of
pPointer: %d”, *pPointer);

       

如需购买完整答案,请点击下方红字:

点击这里,购买完整答案

获取更多中国大学mooc慕课答案,请点击这里,进入mooc.mengmianren.com

莽和鸥亨棺拱蹬矫陪疗汲府讲

搜索
登录
订单
帮助