Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

PYTHON PROGRAMMING BASICS

Total questions: 13

Worksheet time: 6mins

Name
Class
Date
1.

Why did Guido van Rossum call his programming language Python?

a)

He thinks Pythons were cool

b)

He couldn't think of anything else

c)

A friend suggested it

d)

He loves Monty Python

2.

What do we use at the start of a comment line?

a)

@

b)

#

c)

"

d)

*

3.

Which of these isn't a Python variable type?

a)

Integer

b)

String

c)

List

d)

Decimal

4.

Which of these is true?

a)

A syntax error will stop a program running

b)

A logic error will stop a program running

c)

A syntax error will let the program run but may have unexpected outcomes

d)

The program will always show an error message for a logic error

5.

What does != represent?

a)

Possibly equal to

b)

Not equal to

c)

Check for error

d)

Don't assign a value

6.
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
7.

Which operator performs a division?

a)

-

b)

+

c)

/

d)

*

8.

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!)"

9.

To display something on the screen, use this command:

a)

print()

b)

Print()

c)

screen()

d)

write()

e)

display()

10.
What is Python really?
a)
Python is an interpreted language.
b)
visual basic
c)
a snake 
d)
a form of font for writing 
11.
what are the advantages of python?
a)
free and open source 
b)
can do the work for you 
c)
easy 
12.
what is 8%2
a)
0
b)
16
c)
24
d)
86
13.
what is python?
a)
a programming language 
b)
a code 
c)
nothing 
d)
a game