Font size
WorksheetsAI
Total questions: 90
Worksheet time: 50mins
What is a folder?
the name given to a set of recorded information
the name given to the place where files that can be bought
the name given to the place where files that can be stolen
the name given to the place where files that can be stored
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
What are the names of the two types of mode that are used in Python? Select two.
Interactive mode
Scratch mode
Imperial mode
Script mode
What is the name of this symbol (>>>)?
Chevrons
Hash tags
Colon
Semi Colon
Python is _____ sensitive which means you must use the same indentation every time.
space
colour
code
word
print(3*4+5)
A syntax error means your code has a 'grammar' mistake or you used symbols/operations incorrectly.
True
False
What will be the output?
name = "Dave"
print (name)
Dave
'Dave'
name
(name)
name = 'Dave'
greeting = "Good morning" + name
print (greeting)
Is python an interpreter or compiler programming language?
Compiler
Interpreter
Python is uses braces to block off code
True
False
Python uses indentation to block code into chunks
True
False
Python correct naming convention for constants is?
firstName
First_Name
FIRST_NAME
firstname
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
What datatype will the answer be if the user enters 15 and 30?
Integer
String
Boolean
Float
Which one will display when this code is run?
print("Hello world!\nHello world!")
Hello world!
print("Hello" + str(2) + "world!")
What does the following code do? myAge = int (myAge)
Converts the var (variable) myAge to a string
Converts the var (variable) myAge to a integer
Converts the var (variable) myAge from a integer to a string
Converts the var (variable) myAge to if statement
print(Hello world!)
people = ["John", "Rob", "Bob"]
print (people[1])
what would this result be?
people = ["John", "Rob", "Bob"]
print (people[-1])
what would this result be?
people = ["John", "Rob", "Bob"]
print (people[4])
what would this result be?
If you want to create an empty list called colours in Python, which of the following is correct?
colours = [ ]
colours = ( )
colours = { }
colours = <>
Each item in a list has an index. What is the first index in a Python list?
0
1
a
A
What will the output be from the following code?
print(3+4)
3+4
7
SyntaxError
print(3+4)
What will the output be from the following Python code?
Print("Hello world!")
NameError
Hello world!
"Hello world"
Print(Hello world!)
What will the output be from the following Python code?
print(9/3)
3
3.0
9/3
SyntaxError
What is the Python built-in function to converts a number to a string?
str()
int()
parseInt()
convert
Which of these is correct Python conditional statement?
IF answer == "Yes":
if answer == "Yes"
if answer == "Yes":
if answer = "yes":
holds whole numbers
holds a decimal point in a number
