WorksheetsIGCSE YR 11 The Big last Quiz Paper 2
Total questions: 173
Worksheet time: 2hrs 12mins
What does this symbol represent? (a)
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
Objectives
What is the missing word <?>
Understand and use data types: integer, real, char, <?> and Boolean
(a)
Objectives
What is the missing word <?>
Use arithmetic operators including <?> and DIV
(a)
Variables will typically be one of the following types:
Integer, Boolean, real, char or string
For the variables given, the data types would be:
numberOfStudents
Integer
circleArea
Real
found
Boolean
answer
Char
studentName
String
The operator DIV is used for integer division, also known as quotient
What is the result of the following operation?
weeks ← 31 DIV 7
3
4
7
31
38
MOD (modulus) is used to find the remainder when dividing one integer by another
What is the result of the following operation?
daysLeft ← 31 MOD 7
3
4
7
31
38
The operator DIV is used for integer division, also known as quotient
What is the result of the following operation?
digit ← 105 DIV 10
1
10
100
5
10
MOD (modulus) is used to find the remainder when dividing one integer by another
What is the result of the following operation?
remainder ← 105 MOD 10
1
10
100
5
10
Concatenating strings
firstname ← “Revise"
surname ← “Hard"
fullname ← surname + " " + firstname
OUTPUT fullname
What will be output?
"ReviseHard"
"HardRevise"
"Hard Revise"
"Revise Hard"
Match the following substring starts with position 1
What will be the values of a, b and c and d below?
zooName ← "London Zoo"
a ← LEN(zooName)
b ← SUBSTRING(zooName,2,3)
c ← LCASE(zooName)
d ← UCASE(zooName)
a
10
b
ond
c
london zoo
d
LONDON ZOO
Match the following
What is the output of the following program?
a ← "The quality of mercy is not strained."
b ← LENGTH(a) – 30
c ← SUBSTRING(a,1,b)
d ← SUBSTRING(c,1,LEN(c)-1)
OUTPUT d
a
"The quality of mercy is not strained."
b
7
c
"The qua"
d
"The qu"
Choose all the Boolean logic gates...
NOT
BUT
AND
XOR
1 AND 0 is...
0
1
10
AND
True OR False is
False
True
10
2
If x = 3 and y = 5, choose all the statements that evaluate to True.
x < y
2*x == y
x + 2 == y
y*(x - 1) > x
2 < 3 AND (NOT (3>2))
False
True
Which word best completes this sentence:
Data that is Boolean can only take two values:
True _______ False
or
xor
and
not
A NOT gate has ____ input and one output
2
0
1
-1
A combination of logic gates is known as a logic ______
algorithm
circuit
array
function
A logic gate that outputs True only if both inputs are True is called...
eXOR
NOT
OR
AND
(1 + 2) >= 3 OR (-(1 + 3)> 5)
TRUE
FALSE
In which of the following logic gates the output is 1 if and only if at least one input is 1?
NOR
AND
NAND
OR
A truth table lists every possible combination of input and the resulting output
Yes
No
A XOR B = Q
If A = 1 and B = 1, what does Q equal?
1
0
NOT A = P
If A is 1, P is ...
1
0
(NOT A) AND B = P
If A = 0 and B = 1, what does P equal?
1
0
internet
input
iheanacho
integer
if, edit, else
if, elif, else
if, elif, edit
if, excited, scream
What is wrong with this code?
print"Do you enjoy eating Banh Mi?"
no quotation marks
no parentheses
no commas
no capital letters
What is wrong with this code?
if answer == (“Leicester City”)
no quotation marks
no parentheses
Poor choice in team
No colon
team = input(“Enter a team”)
colour = input(“Enter a colour”)
team = input()
What will be the output?
name = 'Jamie Vardy'
print (name)
Jamie Vardy
'Jamie Vardy'
name
(name)
What will be the output?
name = 'Mr Brown'
greeting = "Good morning " + name
print (greeting)
Good morning
'Mr Brown'
Good morning
Mr Brown
Good morning name
Good morning + Mr Brown
if a > b:
print(a)
a >= b
a != b
Get a job!
What will the following code do: print("What is your name?")
Allow you to type in your name
Display the words 'What is your name?' on the screen
Allow you to enter information
Print your name to the screen
Python correct naming convention for variables is?
new_user25
NewUser25
25_new_user
25NewUser
NEWUSER25
What output will the console show, if 15 and 30 are entered by the user?
Syntax error
The sum of the two numbers - 45
The concatenation of the two numbers - 1530
Complier error
Which one will display when this code is run?
print(Hello world!)
Which of the following evaluates to the variable z rounded to two decimal places?
round(x, 2)
round(2, z)
round(z), 2
round(z, 2)
#Find the error in this program
goals=int(input("Enter the number of goals you scored last season: "))
if goals>= 20:
print("You are good enough to sign for Leicester City")
else
print("Not good enough for Leicester, better sign for a rubbish team like Man united instead!")
Missing Colon somewhere
Missing Parenthesis somewhere
Missplet variable name
Leicester are not better than Man United
