Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python Inputs

Total questions: 10

Worksheet time: 8mins

Name
Class
Date
1.

What is the word (command) used to display numbers and text on the screen?

a)

print

b)

show

c)

output

d)

command

2.

What can be used to store information and values so that it can be used later?

a)

Graphic

b)

Variable

c)

Print

d)

Output

3.

What will be the output?

name = 'Dave'

print (name)

a)

name

b)

print

c)

Dave

d)

error

4.

What would print (10 + 16) produce?

a)

10

b)

16

c)

24

d)

26

5.

What is a input?

a)

To plug in something.

b)

A function that allows us to ask the user to enter some data.

c)

Data displayed on a screen.

d)

A function

6.

name=input("What is your name? ")

print("Your name is " + name)

What will be displayed if the user types in "Bob"?

a)

Your name is name

b)

name

c)

Bob

d)

Your name is Bob

7.

What, if anything, is wrong with the following?

input("Type your password: ")

a)

There is no variable

b)

Input commands don't need ( )

c)

Input commands don't need " "

d)

Nothing is wrong

8.

What, if anything, is wrong with the following?

input=x("Type your password: ")

print(x)

a)

The variable should be switched with the input command

b)

Input commands don't need ( )

c)

You can't print x

d)

Nothing is wrong

9.

What, if anything, is wrong with the following?

x=input("Type your password: ")

print("You typed", x)

a)

The variable should be switched with the input command

b)

You can't use commas in print statements

c)

You can't print x

d)

Nothing is wrong

10.

What, if anything, is wrong with the following?

x=input("Type your password: ")

print("You typed " + x)

a)

The variable should be switched with the input command

b)

You can't use + in print statements

c)

You can't print x

d)

Nothing is wrong