wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Programming in Python

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is a programming language?

a)

Written English

b)

An artificial language used to program a computer

c)

A language used in pseudocode

d)

Machine code

2.

What is a program?

a)

A series of a step-by-step instructions that tell a computer how to solve a task

b)

A video that is watched on a computer

c)

A flowchart written on a computer

d)

The make and model of a computer

3.

What does the print command do?

a)

Outputs a hard copy of a program to a printer

b)

Outputs a message on screen

c)

Print a hard copy of a flow chart to a printer

d)

Prints out the the commands line by line on the screen

4.

How do we get user input from the keyboard?

a)

input = (What is your name?)

b)

input = What is your name?

c)

output = ("What is your name?")

d)

input("What is your name? ")

5.

Which data type is the most suited to store a telephone number in a variable?

a)

string

b)

integer

c)

float

d)

boolean

6.

Which data type would you use for the quantity of stock in a shop?

a)

integer

b)

float

c)

string

d)

boolean

7.

If you want to change the data type to an integer which line of code would you use?

a)

int ("How much pocket money do you have?")

b)

input("How much pocket money do you have?")

c)

int(input("How much pocket money do you have?"))

d)

int = ("How much pocket money do you have?")

8.

What is an instruction?

a)

A box in a flowchart

b)

A calculation performed in a programming language

c)

One or more statements grouped together to instruct the computer to perform a task

d)

A separate file that has information on how to install the program

9.

What is a statement?

a)

A calculation performed in a programming language

b)

A box in a flow chart

c)

A keyword in a programming language

d)

A printout of the program

10.

How many statements are in this line of code?

print("If I do well in computing, I will find most subjects easy")

a)

2 - print and if

b)

0 - there are no statements

c)

1 - print