Font size
Worksheets演算表的基本概念
Total questions: 20
Worksheet time: 11mins
演算法的主要目的是什麼?
創建圖形
解決問題
存儲數據
設計網站
以下哪一項不是表示演算法的方法?
虛擬代碼
流程圖
電子表格
文字
流程圖代表什麼?
資料庫結構
資料儲存
解決方案的步驟和邏輯
使用者介面設計
哪一種結構按順序執行步驟?
條件結構
選擇結構
重複結構
順序結構
選擇結構的範例是什麼?
Do...while
While loop
If...then...else
For loop
在單選結構中,如果條件為假,會發生什麼?
發生錯誤
語句不執行
語句執行
程序停止
雙重選擇結構的特徵是什麼?
不檢查任何條件
根據條件有兩個可能的結果
同時檢查多個條件
僅檢查一個條件
多重選擇結構的作用是什麼?
僅檢查一個條件
按順序檢查多個條件
重複單一動作
結束程式
What is an example of a multiple selection structure?
多重選擇結構的範例是什麼?
If condition is true, execute statement
如果條件為真,則執行語句
If it rains, stay home; else, go out
如果下雨,請待在家裡;否則,出去
If the purchase amount exceeds 3,000, you can enjoy different discounts
如果購物金額滿3000以上可享不同折扣
If score is below 60, show fail
如果分數低於60,則顯示失敗。
What does a repetition structure do?
重複結構有什麼作用?
執行一次語句
Executes a statement once
重複動作直到滿足條件
Repeats actions until a condition is met
立即結束程序
Ends the program immediately
檢查條件而不執行
Checks conditions without executing
In the context of buying tickets, what does the repetition structure imply?
在買票的背景下,重複結構意味著什麼?
門票售完一次
Tickets are sold once
門票售完為止
Tickets are sold until none are left
門票隨機出售
Tickets are sold randomly
門票以價格出售
Tickets are sold based on price
下列哪一項是結構化程式設計的基本結構?
Which of the following is a basic structure in structured programming?
抽象結構
Abstract structure
結構複雜
Complex structure
順序結構
Sequential structure
隨機結構
Random structure
使用結構化程式設計的目的是什麼?
What is the purpose of using structured programming?
讓程式碼變得更複雜
To make code more complex
減少程式碼行數
To reduce the number of lines of code
消除對演算法的需要
To eliminate the need for algorithms
提高程式碼清晰度和組織性
To improve code clarity and organization
下列何者最能描述流程圖
Which of the following best describes a flowchart?
一種程式語言
A type of programming language
演算法的視覺化表示
A visual representation of an algorithm
一種編寫程式碼的方法
A way to write code
一種儲存資料的方法
A method for storing data
結構化程式設計包含哪三個基本結構
循序
選擇
重複
由上而下
演算法是由許多步驟所組成,這些步驟具有以下特性?
輸入/輸出
明確性
有限性
有效性
下列哪一個是決策判斷符號?
下列哪一個是迴圈符號?
下列哪一個是輸入/輸出符號?
下列哪一個是開始/結束符號?
