Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

python

Total questions: 12

Worksheet time: 12mins

Name
Class
Date
1.

How do you write a print statement with a string in it?

(a)  

2.

How do you write a print statement with a variable?

(a)  

3.

How would you write an input statement that sets a variable as the users input

a)

variable == input("")

b)

variable = input()

c)

input = ("")

d)

variable = input("")

4.

Will this add the number

a)

Yes

b)

No

5.

Select the python math operators that work

a)

x

b)

+

c)

÷

d)

-

e)

/

6.

If you already imported time what command will wait ONE second?

(a)  

7.

what types of things can variable be set to?

a)

Boolean

b)

String

c)

Number

d)

All of the above

8.

This will give me an error

a)

True

b)

False

9.
What is a variable?
a)
A box(memory location) where you store values
b)
a type of graphics
c)
Data type
d)
a type of memory
10.

What will be the output?

name = 'Dave'

greeting = "Good morning" + name

print (greeting)

a)

Good morning 'Dave'

b)

Good morningDave

c)

Good morning name

d)

Good morning Dave

11.

what are the conditions in python if statements?

a)

else

b)

else/if

c)

elif

d)

if

e)

elf

12.

What so you call an if statement inside of an if statement

a)

nested if statement

b)

double if statement

c)

insider if statement