Font size
WorksheetsYEAR 9
Total questions: 81
Worksheet time: 2hrs 2mins
Algorithm is a
Step by step procedure
difficult procedure
complex
hard steps
____________________________ must be organized properly.
Puzzle
Quiz
Flowchart
Algorithm
Put your hand on the doorknob
Turn the doorknob to the side until it unlocks the door
Push or pull the door to open it
End
..................................................
What would be an appropiate title for this algorithm?
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
A boolean is...
A whole number
A number with a decimal part
Letters, numbers or punctuation
True or False
An integer is...
A whole number
A number with a decimal part
Letters, numbers or punctuation
True or False
The best data type for an age is...
integer
real
string
boolean
The best data type for a name is...
integer
real
string
boolean
If a grade of 98 was inputted, what would be the output?
Passed
Failed
Else
what is the purpose of an If else statement
Outputs a message on the screen
Gets data from the user
A decision
A loop controlled by a decision
What is the output?
True
False
condition1
condition2
What is the output of the code?
"String"
"No string"
18
none of the above
Which is NOT a data type in Python?
integer
boolean
anchor
float
print( (a) ("What is your favourite colour?")
What is the correct programming name of this symbol?
()
brackets
parenthesis
quotation marks
smiley emoji
What is the correct term for this symbol?
" "
Quotation marks
Bunny fingers
Parenthesis
Exclamation mark
What does this symbol represent?
>
Less than
Greater than
Equal to
Less than or equal to
What does this operator do? ' * '
Divide
Add
Subtract
Multiply
if 4 >= 2 and 3 <= 8:
print("true)
else:
print("false")
True
False
In Python, what are if-statements used for?
Looping
Indexing
Decision Making
Testing
Look at the following code:
name = "John"
age = 23
What type of data is stored in the variable age?
str
int
float
nothing
Look at the following code:
name = "John"
age = "23"
What type of data is stored in the variable name?
str
int
float
nothing
---------------------- is a reference to a location in memory where the data is stored.
Variable
python
Vakue
Operators
x= False , x is type of -----------
Integer
Boolean
Float
String
What is a variable?
It is changeable
It means that you may have a constant or a varying in data types
It is the name you give to computer memory locations which are used to store values in a computer program
distanceToSchool = 10
What is the value of the variable?
Instructions carried out one after another in order is a...
List
Sequence
Collection
Series
Instructions carried out one after another in order is a...
List
Sequence
Collection
Series
Which is the definition of "sequence"?
A set of instructions in a specific order
Where instructions repeat
Code where decisions are made
Which is the definition of "selection"?
A set of instructions in a specific order
Where instructions repeat
Code where decisions are made
An algorithm must be _______ (choose more than 1)
Clear instructions
Easy to understand
Complex
Exact
What in the name of the variable in this Python code?
name
input
("What is your name")
Which of these is not an arithmetic operator?
+
-
*
=
Which of the following would allow the user to enter data?
elif
output
input
Which code would display 'Hello World'
Print("Hello World")
print("Hello World")
print(Hello World)
print=("hello world")
Which of the following is NOT a suitable variable name?
num1
Num1
MyName
My name
What are the three basic programming constructs?
Sequence, selection and iteration
Sequence, selection and looping
Sequence, iteration and looping
Sequence, execution and selection
What does 'syntax' mean?
The structure of statements in a computer language.
The written algorithm
The way a flowchart flows
Leo is writing a "Digital Pet" program in Scratch. What is Leo using here to store how thirsty his pet is?
A costume
A sprite
A function
A variable
What programming concept is being shown here?
SEQUENCING
SELECTION
ITERATION
a (a) is a place in memory we can save data, that can change.
Which statement is used to implement selection?
IF
WHILE
Which variable data type is 'Harris Academy Clapham' an example of?
String
Integer
Float
Boolean
A data type consisting of only two (2) options.
What is the word (command) used to display output within Python?
input
output
display
What function is used to output a message in python?
print ("")
print = ("")
Print ("")
What syntax would you use to create a name variable in Python?
name=input()
input=name
name=input{}
name=INPUT
A data type consisting of numbers with decimals.
integer
float / real
string
boolean
What is Selection?
loops
if statements
list
database
What is a input?
A function that allows us to ask the user to enter some data.
To plug in something.
Data displayed on a screen.
A function
What is a output?
A piece of data that is shown on the screen.
Data that the user enters
An output
A orange
Which of the following types of computer languages uses binary code to communicate with the computer?
High-level languages
Assembly languages
Machine language
Database languages
Which is NOT a data type in Python?
integer
boolean
anchor
float
Which is correct?
A
B
What operator is being used in this program?
less than
greater than
less than or equal to
greater than or equal to
