wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Python as a Programming Language Y7

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

We can use the ___________ function to display a statement on the screen

a)

print

b)

printline

c)

input

d)

run

2.

Write the function that can be used to display the statement "Good morning"

a)

print(Good morning)

b)

print("Good morning")

c)

print("Good morning

d)

Print "Good morning"

3.

To write a computer program, we use a____________

a)

programming language

b)

software

c)

hardware

d)

application

4.

A program is made up of set ____________that tells the computer what to do

a)

programs

b)

instructions

c)

software

d)

applications

5.

Give me examples of programming language

a)

Python

b)

Microsoft word

c)

Microsoft excel

d)

Windows

6.

Python is an example of a ____________

a)

programming language

b)

languages

c)

programs

d)

instructions

7.

There are many programming languages that we can use. Some examples of programming languages are:
(Select more than one option)

a)


Python

b)

Microsoft word

c)

Java

d)

Operating system

8.

What instruction do you type in the Python to output the phrase "Programming in Python"

a)

print("Programming in Python")

b)

print programming in python

c)

"Programming in Python"

9.

How can you use variables to multiply x=4 and y=5 in Python and display the result z?

a)

x = 4

y = 5

z = x * y

print(z)

b)

x = 4

y = 5

print(z)

c)

x = 4

y = 5

z = x * y



10.

Using the variables a = 8 and b = 2, assign the difference of a and b
to a new variable c. Then print the value of c

a)

a= 8

b=2

c=a-b

print(c)

b)

a= 8

b=2

print(c)

c)

a= 8

b=2

c=a-b