C++ while 迴圈與程式設計

C++ while 迴圈與程式設計

9th - 12th Grade

15 Qs

quiz-placeholder

Similar activities

韓愈其人其事

韓愈其人其事

10th - 12th Grade

16 Qs

107國中社會2下4-1_法律的基本概念

107國中社會2下4-1_法律的基本概念

7th - 9th Grade

20 Qs

中一 暑期功課 練習5-8 文言字詞小測

中一 暑期功課 練習5-8 文言字詞小測

9th Grade

16 Qs

Chinese tea

Chinese tea

7th - 12th Grade

12 Qs

《告别网络的汤姆》关联词练习

《告别网络的汤姆》关联词练习

1st - 12th Grade

10 Qs

G10第1课

G10第1课

10th Grade

20 Qs

6年级华文 单元11理解练习

6年级华文 单元11理解练习

1st - 10th Grade

17 Qs

107國中社會2下4-3_民法與生活

107國中社會2下4-3_民法與生活

7th - 9th Grade

20 Qs

C++ while 迴圈與程式設計

C++ while 迴圈與程式設計

Assessment

Quiz

Other

9th - 12th Grade

Hard

Created by

1131資訊科實習老師王婷誼 1131資訊科實習老師王婷誼

FREE Resource

AI

Enhance your content

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?