Font size
WorksheetsAlgorithm Design-Ch2-Y8-1
Total questions: 31
Worksheet time: 22mins
Which of the following is not a stage of the program development life cycle?
Analysis
Design
Debugging
Coding
What is the process of selecting important information and ignoring irrelevant details in a problem called?
Decomposition
Abstraction
Validation
Verification
Pseudocode is written in
Python only
A specific programming language
Standard English
Machine language
Which type of validation check ensures input data falls within a specific range?
Length check
Type check
Range check
Format check
What is the purpose of double entry in data processing?
Data validation
Data verification
Data storage
Data input
Which error will cause a program to fail to run at all?
Logic error
Runtime error
Syntax error
Calculation error
Which stage of program development involves creating flowcharts and pseudocode?
Analysis
Coding
Design
Testing
The Chinese translation of "algorithm" is
(a)
Which keyword means “a set of rules to solve a problem”?
Algorithm
Variable
Loop
Structure
Which of the following is NOT a flowchart symbol?
Decision
Terminator
Input/Output
Class
A linear search is inefficient because…
It uses recursion
It searches items one by one
It skips half the list
It requires data to be sorted
Keyword: Verification means…
确保数据格式正确
确保数据真实且一致
计算平均值
编写伪代码
A trace table is used to…
Design flowcharts
Predict output line by line
Fix hardware
Store data permanently
Bubble sort works by…
Splitting the list in half
Using binary search
Swapping adjacent values
Reversing the list
A bubble sort stops when a full pass is made with no swaps.
True
False
A logical mistake causing wrong output is a (a) error.
Which validation check would be most appropriate for checking if a password has at least 6 characters?
Presence check
Length check
Type check
Range check
Which of the following is an example of a logic error?
Missing a closing bracket
Using = instead of == in Python
Using “>” instead of “<”
Typing PRNT instead of PRINT
The purpose of a (a) table is to track changes in variable values step by step.
Pseudocode must follow the exact rules of the programming language it represents.
True
Flase
The trace table will contain two columns: (a) and Output.
Look at the Algorithm Below. In the corresponding Trace Table, what value should 'A' be?
1
3
5
7
Look at the Algorithm Below. In the corresponding Trace Table, what value should 'B' be?
1
3
5
7
Look at the Algorithm Below. In the corresponding Trace Table, what value should 'C' be?
1
3
8
13
Look at the Algorithm Below. In the corresponding Trace Table, what value should 'D' be?
11
13
8
1
What is the purpose of using a Trace table?
Planning before writing a program
To help debug a program
Check for spelling mistakes
Understand the program more
The trace table will contain three columns: n, (a) , and Output.
This loop will repeat (a) times
What are logic errors?
An error that does not stop the code from executing
When the logic gates are incorrectly connected
An error where the logic doesn't make sense
Code that does not give the desired output
Syntax error, Logic error or this code is perfect?
Another great program, it is all ok
Syntax error
Logic error
Which loop loops a set number of times?
for
while
infinite
loopy
