NEW
Font size
WorksheetsPython Quiz For Starters
Total questions: 17
Worksheet time: 8mins
What does the Input function Do?
outputs any sentence or word
Ask the user to insert asked Data
Defines what an integer or string or boolean or float
What is the output of Name = print('Dave")
dave
"Dave"
Syntax Error
Dave
What does The Type function do
Outputs a certain sentence or word
asks a user to insert asked data
Defines what a number or word is between
string,Float,integer,boolean
what would be the output of print(''Hello World")
("Hello world")
Hello World
Hello World
"Hello World"
Hello World
What do we use to assign a value to a variable?
+
/
==
=
name = 'Dave'
print (name)
Which is the Python logo?
What is a input?
A function that allows us to ask the user to enter some data.
To plug in something.
Data displayed on a screen.
A function
What function is used to output a message in python?
input=name
name=input
Type
x = 5
y = 6
print(x*y)
The code above displays the following:
11
x*y
Syntax Error
30
To display the following on screen
Hello World!
the following command should be used:
print(Hello World!)
print("Hello World!")
print("Hello World" + !)
print"(Hello World!)"
x = 5
y = 6
print(x*y)
The code above displays the following:
11
x*y
Syntax Error
30
