Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Small Basic Week 2 (mod 1.3) Pre-Quiz

Total questions: 13

Worksheet time: 13mins

Name
Class
Date
1.

What is a variable?

a)

A location to store a value

b)

A date

c)

A time

d)

None of the above

2.

Variables can be used to store which of the following...

a)

Numbers

b)

Text

c)

Both of these

d)

Neither of these

3.

What do you use to store a series of values (for example, student names or test results)?

a)

Loop

b)

Variable

c)

Condition

d)

Array

4.

What operation do you use to check if an array contains a particular value?

a)

Array.True

b)

Array.ContainsValue

c)

Array.Content

d)

You cannot check an array for a particular value

5.

Which of the following is required for a correctly named variable?

a)

Start with a letter

b)

Describes what is being stored

c)

Uses no reserved words

d)

All of the above

6.

Which of these variables names uses the correct naming convention?

a)

1Name

b)

70

c)

My Name

d)

MyName

7.

Which of the following will read any characters from the user?

a)

TextWindow.Read()

b)

TextWindow.ReadNumber()

c)

TextWindow.WriteLine()

d)

TextWindow.Write()

8.

Which of the following will read a number from the user?

a)

TextWindow.Read()

b)

TextWindow.ReadNumber()

c)

TextWindow.WriteLine()

d)

TextWindow.Write()

9.

What statement will write text on one line?

a)

TextWindow.Read()

b)

TextWindow.ReadNumber()

c)

TextWindow.WriteLine()

d)

TextWindow.Write()

10.

What statement will write text then continue onto the next line?

a)

TextWindow.Read()

b)

TextWindow.ReadNumber()

c)

TextWindow.WriteLine()

d)

TextWindow.Write()

11.

To multiply two values in Small Basic, which operator should you use?

a)

**

b)

*

c)

x

d)

X

12.

How do you find the Area of a Rectangle?

a)

2 * Length + 2 * Width

b)

Length + Width

c)

Length * Width

d)

Length / Width

13.

How do you find the Perimeter of a Rectangle?

a)

2 * Length + 2 * Width

b)

Length + Width

c)

Length * Width

d)

Length / Width