wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Python Quiz For Starters

Total questions: 17

Worksheet time: 8mins

Name
Class
Date
1.

What does the Input function Do?

a)

outputs any sentence or word

b)

Ask the user to insert asked Data

c)

Defines what an integer or string or boolean or float

2.

What is the output of Name = print('Dave")

a)

dave

b)

"Dave"

c)

Syntax Error

d)

Dave

3.

What does The Type function do

a)

Outputs a certain sentence or word

b)

asks a user to insert asked data

c)

Defines what a number or word is between

string,Float,integer,boolean

4.

what would be the output of print(''Hello World")

a)

("Hello world")

b)

Hello World

Hello World

c)

"Hello World"

d)

Hello World

5.

What do we use to assign a value to a variable?

a)

+

b)

/

c)

==

d)

=

6.
What is the word (command) used to display numbers and text on the screen?
a)
print
b)
input
c)
output
d)
command
7.
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
8.
What is the name of the programming language we are learning?
a)
Scratch
b)
Python
c)
Pie thin
d)
Scribble
9.
What will be the output?
name = 'Dave'
print (name)
a)
Dave
b)
'Dave'
c)
name
d)
(name)
10.
Python is an example of a....
a)
Text-based programming language
b)
Object orientated programming language
c)
language written in java script
d)
Visual-based programming language
11.
What would print (10 + 16) produce?
a)
20
b)
22
c)
24
d)
26
12.

Which is the Python logo?

a)
b)
c)
d)
13.

What is a input?

a)

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

b)

To plug in something.

c)

Data displayed on a screen.

d)

A function

14.

What function is used to output a message in python?

a)

input=name

b)

print

c)

name=input

d)

Type

15.

x = 5

y = 6

print(x*y)


The code above displays the following:

a)

11

b)

x*y

c)

Syntax Error

d)

30

16.

To display the following on screen

Hello World!

the following command should be used:

a)

print(Hello World!)

b)

print("Hello World!")

c)

print("Hello World" + !)

d)

print"(Hello World!)"

17.

x = 5

y = 6

print(x*y)


The code above displays the following:

a)

11

b)

x*y

c)

Syntax Error

d)

30