Font size
WorksheetsAlgorithm, Flowchart & Pseudocode
Total questions: 66
Worksheet time: 37mins
A diagram that represents an algorithm, work flow, or process, and uses geometric symbols connected by arrows to show the direction of the flow of action.
Flowchart
Illustration
Data
Information
The process of solving problems using a series of steps.
algorithmic thinking
creative thinking
analyzing
processing
To break a problem down into smaller pieces.
decomposing
processing
creating
solving
Scenario: There is an algorithm in preparing rice. What is the first step in the given choices?
Cook the rice
Measure the rice
Rinse the rise
Serve the rice
What does this symbol represent?
Represents a decision-making point
Represents arithmetic operations and data manipulations
Represents the start and the end of a flowchart
Represents the flow of the algorithm
What does this symbol represent?
Represents a decision-making point
Represents arithmetic operations and data manipulations
Represents the start and the end of a flowchart
Represents the flow of the algorithm
What does this symbol represent?
Represents a decision-making point
Represents arithmetic operations and data manipulations
Represents the start and the end of a flowchart
Represents the flow of the algorithm
What does this symbol represent?
Represents a decision-making point
Represents arithmetic operations and data manipulations
Represents the start and the end of a flowchart
Represents the flow of the algorithm
Instructions carried out one after another in order is called
Sequence
Selection
Iteration/Looping
Keep repeating a part of a flowchart with this construct
loop
algorithm
document
diamond
Select the which step should be completed first in an algorithm to get ready for school.
Have breakfast
Get out of bed
Brush my teeth
Leave the house
How many instructions should each rectangle hold in a flowchart?
1
2
3
4
Your Full Reg No (in capitals)
A condition is
a statement that is either True or False
a string
an integer
a list
Will the following loop run?
Yes
No
distanceToSchool = 10
Which part is the identifier?
To separate these comments from the actual code, what character(s) are used?
"A conditional statement to deal with many possible outcomes" describes which pseudocode programming statement?
FOR...TO...NEXT
IF...THEN...ELSE...END IF
WHILE...DO...ENDWHILE
REPEAT...UNTIL
CASE...OF...OTHERWISE...ENDCASE
Which of the following correctly creates a variable?
DIM age AS x
DECLARE age AS INTEGER
DECLARE CORRECT AS string
INPUT user's full name
What does the following pseudocode snippet do?
DECLARE car AS STRING
It creates a character variable named car.
Creates a new car object.
Nothing
It creates an address in memory which is referenced by the label car.
Which of the following snippets might read and store user input?
DECLARE name AS STRING
OUTPUT “Please enter your name.”
DECLARE name AS STRING
INPUT “Please enter your name.”
DECLARE name AS INTEGER
STORE user’s full name IN name
DECLARE name AS STRING
STORE user’s full name IN name
The BEST description for an algorithm is...
Code for a computer program
A set of ordered steps to solve a problem
A solution to a problem
Something a computer runs
Algorithms can be executed by a non-computing device.
TRUE
FALSE
The THREE key features of an algorithm are...
Unambiguous
Ordered
Finite
Coded
The THREE control structures used to create an algorithm are...
Sequence
Selection
Iteration
Variables
When expressing an algorithm in pseudocode, which parts should be capitalised?
Keywords
All of it
Output
Input
What type of font should be used to write pseudocode on a computer?
Sans-serif
Serif
Monospace
Any
The pseudocode commands that can be used to create a variable where the initial value is not known.
INITIALISE
SET
DECLARE
VARIABLE
The pseudocode command to create a variable with an initial value.
SET
INITIALISE
DECLARE
VARIABLE
The use of the INPUT command in pseudocode is...
To indicate that the user will be asked for input
To indicate that the value for a variable will come from the user
To indicate the value for a variable will come from a file
To ask the user a question
The ________ pseudocode command is used to provide a mathematical formula
CALCULATE
FORMULA
WRITE
INPUT
Which of the following IS NOT a correct pseudocode syntax for selection?
IF...THEN...ENDIF
IF...ELSE...ENDIF
IF...THEN...ELSE...ENDIF
IF...THEN...ELIF...ENDIF
What is the difference between a test-first and test-last loop structure? (Select TWO correct options)
Test-first uses a FOR loop structure while a test-last uses REPEAT UNTIL
The condition for a test-last loop is at the start
The condition for a test-last loop is at the end of the loop
The loop actions in a test-last loop must execute at least once
Which iteration structure is known as a counted loop?
FOR...NEXT
WHILE...ENDWHILE
REPEAT...UNTIL
DO...WHILE
Using a control structure inside another control structure is called...
Nesting
Cascading
Concatenating
Joining
To signify the start and end of a pseudocode algorithm, we use...
START...END
BEGIN...END
START...FINISH
BEGIN...FINISH
The control structures that use a condition are...
SELECTION
ITERATION
SEQUENCE
ARRAYS
What will happen when the following pseudocode is executed?
Set Integer Emp_no=101
Set Integer salary=0
while (Emp_no=501)
salary=salary+100
display salary
end-while
Code executes successfully and value of salary is displayed once.
Code executes successfully and nothing is displayed.
Code executes successfully and value of salary is displayed infinite number of times.
Compile time error.
What symbol is this?
Set Ans = calculation
rectangle
Processing
calculation
This is an example of...
Narrative
Flowchart
IPO Chart
diagram
Select the which step should be completed first in an algorithm to get ready for school.
Have breakfast
Get out of bed
Brush my teeth
Leave the house
