Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Small Basic Week 6 Pre-Quiz (Mod 2.1)

Total questions: 13

Worksheet time: 13mins

Name
Class
Date
1.

How do you read input from the user and store it in a variable?

a)

input = TextWindow.Read()

b)

input = TextWindow.GetText()

c)

TextWindow.Read()

d)

input = TextWindow.WriteLine()

2.

name = TextWindow.Read()

Which part of this code is the variable?

a)

Writeline

b)

TextWindow

c)

name

d)

Read

3.

Which of these is used to create images?

a)

TextWindow

b)

GraphicsWindow

4.

To draw shapes in Small Basic you must first open a?

a)

Graphics Window

b)

Text Window

c)

Variable Window

d)

Image Window

5.

Which of the following is not a Graphics Window Property or Operation?

a)

PenColor

b)

PenWidth

c)

PenDirection

d)

BackgroundColor

6.

The output of this instruction is GraphicsWindow.FillRectangle(100,100,100,100)

a)
b)
c)
d)
7.

The output of this instruction is GraphicsWindow.FillEllipse(100,100,100,100)

a)
b)
c)
d)
8.

Circles and rectangles are the only shapes you can draw in a Graphics Window.

a)

True

b)

False

9.

What is the output of this program if the condition is TRUE?

a)

"Happy Birthday To You!!!"

b)

Happy Birthday To You!!!

c)

Error

d)

No output

10.

What is the output of this program if the condition is FALSE?

a)

"Happy Birthday To You!!!"

b)

Happy Birthday To You!!!

c)

Error

d)

No output

11.

What is the output of this program if the user enters a 5?

a)

That's a positive number!

b)

That's a negative number!

c)

Error

d)

Bad Input

12.

What is the output of this program if the user enters a 0?

a)

That's a positive number!

b)

That's a negative number!

c)

Error

d)

Bad input

13.

Which of the following would display a box with a text message?

a)

GraphicsWindow.ShowMessage

b)

GraphicWindow.ShowText

c)

GraphicsWindow.Message

d)

GraphicWindow.Text