C++ 的 while 迴圈是什麼?

C++ while 迴圈與程式設計

Quiz
•
Other
•
9th - 12th Grade
•
Hard
1131資訊科實習老師王婷誼 1131資訊科實習老師王婷誼
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
C++ 的 while 迴圈只能執行一次。
C++ 的 while 迴圈是用於定義變數的結構。
C++ 的 while 迴圈不需要條件判斷。
C++ 的 while 迴圈是一種用於重複執行程式碼的控制結構,直到指定的條件為假。
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
while 迴圈的基本語法是什麼?
while (條件) { // 執行的程式碼 }
while (條件) : 執行的程式碼
while {條件} (程式碼)
while (條件) // 執行的程式碼
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在 while 迴圈中,{} 是必須的嗎?
只有在特定情況下必須
必須
不必須
在所有情況下必須
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
while 迴圈通常用於什麼情況?
用於不需要條件的情況
用於隨機執行的情況
用於需要重複執行的情況,直到條件不再滿足。
用於一次性執行的情況
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在給定的範例中,使用者輸入 -1 代表什麼?
表示暫停或等待
表示開始或有效的選擇
表示結束或無效的選擇
表示重啟程序
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在範例程式中,如何計算平均分數?
將所有分數相加後除以分數的數量。
將最高分數和最低分數相加後除以二。
隨機選擇一個分數作為平均分數。
將所有分數相乘後除以分數的數量。
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
while 迴圈與 for 迴圈的主要區別是什麼?
while 迴圈只能用於已知次數的情況
while 迴圈用於不確定次數的情況,for 迴圈用於已知次數的情況。
while 迴圈和 for 迴圈是相同的
for 迴圈不允許使用條件判斷
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
107國中自然1下_5-1

Quiz
•
7th - 9th Grade
10 questions
107國中自然1下_1-1

Quiz
•
7th - 9th Grade
10 questions
3-2結核

Quiz
•
11th Grade
20 questions
B5大明湖

Quiz
•
9th - 12th Grade
17 questions
2024外籍漁工知識挑戰賽(作答請輸入班級座號)

Quiz
•
9th - 12th Grade
10 questions
107國中自然3下_1-3

Quiz
•
7th - 9th Grade
11 questions
需求與供給

Quiz
•
9th - 12th Grade
10 questions
臺北市學生學習歷程檔案知識王

Quiz
•
10th - 12th Grade
Popular Resources on Quizizz
15 questions
Multiplication Facts

Quiz
•
4th Grade
25 questions
SS Combined Advisory Quiz

Quiz
•
6th - 8th Grade
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
15 questions
June Review Quiz

Quiz
•
Professional Development
20 questions
Congruent and Similar Triangles

Quiz
•
8th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
Discover more resources for Other
40 questions
Week 4 Student In Class Practice Set

Quiz
•
9th - 12th Grade
40 questions
SOL: ILE DNA Tech, Gen, Evol 2025

Quiz
•
9th - 12th Grade
20 questions
NC Universities (R2H)

Quiz
•
9th - 12th Grade
25 questions
Triangle Inequalities

Quiz
•
10th - 12th Grade
10 questions
Right Triangles: Pythagorean Theorem and Trig

Quiz
•
11th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade
24 questions
LSO - Virus, Bacteria, Classification - sol review 2025

Quiz
•
9th Grade
65 questions
MegaQuiz v2 2025

Quiz
•
9th - 12th Grade