What does print do in most programming languages like Python?, Sends data to a file, Reads a value from the user, Displays text, Creates a new variable, Which of the following is a valid variable name in Python?, 1stValue, name-1, name_1, full name, What is the value of x after this code runs? x = 5 , x = x + 3, 15, 3, 8, 5, Which operator is used to compare two values, rather than assign one?, =, ==, <, >, What will this code output? for i in range(3): print("Hello"), Prints “Hello” forever, Prints “Hello” three times, Prints “Hello” twice, Prints “Hello” once, What is the main purpose of an if statement in a program?, As Reusable functions, To repeat a task a fixed number of times, To execute code only when certain conditions are met, To display output to the user, What will this code print? x = 10, if x > 5: print("A"); else: print("B");, A, B, Nothing, Crashout, What is the output of this code? x = 2, y = 3, print(x ** y), 5, 6, 8, 9, What is the output of this code? x = 10, y = 5, print( x // y + x % y ), 2, 4, 10, 11, Which statement correctly defines a function that returns the square of a number?, def square(x): print ( x * x ), def square(x): return x * x, def square(): return x * x, square = lambda: x * x
0%
Programming 101
共用
共用
由
Sy41
JHS
ICT
編輯內容
存檔
喜歡
列印
嵌入
更多
需要登錄
視覺風格
顯示所有
字體
活動設定
排行榜
作業
需要訂閱
活動設定
排行榜
此排行榜當前是私有的。單擊
共用
使其公開。
資源擁有者已禁用此排行榜。
此排行榜被禁用,因為您的選項與資源擁有者不同。
還原選項
顯示更多
顯示更少
測驗
是一個開放式範本。它不會為排行榜生成分數。
作業
您尚未與學生分享任何活動
要開始收集結果,請轉到任何活動頁面,然後選擇
Set assignment(設置分配
)。
確認您的設置並與學生共用生成的連結。
課業分配
更像這樣
BASIC questions!
由
Withateacher
隨機輪盤
52
Quiz: Variables
由
Janimorton
測驗
19
BASIC 1 - REVIEW
由
Julianeezoe1
開箱遊戲
5
Python Quiz - Concepts revisited
由
Shinuarora28
測驗
6
Programming Basics Revision
由
Qwruenshuwa
迷宮追逐
5
Об'єкти мови програмування Python, 8 клас
由
Annatselujko
拼字遊戲
42
Python. Цикл For (Класичні задачі)
由
Bobkovachernenko
匹配遊戲
14
Повторення Python
由
U36144624
查找匹配項
10
切換範本
顯示所有
打開結果
複製連結
QR 代碼
刪除
恢復自動保存:
?