No student devices needed. Know more
20 questions
Which of the following symbols means more than and equal to?
<
>=
==
!=
What correct code in python will display - Hello World
Print("Hello World")
print("Hello World")
print(Hello World)
print=("hello world")
What will the output be from the following code:
print("Hello world!\nHello world!")
Hello world! Hello world!
Hello world!
Hello world!
SyntaxError
Hello world!
What would be displayed if you did run this code in python:
print(10*3)
3
10
13
30
If you type print(10/5) - what result would you get in python?
2
2.0
0
15
What is a variable?
A named memory location where you store a value
a value
a number
a letter
Which of the following is NOT a suitable variable name in python?
num1 =
Num1 =
MyName =
My name is =
What data type is 1 letter e.g. f
String
Character
Integer
Float
Which of these is an example of a float data type value.
-5
0
42
3.14
What is the name of the environment in Python that write your programs and then test them out?
Shell
Window
IDLE
CLI
What is syntax in python?
Syntax is the rules of the programming language
Syntax is the word used to describe a computer error
It is used to read information
It is used to output information
To make a value stored in python an Integer you use the letters:
word integer
num
number
int
The symbol that must be at the end of the line for if, while, for is:
:
;
.
,
To repeat a fixed number of times use a count control loop, otherwise know in python as
while loop
for loop
if loop
indentation
Another name for code been repeated / looped is:
Sequence
Selection
Iteration
Variable
The order of the code from top to bottom, line by line is:
Sequence
Selection
Iteration
Variable
If you have lines of code in a selection in python, it means
All your code runs from top to bottom
code keeps looping
All code is printed
Only certain code is run if the condition is true
A While loop runs until a condition is met or is true. What is this otherwise known as:
Count control loop
Condition control loop
Sequence loop
Selection loop
Explore all questions with a free account