20 Questions
What is the purpose of a Nested IF Statement?
To check multiple possibilities
What is the data type of the variable 'forename' in the Tracking Assessment task?
String
What is the operator used to assign a value to a variable?
=
What type of control structure is used to check if the username and password are correct?
IF Statement
What is the purpose of the variable 'average_score' in the Tracking Assessment task?
To store the average exam score
What is the purpose of a variable in Python?
To store and manage data
What data type would the number 3.14 be classified as in Python?
Float
How can you get user input and store it as a variable in Python?
Using an input function
What is the purpose of the code print('I am a Year 10 student studying ICT at ' + school)
?
To display a message to the user using variables
What is the difference between an integer and a float in Python?
Integers are whole numbers, while floats are numbers with decimals
What is a correct syntax to output "Hello World" in Python?
print "Hello World"
Which one is NOT a legal variable name?
_myvar
How do you create a variable with the numeric value 5?
Both are Correct
In Python, 'Hello', is the same as "Hello"
True
Which operator is used to multiply numbers?
In an IF statement, which operator can be used to compare two values?
==
Match the operators
Add = + Divide = / multiply = * Subtract = -
Match the correct data types:
135 = Integer 22.2 = Float 32 Donard Road = String Spaces used to organise blocks of code = Indetentation
What will this code show:
Code B
An error occurs when Mr McGee runs this code. What is the issue?
Variable 'name' doesn't exist
Make Your Own Quizzes and Flashcards
Convert your notes into interactive study material.
Get started for free