wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

PythonProgramming

Total questions: 15

Worksheet time: 15mins

Name
Class
Date
1.
What is python?
a)
a programming language 
b)
DTP software 
c)
Spreadsheet software
d)
Computer 
2.

Which symbol represents the start/end of a program?

a)
b)
c)
d)
3.
Which Python statement will check to see if a is greater than b?
a)
if a > b:
b)
if (a > b)
c)
if a is greater than b
d)
if a >= b:
4.
What will the output be from the following code?
print(3+4)
a)
3+4
b)
7
c)
SyntaxError
d)
print(3+4)
5.
How do you display text?
a)
input
b)
output
c)
print
d)
variable 
6.
What will the output be from the following code?
print(Hello world!)
a)
Hello world!
b)
SyntaxError
c)
Hello world
d)
print(Hello world!)
7.

Which of the following is not an advantage of a flowchart?

a)

Better communication

b)

Efficient coding

c)

Systematic testing

d)

Improper documentation

8.

A box that can represent two different conditions.

a)

Rectangle

b)

Diamond

c)

Circle

d)

Parallelogram

9.

A is diagram that depicts the flow of a program.

a)

Algorithm

b)

Hash Table

c)

Graph

d)

Flowchart

10.

The following symbol denotes:

a)

Module

b)

Terminal

c)

Process

d)

i/o operation

11.

What type of structure is this?

a)

sequence

b)

case

c)

repetition

d)

process

12.

What type of a structure is this?

a)

sequence

b)

case

c)

repetition

d)

Process

13.

Which of the following is not a keyword?

a)

Read

b)

Write

c)

start

d)

endif

14.

begins with lower case letters.

a)

Keywords

b)

Variables

c)

Tokens

d)

Functions

15.

Which of the following is incorrect? Algorithms can be represented:

a)

as pseudo codes

b)

as syntax

c)

as programs

d)

as flowcharts