NEW
Font size
WorksheetsWriting Algorithms
Total questions: 22
Worksheet time: 7mins
What should be considered when designing an algorithm?
If there is more than one way of solving the problem
If the correct hardware is being used
If the correct software is being used
What are the two main ways that algorithms can be designed?
Charts and Text
In pseudocode or as a flowchart
Algorithms and Programs
What is pseudocode?
A way of describing a set of instructions in text form
A specific programming language that all computers use
A diagrammatic representation of a set of instructions
What is a flowchart?
A flowchart is a text-based way of designing an algorithm
A flowchart is a specific programming language
A flowchart is a diagram that represents a set of instructions
What is the symbol for a decision in a flowchart?
A parallelogram
A diamond
A circle
Which of these is the correct symbol for a process in a flowchart?
A diamond
A rectangle
A parallelogram
How are symbols connected together in a flowchart?
Symbols do not get connected together in a flowchart
With lines and an arrow to show the direction of flow
By numbers
An integer is...
A whole number
A number with a decimal part
Letters, numbers or punctuation
True or False
A boolean is...
A whole number
A number with a decimal part
Letters, numbers or punctuation
True or False
A real is...
A whole number
A number with a decimal part
Letters, numbers or punctuation
True or False
A string is...
A whole number
A number with a decimal part
Letters, numbers or punctuation
True or False
Which type of iteration should you use if you don't know how many times you need to loop?
Condition Controlled
Count Controlled
Which type of iteration should be used when you know how many times you want to loop?
Count Controlled
Condition Controlled
What is missing?
____ i = 1 To 10
OUTPUT: "String"
ENDFOR
FOR
FOUR
WHILE
Fill in the missing blank:
_______ variable <> "Hi"
OUTPUT: "Hi to you!"
ENDWHILE
WHILST
WHILE
FOR
IF
Pick the correct answer to match the following:
A loop that will check the condition before the code inside is executed.
FOR
WHILE
REPEAT...UNTIL
Pick the correct answer to match the following:
A loop that will check the condition after the code inside is executed.
WHILE
REPEAT...UNTIL
FOR
How many arrows come out of the end symbol in the flowchart?
0
1
2
3
How many arrows come out of the decisionsymbol in the flowchart?
0
1
2
3
