恢復自動保存:
?
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 代碼
刪除