Font size
WorksheetsIGCSE Unit 7 Algorithms & problem solving
Total questions: 108
Worksheet time: 1hrs 26mins
What symbol shows something you need to do?
oval
parallelogram
rectangle
diamond
Which symbol shows input?
oval
parallelogram
rectangle
diamond
Yes
19
What will happen if the user's book return is late?
Sends them an SMS (text)
Does not send them an SMS (text)
A diagram to show each step
Flowchart
Algorithm
A flowchart does not need to have a Start
True
False
How many arrows should come out of a decision symbol in a flowchart?
0
1
2
3
How many arrows come out of the end symbol in the flowchart?
0
1
2
3
What are the two main ways that algorithms can be designed?
Images or videos
In pseudocode or as a flowchart
By hardware or software
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 important to remember when designing an algorithm?
whether to use a flowchart or pseudocode
the instructions are in the correct order
that it must be easy to read
What is missing on the following flowchart?
Arrows
Flow lines
Terminators
Process symbols
This flowchart is made to...
Calculate the area and perimeter of a square
Output figures of different sizes
Calculate the area and perimeter of a circle
Find out how long it takes to get to the moon
In this flowchart, r ...
is the radius of a circle
stands for random number
represents a running total
is a miscellaneous variable
This flowchart is made to ...
find out which of two numbers is the biggest
add two numbers together and output the larger result
input two numbers and expand them
By examining this flowchart we can tell that the temperature in the flowchart ...
is not in Dubai
must be measured in Fahrenheit
is being measured in Celsius
100
TRUE
"D"
What is a variable?
A storage location of memory which can change
A random area to store things in.
Something that changes
Something that can only store numbers
What is a Constant?
A storage location of memory which does not change
A random area to store things in.
Something that changes
Something that can only store numbers
Define the term ‘Algorithm’
The process of filtering out the characteristics of problems that are not needed in order to concentrate on those that are needed
An algorithm is a set of steps/instructions needed to complete a software task.
The process of breaking down a complex problem into a series of more manageable problems
Identifying patterns
What value would be output if a = 6 and b = 6?
4
12
2
24
print "Hello"
Which of these is NOT an algorithm?
Following recipe instructions
Working out how an engine works
Tying your shoelaces
Making a cup of coffee
What is a sequence
Putting and executing instructions in order.
A pattern of numbers.
Instructions which a computer follows.
A line of code
What are the three algorithm constructs?
Sequence, Selection, Iteration
Input, Process, Output
Input/output, decision, terminator
Loop, input/output, process
Variables are assigned an identifier. The identifier should be:
not too long
have a sensible name
not start with a number
not start with a capital letter
all of the above
What is a "Variable" ?
A value that can be changed and manipulated as an algorithm is running
A value that cannot be changed and manipulated as an algorithm is running
firstName is and example of what commonly used way to name a variable
camelcase
snakecase
linecase
hillcase
This an example of:
a nested if
a combined if
a multiple if
a sequence if
Case statements can be used in some languages instead of:
a nested if
a combined if
a multiple if
a sequence if
mickey = mouse .
if mickey == mouse: .
. print("Mickey is a mouse")
.else: .
. print("Minnie rules") .
john = 5 .
if john > 6: .
. print("John is getting ice cream")
else: .
. print("John is getting apple juice")
print("John is getting grapes") .
John is getting grapes
John is getting grapes
john = 5 .
if john > 6: .
. print("John is getting ice cream")
else: .
. print("John is getting apple juice")
. print("John is getting grapes")
John is getting grapes
John is getting grapes
john = 8 .
if john > 6: .
. print("John is getting ice cream")
else: .
. print("John is getting apple juice")
. print("John is getting grapes")
John is getting grapes
John is getting grapes
john = 3 .
if john < 6: .
. print("John is getting ice cream")
else: .
. print("John is getting apple juice")
print("John is getting grapes") .
John is getting grapes
John is getting grapes
john = 6 .
if john != 6: .
. print("John is getting ice cream")
else: .
. print("John is getting apple juice")
. print("John is getting grapes")
John is getting grapes
John is getting grapes
If X is odd and Y is even, then X must have a greater value than Y. Which example(s) support this statement?
X = 3, Y = 2
X = 4, Y = 3
X = 11, Y = 12
X = 2, Y = 2
If X has a greater value than Y, then X must have a greater absolute value than Y. Which example(s) support this statement?
X = 12, Y = -2
X = 20, Y = -13
X = 12, Y = 13
X = 3, Y = -4
If the absolute value of X and Y are the same, then the value of X and Y must also be the same. Which example(s) support this statement?
X = 2, Y = 2
X = -4, Y = 4
X = 5, Y = -10
X = -10, Y = 10
If X is 10, then X must have a greater value than Y. Which example(s) support this statement?
X = 1, Y = 18
X = 10, Y = -2
X = 10, Y = 11
X = 9, Y = -13
The "If" Statement is an example of a _________________
Correctional Statement
Competitive Statement
Conditional Statement
Inquisitive Statement
Which of these is the correct format of an "if" statement?
How many "if" statements can a single program have?
<10
<20
<30
As many as is needed
True/False: The body of an "if" statement will only be executed if the condition is true.
True
False
What happens to the code in the body of an "if" statement if the condition is false?
The computer determines if it is essential to the program and if it is, then the code is executed anyway.
The code moves to a coastal city, attempting to find love and start a family. However, low waged and crushing mortgage rates lead to it moving back home where it sits, hoping that one day it will be executed.
The code is skipped.
The code stages a revolution and attempts to take over the program, ultimately unsuccessfully, which leads to it not being executed.
Which of these can be paired with an "if" statement to represent other outcomes of a scenario?
or
else
but
sheboygan
Which of these is the correct format for an "if/else" statement?
How many "else" statements can you pair with a single "if" statement
1
<10
<20
As many as is needed.
Which of these is the proper format of an "else/if" chain statement?
What will be the output of the code?
Even
EvenDivisible by 3
Even
Divisible by 3
Not Divisible by 6
Which of the following control structure are needed to repeat a code?
sequence
loop
selection
if
This loop can only be used when the programmer knows the number of times a code is to be repeated
while
for
do while
repeat until
Which of these is NOT a loop in python?
for loop
while loop
nested loop
if loop
Which of these operators means EQUAL TO?
'='
'=>'
'<='
'=='
Which of these will allow me to count from 0-20 in steps of 5?
for x in range(0,20):
print(x)
while x = (0,20,5):
print(x)
for x in range(0,21,5):
print(x)
for x in range(0,21,5):
print(y)
If i want to continuously check for a correct answer, what loop would i use?
for loop
while loop
What is a Count-Controlled loop?
for loop
while loop
Which kind of loop would be used?
I need a guessing game program that will let me keep guessing until I get the right answer.
FOR Loop
WHILE Loop
Which kind of loop would be used?
I need a program that will keep letting me add money to a piggy bank until I get to £100.
FOR Loop
WHILE Loop
WHILE loops are
loops which run an unknown number of times
loops which run for a specific number of times
the same as if statements
not part of programming
In a while loop the minimum time a code will be executed is
Once
Twice
0
In a While loop a code will be repeated until the condition becomes
FALSE
TRUE
User choice
WHILE loops are
loops which run an unknown number of times
loops which run for a specific number of times
the same as if statements
not part of programming
Input statement
Outputs a message on the screen
Gets data from the user
A decision
A loop controlled by a decision
Print statement
Outputs a message on the screen
Gets data from the user
A decision
A loop controlled by a decision
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
Look at the Algorithm Below. In the corresponding Trace Table, what value should 'E' be?
3
5
8
13
Look at the Algorithm Below. In the corresponding Trace Table, what value should 'F' be?
5
8
13
18
Tests are planned before starting to code
True
False
Only valid data inputs are tested
True
False
I am data which is in the expected 'normal' range
Invalid
Boundary
Valid
I am data which is would not be accepted in my program
Invalid
Boundary
Valid
I am data which checks a range of acceptable inputs, including at the start and end
Invalid
Boundary
Valid
