wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python mini Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

to generate a random things you use this

a)

use(random)

b)

import random

c)

import random number

d)

you do not need to use anything

2.

To declare a variable you use two equal signs but to compare things you use one

a)

True

b)

False

3.

How long will while True go on

a)

2 minutes

b)

until you close the program

c)

forever there is no way to stop it

d)

Until you set True to False

4.

To pause for a specified time import ____

a)

Time

b)

Wait

c)

Sleep

d)

Pause

5.

when declaring what to do in a if statement ....

a)

add a space

b)

indent

c)

nothing

6.

b= 1

c = 8

print(b + c)

What is the error in this program

a)

b + c is not a string

b)

there is no error

c)

print is not capitalized

d)

to declare vars there need to be two equal signs

7.
What is the word (command) used to display numbers and text on the screen?
a)
print
b)
input
c)
output
d)
command
8.
What is the name of the programming language we are learning?
a)
Scratch
b)
Python
c)
Pie thin
d)
Scribble
9.
What is Python?
a)
text based programming language
b)
word processor 
c)
spreadsheet
d)
block based programming language
10.
What Python command lets the user enter an answer to a question?
a)
answer()
b)
open()
c)
print()
d)
input()