wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Week 7 Quiz

Total questions: 10

Worksheet time: 11mins

Name
Class
Date
1.

What is a variable used for?

a)

Checking a condition

b)

Holding information

c)

Adding some text

d)

Changing the code

2.

Select as many types of variables as you know (use their correct name)

a)

String

b)

Word

c)

Integer

d)

Whole Number

e)

Float

3.

What is the correct definition of syntax?

a)

The text editor to write code

b)

The way we type so we can get the code written quickly

c)

The rules we follow when we write code so the computer can understand

d)

How long the computer thinks before it can write a new line of code

4.

A mobile phone number (e.g. 0431717564) should be stored as a:

a)

String

b)

Float

c)

Integer

d)

Boolean

5.

What is the difference between an integer and a float? Give an example of each.

4 lines
6.

Write the code to display "Happy Birthday" on the screen.

4 lines
7.

True or False: A boolean is a type of variable.

a)

True

b)

False

8.

How is data presented in a digital system?

a)

Text

b)

Images

c)

Binary

d)

Audio

9.

True or False: A vector image is used when needing to print a letterhead and a billboard.

a)

True

b)

False

c)

Maybe

10.

Convert 15 to Binary.

a)

1111

b)

1011

c)

101111

d)

11011