Font size
WorksheetsIntroduction to Python
Total questions: 20
Worksheet time: 13mins
42 is an example of what data type?
Integer
String
Float
Boolean
'42' is an example of what data type?
Integer
String
Float
Boolean
4.2 is an example of what data type?
Integer
String
Float
Boolean
False is an example of what data type?
Integer
String
Float
Boolean
"True" is an example of what data type?
Integer
String
Float
Boolean
The term which describes identifying errors in a programme and fixing them
Syntax
Syntax error
Logic error
bug
debug
The term which describes errors in a programme
Syntax
Syntax error
Logic error
bug
debug
The term which describes errors in a programme which are due to programmers making typing mistakes or spelling mistakes
Syntax
Syntax error
Logic error
bug
debug
The term which describes errors in a programme which are due to the programmers algorithm and calculations being wrong
Syntax
Syntax error
Logic error
bug
debug
The term which describes the rules that govern a computer language, how it is structured and written.
Syntax
Syntax error
Logic error
bug
debug
How many bugs are there in this programme?
None
1
2
3
4
In Python, a programmer can leave comments in his code by using a (a) sign
Comments are easy to spot in Python because the Python editor changes the text colour to (a)
(a) enable programmers to leave notes and instructions which explain their algorithms and programmes. This helps other programmers understand how the code is intended to work.
A step by step set of instructions used to solve a problem
Algorithm
Function
Variable
Concatenate
A mini programme used inside a larger programme
Algorithm
Function
Variable
Concatenate
The process of linking one thing to another
Algorithm
Function
Variable
Concatenate
An element of a programme which stores a value that can change as the programme is run
Algorithm
Function
Variable
Concatenate
If you run the following line of code what will be the output?
print(4**2)
(a)
What is the output of this programme?
(a)
