What is a variable in Python?, A reserved word, A constant value, A named storage location for data, A mathematical operation, Which of the following is a valid Python variable name?, my_variable, 123variable, $variable, variable-1, What is the result of the expression `5 / 2` in Python?, 2.25, 2.0, 2, 2.5, What is the result of the expression `5 % 2` in Python?, 1, 2, 5, 2.5, What is the purpose of the `input()` function in Python?, Convert data, Display output, Declare variables, Take user input, Which data type is used to store a sequence of characters in Python?, String, Integer, Boolean, Float, What is the primary purpose of the `if` statement in Python?, Define a function, Conditional execution, Create a loop, Print text, What is the result of the expression `5 > 3`?, Error, False, 8, True, Which code snippet will print "Even" if `x` contains an even number?, if x == even: print("Even"), if x % 2 == 0: print("Even"), if x % 2: print("Even"), if x is even: print("Even"), What is the primary purpose of the `for` loop in Python?, Print text, Create a condition, Define a function, Iterate items, In Python, what does the `range()` function return?, Float, String, Sequence of integers, Random number, What is the result of the following code? for i in range(3): print(i), 3, 0, 1, 2, What will be the output of the following code? fruits = ["apple", "banana", "cherry"] for fruit in fruits: print(fruit), "apple" "banana" "cherry", apple banana cherry, apple, banana, cherry, ['apple', 'banana', 'cherry'], What will be the output of the following code? for i in range(5): if i == 2: continue print(i), 0 1 2 3, 0 1 2 3 4, 0 1 3 4, 0 3 4, Python is a high-level programming language., False, True, The `print()` function is used to display output in Python., True, False, The `input()` function is used to get user input in Python., False, True, Python is an object-oriented programming language., False, True, The `len()` function is used to get the length of a string or a list in Python., True, False, The `if` statement is used for conditional execution in Python., False, True, The `range()` function generates a sequence of numbers in Python., False, True
0%
Python Basics Assessment
共享
共享
由
Alaayhamdan
3 ابتدائي
حاسب
编辑内容
保存
喜欢
打印
嵌入
更多
需要登录
视觉风格
显示所有
字体
活动设置
排行榜
作业
需要订阅
活动设置
排行榜
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
显示更多
显示更少
随堂测验
是一个开放式模板。它不会为排行榜生成分数。
作业
您尚未与学生分享任何活动。
要开始收集结果,请转到任何活动页面,然后选择
Set assignment(设置分配
)。
确认您的设置并与学生共享生成的链接。
设置作业
AI增强版:本活动包含AI生成的内容。
了解更多信息。
切换模板
显示所有
打开成绩
复制链接
QR 代码
删除
恢复自动保存:
?