WorksheetsAn intro to Python
Total questions: 25
Worksheet time: 13mins
Why do we learn Python?
It's a really big snake
It's the name of a very funny comedy show
It's simple and easy to learn
It's so rare that no one else knows it
What would this print?
print("3+4")
Print("Hello world!")
print("Hello" + "world" + "today")
print("Hello world!\nHello world!")
Hello world!
print("Hello world!" * 2)
print(9/3)
What does print("hello) display?
hello
gives you an error
"hello"
"hello
Define what is meant by a 'high level programming language'
Also known as machine code, read by the computer
A language that uses words close to what humans use.
Identify an example of a high level programming language
Python
Binary
Define what is meant by a 'variable'
Converts high level programming language into a low-level language
Identifying an error and fixing it
Statements or words used in a programming language e.g. print
A named memory location, that stores a value, that can change
Describe the purpose of a 'translator'
Converts high level programming language into a low-level language
Identifying an error and fixing it
Statements or words used in a programming language e.g. print
A named memory location, that stores a value, that can change
Which data type would be suitable for someone's age?
An integer
A string
A float
A boolean value
Which data type would be suitable for a calculation that involved multiplying a whole number by a number with 2 decimal places?
An integer
A string
A float
A boolean value
An expression can often be evaluated as true or false, for instance print(10>9) would return as true. What is this an example of?
A string
A boolean value
A float
