聚合答案库

免费查题,不限次数,
扫描二维码立即使用。

了解更多
免费中国大学MOOC 高级语言程序设计(Python)CAP(汉江师范学院)1450318318 最新慕课答案-聚合答案库
作者:20782912023-03-04 00:00 点赞 收藏 热度:9

测验1:下列哪些能力是计算机擅长而人类不擅长的?

1、多选题:
下列哪些能力是计算机擅长而人类不擅长的?
选项:
A: 推理
B: 计算
C: 记忆
D: 抽象
答案: 【 计算;
记忆

测验2

1、多选题:
‌和自然语言相比,编程语言有哪些特点?‏
选项:
A: 更容易为计算机“理解”
B: 语义明确、无歧义性
C: 表达能力更强
D: 更易学
答案: 【 更容易为计算机“理解”;
语义明确、无歧义性

2、多选题:
和高级语言相比,汇编语言有哪些优缺点?
选项:
A: 占用内存少
B: 执行速度快
C: 编程难度低
D: 可移植性好
答案: 【 占用内存少;
执行速度快

测验3:下列代码运行时不会产生错误的是?

1、单选题:
​下列代码运行时不会产生错误的是?‌
选项:
A: print ‘Hi, I’m fine’
B: print "Hi, I’m fine"
C: print ‘Hi, I’m fine"
D: print "Hi, I’m fine’
答案: 【 print "Hi, I’m fine"

第一周测验

1、单选题:
0
0
1
3
23
Stanford
1
1
25
14.0‎‌Normal
0

false
false
false

EN-US
JA
X-NONE‎‌/* Style Definitions */
table.MsoNormalTable
{mso-style-name:”Table Normal”;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:””;
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;}‎计算机为什么采用二进制,而非十进制作为数制的基础?‌
选项:
A: 因为二进制数更容易被硬件存储和计算
B: 因为二进制比十进制表示能力更强
C: 因为二进制比十进制计算速度快
D: 因为二进制数精度更高
答案: 【 因为二进制数更容易被硬件存储和计算

2、单选题:
0
0
1
3
21
Stanford
1
1
23
14.0‌‏Normal
0

false
false
false

EN-US
JA
X-NONE‌‏/* Style Definitions */
table.MsoNormalTable
{mso-style-name:”Table Normal”;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:””;
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;}‌Python语言为什么被称为高级程序设计语言?‏
选项:
A: 因为它比低级语言更抽象
B: 因为它比低级语言功能强大
C: 因为它比低级语言更复杂
D: 因为它是解释型语言
E: 因为它是编译型语言
答案: 【 因为它比低级语言更抽象

3、单选题:
0
0
1
3
22
Stanford
1
1
24
14.0‌‍Normal
0

false
false
false

EN-US
JA
X-NONE‌‍/* Style Definitions */
table.MsoNormalTable
{mso-style-name:”Table Normal”;
mso-tstyle-rowband-size:0;
mso-tstyle-colband-size:0;
mso-style-noshow:yes;
mso-style-priority:99;
mso-style-parent:””;
mso-padding-alt:0in 5.4pt 0in 5.4pt;
mso-para-margin:0in;
mso-para-margin-bottom:.0001pt;
mso-pagination:widow-orphan;
font-size:12.0pt;
font-family:Cambria;
mso-ascii-font-family:Cambria;
mso-ascii-theme-font:minor-latin;
mso-hansi-font-family:Cambria;
mso-hansi-theme-font:minor-latin;}‌关于Python语言的执行过程,描述正确的是?‍
选项:
A: 由解释器一条语句一条语句地执行
B: 由编译器将源程序转化为机器语言,然后执行
C: 执行过的语句将不会再被执行
D: 可以同时执行多条语句
答案: 【 由解释器一条语句一条语句地执行

4、单选题:
‌下列Python程序,没有错误的是?‎
选项:
A: print ‘Hello, I’m Tom.’
B: Print ‘Hello, World!’
C: print ‘Hello, this’s Tom.’
D: print ‘Hello, ‘ print ‘World!’
答案: 【 print ‘Hello, I’m Tom.’

5、单选题:
‌在Spyder IDE中编写Python程序,输出“Hello World”,要求将这两个单词分两行输出,以下哪个程序不正确?‌
选项:
A: print ‘Hello
World’
B: print "HellonWorld"
C: print ‘Hello’ 
print ‘World’
D: print ‘HellonWorld’
答案: 【 print ‘Hello
World’

第二周数据类型、运算符与表达式、变量赋值与简单IO操作

测验1

1、单选题:
‏下列程序的执行结果为?x = 10
print type(x)
x = 10.0
print type(x)
x = ‘10.0’
print type(x)‌
选项:
A: <type ‘int’>
<type ‘float’>
<type ‘str’>
B: <type ‘int’>
<type ‘int’>
<type ‘int’>
C: <type ‘str’>
<type ‘str’>
<type ‘str’>
D: 程序出错
答案: 【 <type ‘int’>
<type ‘float’>
<type ‘str’>

2、单选题:
‌若程序只有以下两行代码,则程序的执行结果为? x = y + 1
print x‌
选项:
A: 1
B: 输出一个随机值
C: 2
D: 程序出错
答案: 【 程序出错

测验2

1、单选题:
‏执行下列语句,若输入为"HellonWorld",则输出为?input = raw_input()
print input‏
选项:
A: Hello World
B: Hello
C: HellonWorld
D: World
答案: 【 HellonWorld

2、单选题:
​执行下列语句,若输入为"123",则输出为?‏​input = raw_input()
print input * 3‏
选项:
A: 369
B: 123123123
C: 1233
D: 程序出错
答案: 【 123123123

测验3

1、判断题:
‏判断闰年的方式是否可以写成:‏‏y % 400 == 0 or y % 4 == 0 and y % 100 != 0‏
选项:
A: 正确
B: 错误
答案: 【 正确

2、判断题:
‍判断闰年的方式是否可以写成:y % 4 == 0 and y % 100 != 0 or y % 400 == 0‎
选项:
A: 正确
B: 错误
答案: 【 正确

第二周测验

1、单选题:
‎执行下列语句,输出的结果是?x = 7.0
y = 5
print x % y‍
选项:
A: 2.0
B: 2
C: 程序出错
D: 1
E: 1.0
答案: 【 2.0

2、单选题:
‌能实现下面功能的程序是?接收用户输入的一个整数。如果输入的是偶数,则输出“True”,否则输出“False”。‌
选项:
A: print not bool(int(raw_input()) % 2)
B: print int(raw_input()) % 2 == 0
C: print int(raw_input()) % 2 != 0
D: print bool(int(raw_input()) % 2)
E: print not bool(raw_input() % 2)
F: print int(raw_input()) % 2 == 1
答案: 【 print not bool(int(raw_input()) % 2);
print int(raw_input()) % 2 == 0

3、填空题:

‏对于一元二次方程

欢迎您对本文章进行评论
文明留言,请勿恶意评论,包括但不限于纯数字、敏感内容、非法昵称等
暂无讨论,说说你的看法吧
学习通答案

学习通答案

学习通答案
职教云答案

职教云答案

Q&A

备案号:冀ICP备20010840号 2020-2099辉辉网络科技 All Rights Reserved