恢复自动保存:
?
Which statement about == and = in Python is correct?, == compares two values, = gives a value to a variable, = compares two values, == gives a value to a variable, Both compare values, Both assign values, Which line is an example of the equal operator?, a = 7, if a==b:, while a != 7:, a <= b, Which connector requires at least one condition to be true?, and, def, elif, or, Which expression checks that a is different from 7?, a = 7, a != 7, a == 7, a <= 7, Which connector requires both conditions to be true?, and, or, def, import, Rule: Honor List if average > 17 and maths > 18; Very good if average > 17 or maths > 18; Good in the other cases. A student has an average of 19 and maths of 15. What is the result?, Honor List, Good, Error, Very good, Rule: Honor List if average > 17 and maths > 18; Very good if average > 17 or maths > 18; Good in the other cases. A student has an average of 15 and maths of 10. What is the result?, Honor List, Very good, Good, Error, The condition is: temperature <= 20 and humidity <= 60. The temperature is 18 and the humidity is 70. What is the result?, True, because 18 <= 20, False, because the humidity 70 is not <= 60, True, because the humidity is high, False, because the temperature is 18, The condition is: temperature > 20 or humidity > 60. The temperature is 25 and the humidity is 40. What is the result?, False, because the humidity is not > 60, False, because both conditions must be true, An error is displayed, True, because the temperature is > 20, Which line defines a function named area with two parameters?, def area(a, b):, area(a, b), import area(a, b), area = (a, b), Which line calls a function named area with the values a and b?, def area(a, b):, area(a, b), import area, area == (a, b), Why is import turtle written at the beginning of a drawing program?, To define a function, To end the program, To make turtle commands available, To compare two values, A function draws a square or a triangle depending on a first value, and uses a second value for the size of the side. How many parameters does it have?, 1, 2, 3, 4, Which statement about functions with several parameters is correct?, Different principle, Cannot be called, Cannot use if, Same principle, To draw a triangle with the turtle, how many times is the forward move repeated, and by which angle does the turtle turn right each time?, 3 times, 120, 4 times, 90, 3 times, 90, 4 times, 120, The turtle program uses a while loop to repeat the forward and right commands., True, False, The symbol != is used to give a value to a variable., True, False, The parameter length_side defines the size of the shape to draw., True, False, Bad weather is displayed only if both temperature > 20 and humidity > 60 are true., True, False, The operators >, <, <=, >= are already known from Small Basic., True, False
0%
Python
共享
共享
由
Monotremes
编辑内容
保存
喜欢
打印
嵌入
更多
需要登录
视觉风格
显示所有
字体
活动设置
排行榜
作业
需要订阅
活动设置
排行榜
此排行榜当前是私人享有。单击
,共享
使其公开。
资源所有者已禁用此排行榜。
此排行榜被禁用,因为您的选择与资源所有者不同。
还原选项
显示更多
显示更少
随堂测验
是一个开放式模板。它不会为排行榜生成分数。
作业
您尚未与学生分享任何活动。
要开始收集结果,请转到任何活动页面,然后选择
Set assignment(设置分配
)。
确认您的设置并与学生共享生成的链接。
设置作业
AI增强版:本活动包含AI生成的内容。
了解更多信息。
切换模板
显示所有
打开成绩
复制链接
QR 代码
删除