
C++ while 迴圈與程式設計
Quiz
•
Other
•
9th - 12th Grade
•
Hard
1131資訊科實習老師王婷誼 1131資訊科實習老師王婷誼
FREE Resource
Enhance your content
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
C++ 的 while 迴圈是什麼?
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
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple

Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
10 questions
二年级道德
Quiz
•
1st - 10th Grade
20 questions
小武的方位測驗
Quiz
•
7th - 9th Grade
12 questions
生活科技9上康軒1-1
Quiz
•
9th Grade
15 questions
急救箱
Quiz
•
KG - University
15 questions
107國中社會3下2-2_從新帝國主義到第一次世界大戰
Quiz
•
7th - 9th Grade
10 questions
四常_現代都市病 1
Quiz
•
1st - 12th Grade
10 questions
107國中自然3下_2-3
Quiz
•
7th - 9th Grade
20 questions
107國中社會2下4-4_刑法與行政法規
Quiz
•
7th - 9th Grade
Popular Resources on Wayground
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns
Quiz
•
3rd Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
Discover more resources for Other
11 questions
NEASC Extended Advisory
Lesson
•
9th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
Brand Labels
Quiz
•
5th - 12th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
17 questions
Afro Latinos: Una Historia Breve Examen
Quiz
•
9th - 12th Grade
13 questions
Halloween Trivia
Quiz
•
9th Grade
17 questions
Hispanic Heritage Month Trivia
Quiz
•
9th - 12th Grade
12 questions
Graphing Inequalities on a Number Line
Quiz
•
9th Grade