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!
Chia sẻ
Chia sẻ
Chia sẻ
bởi
Leonorperez2929
Chỉnh sửa nội dung
In
Nhúng
Nhiều hơn
Tập
Bảng xếp hạng
Hiển thị thêm
Ẩn bớt
Bảng xếp hạng này hiện đang ở chế độ riêng tư. Nhấp
Chia sẻ
để công khai bảng xếp hạng này.
Chủ sở hữu tài nguyên đã vô hiệu hóa bảng xếp hạng này.
Bảng xếp hạng này bị vô hiệu hóa vì các lựa chọn của bạn khác với của chủ sở hữu tài nguyên.
Đưa các lựa chọn trở về trạng thái ban đầu
Chương trình đố vui
là một mẫu kết thúc mở. Mẫu này không tạo điểm số cho bảng xếp hạng.
Yêu cầu đăng nhập
Phong cách trực quan
Phông chữ
Yêu cầu đăng ký
Tùy chọn
Chuyển đổi mẫu
Hiển thị tất cả
Nhiều định dạng khác sẽ xuất hiện khi bạn phát hoạt động.
Mở kết quả
Sao chép liên kết
Mã QR
Xóa
Bạn có muốn khôi phục tự động lưu:
không?