Question 1
Which description defines an algorithm?
-
Ordered steps that solve a problem
-
Program code a computer can run
-
Values used to test a program
-
A diagram of data movement
Question 2
What is sequencing?
-
Putting instructions in order
-
Repeating instructions
-
Making a decision in an algorithm
-
Removing unnecessary detail
Question 3
What is selection?
-
Choosing a path from a condition
-
Repeating a set of steps
-
Ordering a set of steps
-
Dividing a task into parts
Question 4
What is iteration?
-
Repeating a series of instructions
-
Choosing a path based on a condition
-
Putting instructions into a fixed order
-
Removing unnecessary detail from a problem
Question 5
What is a variable?
-
A named value that can change
-
A fixed value that cannot change
-
A symbol that shows a decision
-
A command that displays a value
Question 6
What is a subroutine?
-
A reusable section of an algorithm
-
A decision point within an algorithm
-
A value that changes during an algorithm
-
A diagram that represents an algorithm
Question 7
In a flowchart, what does a diamond mean?
-
Decision
-
Process
-
Input/output
-
Start/end
Question 8
In a flowchart, what does a rectangle mean?
-
Process
-
Decision
-
Input/output
-
Start/end
Question 9
In a flowchart, what does a parallelogram mean?
-
Input/output
-
Decision
-
Process
-
Start/end
Question 10
In a flowchart, what does an oval mean?
-
Start/end
-
Decision
-
Input/output
-
Process
Question 11
What is pseudocode?
-
Language-independent algorithm notation
-
A program's machine-code translation
-
A flowchart's standard symbols
-
A table of traced variable values
Question 12
Which loop repeats a set number of times?
-
For loop
-
While loop
-
If statement
-
Subroutine call
Question 13
Which loop runs while a condition remains true?
-
While loop
-
For loop
-
If statement
-
Return statement
Question 14
Which keyword starts a decision in code?
-
if
-
for
-
while
-
print
Question 15
When does A AND B return True?
-
Both are True
-
Exactly one is True
-
Either one is True
-
Both are False
Question 16
What is decomposition?
-
Breaking a problem into smaller parts
-
Removing unnecessary detail from a problem
-
Making a decision in an algorithm
-
Repeating instructions while a condition is true
Question 17
What is abstraction?
-
Removing unnecessary detail
-
Breaking into parts
-
Repeating steps
-
Listing all cases
Question 18
What is a trace table for?
-
Tracking values at each step
-
Showing algorithm steps using flowchart symbols
-
Writing algorithm steps as pseudocode
-
Recording expected and actual test results
Question 19
How does linear search work?
-
Checks each item in order
-
Starts in the middle
-
Sorts first
-
Checks first and last
Question 20
Which benefit comes from using subroutines?
-
Reusing code for a repeated task
-
Tracing variable values during execution
-
Testing boundary inputs automatically
-
Translating code into machine instructions
Question 21
What does a condition return?
-
True or False
-
A number
-
A text string
-
A loop count
Question 22
Which error lets a program run but gives the wrong result?
-
Logic error
-
Syntax error
-
Runtime error
-
Transmission error
Question 23
What is pattern recognition in problem solving?
-
Finding similarities between problems
-
Removing unneeded details
-
Splitting a problem into parts
-
Writing steps in order
Question 24
What do arrows show in a flowchart?
-
Direction of execution
-
Stored data type
-
Decision result
-
Start and end points
Question 25
Which operation makes one bubble-sort pass?
-
Compare adjacent items and swap wrong pairs
-
Compare the middle item and discard half
-
Check each item against a target
-
Split the list, sort halves, then merge
Question 26
Which algorithm is best suited to finding a value in an unsorted short list?
-
Linear search
-
Binary search
-
Bubble sort
-
Merge sort
Question 27
What must be true before using a binary search?
-
The data is sorted
-
Every item is a number
-
The list has an even length
-
The list has no duplicates
Question 28
What does a sorting algorithm do?
-
Orders data
-
Finds a target
-
Traces variable values
-
Removes irrelevant details
Question 29
What does algorithm efficiency compare?
-
Time or memory use
-
Variable names
-
Input data types
-
Output format
Question 30
An algorithm stops after a limited number of steps. Which property does this show?
-
Finiteness
-
Abstraction
-
Decomposition
-
Selection