1) What is the outcome? print(math.ceil(1.4)) a) 3 b) 2 c) 1 d) 6 2) What is the outcome? print(math.ceil(5.3)) a) 6 b) 3 c) 2 d) 1 3) What is the outcome? print(math.ceil(-5.3)) a) -5 b) 6 c) 2 d) 3 4) What is the outcome? print(math.ceil(22.6)) a) -5 b) 6 c) -2 d) 23 5) What is the outcome? print(math.fabs(-66.43)) a) 66.43 b) 09.88 c) -2.00 d) 23.87 6) What is the outcome? print(math.fabs(-7)) a) -66.43 b) 09.88 c) 7.0 d) 23.87 7) What is the outcome? print(math.floor(0.6)) a) 1 b) 0 c) 1.0 d) 0.2 8) What is the outcome? print(math.floor(1.4)) a) 1 b) 0 c) 1.0 d) 2.0 9) What is the outcome? print(math.floor(5.3)) a) 6 b) 5 c) 5.0 d) 6.0 10) What is the outcome? print(math.floor(-5.3)) a) -6 b) 5 c) 5.0 d) 6.0 11) What is the outcome? print(math.floor(22.6)) a) 22.0 b) 23 c) 23.0 d) 22 12) What is the outcome? print(math.fmod(20, 4)) a) 0.0 b) 0.6 c) 0.5 d) 0.1 13) What is the outcome? print(math.fmod(20, 3)) a) 0.0 b) 2.0 c) 3.0 d) 0.1 14) What is the outcome? print(math.fmod(15, 6)) a) 0.0 b) 2.0 c) 3.0 d) 0.1 15) What is the outcome? print(math.fmod(-10, 3)) a) -1.0 b) -2.0 c) 1.5 d) 1.2 16) Which is the correctly displayed format for printing the date? a) year, day, month b) day, month, year c) month, day, year d) year, month,day 17) What is the correctly format to output using the .now() property? a) year, month, day, hour, minute, second, and microsecond. b) day, month, year, minute, second, and microsecond. c) month, day, year, minute, hour, and microsecond d) hour, minute, microsecond, day, year, and month 18) Choose the option that outputs a random number between 3 and 8. a) print(random.randrange(2, 9)) b) print(random.randrange(3, 10)) c) print(random.randrange(3, 9)) d) print(random.randrange(0, 9)*2) 19) Choose the option that outputs a random number between 3 and 9. a) print(random.randint(2, 9)) b) print(random.randint(3, 10)) c) print(random.randint(3, 9)) d) print(random.randint(0, 9)*2) 20) Choose the option that outputs a random number between 0 and 10. a) print(random.randrange(0, 11)) b) print(random.randrange(0, 12)) c) print(random.randrange(0,-14)) d) print(random.randrange(0, 11.5)) 21) Choose the option that outputs a random number between 0 and 11. a) print(random.randint(0, 11)) b) print(random.randint(0, 12)) c) print(random.randint(0,-14)) d) print(random.randint(0, 11.5)) 22) Choose the option that outputs a random number between 15 and 35. a) print(random.randrange(0, 37)) b) print(random.randrange(15, 36)) c) print(random.randrange(15,38)) d) print(random.randrange(15,35)) 23) Choose the option that outputs a random number between 15 and 36. a) print(random.randint(0, 37)) b) print(random.randint(15, 36)) c) print(random.randint(15,38)) d) print(random.randint(15,35)) 24) Choose the option that outputs a random number between 54 and 56. a) print(random.randrange(54, 57)) b) print(random.randrange(54, 56)) c) print(random.randrange(54, 58)) d) print(random.randrange(53, 55)) 25) Choose the option that outputs a random number between 54 and 57. a) print(random.randint(54, 57)) b) print(random.randint(54, 56)) c) print(random.randint(54, 58)) d) print(random.randint(53, 55))
0%
Python Game!
共用
共用
共用
由
Leonorperez2929
編輯內容
列印
嵌入
更多
作業
排行榜
顯示更多
顯示更少
此排行榜當前是私有的。單擊
共用
使其公開。
資源擁有者已禁用此排行榜。
此排行榜被禁用,因為您的選項與資源擁有者不同。
還原選項
問答遊戲
是一個開放式範本。它不會為排行榜生成分數。
需要登錄
視覺風格
字體
需要訂閱
選項
切換範本
顯示所有
播放活動時將顯示更多格式。
打開結果
複製連結
QR 代碼
刪除
恢復自動保存:
?