Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

G7_Unit1+2 Review_2

Total questions: 8

Worksheet time: 5mins

Name
Class
Date
1.

You are writing a software program that can calculate the distance between Earth and Mars. Why is the variable name "bln_distance" not a good name?

a)

You cannot use the underscore character in variable names

b)

You should have a number in the variable name

c)

bln stands for boolean and the variable will have to be a float

d)

The variable name is too long

2.
A data type consisting of numbers, letters and symbols.
a)
String
b)
Integer
c)
Float
d)
Boolean
3.

What is decomposition?

a)

Steps you follow to solve a problem

b)

A method used to break down problems into subproblems and smaller parts

c)

A place used in a program to store data that can change

d)

A method used to make problems bigger and put subproblems together

4.

You are planning on building a computer. If you decomposed the problem into subprograms, which subprograms below would be the best?

a)

1. Write down the specifications you want – 2. Buy the hardware – 3. Put the hardware together – 4. Install the software

b)

1. Create a computer - 2. Turn it on

c)

1. Build a computer

d)

1. Buy a computer – 2. Take the computer apart – 3. Lay out all the hardware

5.

What is a variable?

a)

A box(memory location) where you store values

b)

A type of graphics

c)

Data type

d)

Mathematical operator.

6.

What is pseudocode?

a)

It is code in the Python language

b)

It is a code you enter into a computer like a password

c)

It is an algorithm written in text like a programming language but without syntax or grammar rules

d)

It is the code for writing websites

7.
What is Python?
a)
text based programming language
b)
word processor 
c)
spreadsheet
d)
block based programming language
8.

Which of the following is an example of pseudocode?

a)

print("Hello, Zachariah!")

b)

Output the text "Hello Zachariah!"

c)

x = 3+2

d)

x = string(Zachariah)