No student devices needed. Know more
16 questions
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
Explore all questions with a free account