WorksheetsPython Inputs
Total questions: 10
Worksheet time: 8mins
What is the word (command) used to display numbers and text on the screen?
show
output
command
What can be used to store information and values so that it can be used later?
Graphic
Variable
Output
What will be the output?
name = 'Dave'
print (name)
name
Dave
error
What would print (10 + 16) produce?
10
16
24
26
What is a input?
To plug in something.
A function that allows us to ask the user to enter some data.
Data displayed on a screen.
A function
name=input("What is your name? ")
print("Your name is " + name)
What will be displayed if the user types in "Bob"?
Your name is name
name
Bob
Your name is Bob
What, if anything, is wrong with the following?
input("Type your password: ")
There is no variable
Input commands don't need ( )
Input commands don't need " "
Nothing is wrong
What, if anything, is wrong with the following?
input=x("Type your password: ")
print(x)
The variable should be switched with the input command
Input commands don't need ( )
You can't print x
Nothing is wrong
What, if anything, is wrong with the following?
x=input("Type your password: ")
print("You typed", x)
The variable should be switched with the input command
You can't use commas in print statements
You can't print x
Nothing is wrong
What, if anything, is wrong with the following?
x=input("Type your password: ")
print("You typed " + x)
The variable should be switched with the input command
You can't use + in print statements
You can't print x
Nothing is wrong
