
Week2 上周知识点回顾
Authored by Nila Zhang
Information Technology (IT)
University
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python解释器的作用是什么?
将Python代码编译成机器语言
直接执行语句并立即显示结果
创建图形用户界面
管理数据库
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下哪项是Python中的有效标识符?
variable_name
variable-name
1variable
for
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python 中的 'bool' 类型表示什么类型的数据?
整数
浮点数
逻辑值(T/F)
字符串
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在Python中创建注释的正确方式是什么?
// This is a comment
# This is a comment
/* This is a comment */
<-- This is a comment -->
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在Python中,表达式 (3 > 5 or 5 > 3) 的结果是多少?
Error
None
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Python中的'in'运算符有什么作用?
检查两个变量是否相同
检查一个值是否存在于数据集合中
将一个值赋给一个变量
比较两个值
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
以下关于Python变量的说法哪一项是正确的?
变量必须声明类型
变量名可以以数字开头
变量名是区分大小写的
变量不能更改其值
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?