
Python基礎課程 - 第4課 Python 自動化程式(二)
Quiz
•
Computers
•
9th Grade
•
Practice Problem
•
Hard
Cheung 張祺豐老師
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
1. 根據 for index in range(0, 4): 指令,在執行最後一次迭代時,index 的值是多少?
2.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
2. 根據 for index in range(1, 9, 4): 指令,在執行第二次迭代時,index 的值是多少?
3.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
3. 下如果變數 n 的初始值為 2.3,以下那個指令能把輸出內容格式化為整數?
4.
MULTIPLE CHOICE QUESTION
30 sec • 5 pts
4. 根據下圖程式,如果變數 n 的輸入值為 3,以下哪項是執行結果?
5.
MATCH QUESTION
1 min • 1 pt
把以下 Python 的 for 循環指令中不同部分的意思配對起來。
for var in range(1, 8, 2):
print(var)
變數的起始值
var
重複執行的指令
print(var)
變數名稱
1
變數的終止值
8
變數的間隔值
2
6.
MATCH QUESTION
1 min • 1 pt
執行以下的 Python 程式,把 for 循環中不同迭代的輸出配對起來。
start = 12
stop = start + 24
step = 4
for n in range(start, stop, step):
print(n)
32
第二次迭代時
16
第一次迭代時
12
最後一次迭代時
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在 Python 中,for 循環可用於無限次地重複執行指令。
對
錯
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
這一個 Python 程式以 while 循環寫成。
i = 0
while i < 10:
print(i)
i = i + 1
for i in range(0, 10):
print(i)
for i in range(0, 11):
print(i)
for i in range(1, 10):
print(i)
for i in range(1, 11):
print(i)
9.
FILL IN THE BLANK QUESTION
1 min • 1 pt
執行以下的 Python 程式,電腦屏幕會顯示多少次「Hello」?
for index in range(0, 7, 2):
print("Hello")
Similar Resources on Wayground
12 questions
Arrays Intro
Quiz
•
9th - 12th Grade
14 questions
year 8 lesson 2 quiz - python
Quiz
•
8th - 10th Grade
10 questions
Python массив
Quiz
•
9th - 12th Grade
10 questions
Python - kl. 8
Quiz
•
7th - 12th Grade
11 questions
python revision
Quiz
•
9th Grade
13 questions
Python: процедуры и функции
Quiz
•
8th - 11th Grade
12 questions
Python Programming - Iteration
Quiz
•
9th Grade
10 questions
MOAC Excel 2016 Lesson 01
Quiz
•
8th - 12th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
15 questions
4:3 Model Multiplication of Decimals by Whole Numbers
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
The Best Christmas Pageant Ever Chapters 1 & 2
Quiz
•
4th Grade
12 questions
Unit 4 Review Day
Quiz
•
3rd Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
