wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Computer Programming 9 Review

Total questions: 10

Worksheet time: 6mins

Name
Class
Date
1.

What is the correct way to input a title into GraphicsWindow?

a)

TextWindow.AddTitle

b)

GraphicsWindow.CreateTitle

c)

GraphicsWindow.Title

d)

TextWindow.DisplayTitle

2.

Which kind of loops is used when there is a defined number of cycles?

a)

"Defined" Loop

b)

"For" Loop

c)

"While" Loop

d)

"Loop" Loop

3.

When using the SetOpacity function, an Opacity value of "100" will result in what type of image?

a)

A normal image

b)

No image

c)

A faded image (watermark)

d)

A smaller version of the original image

4.

When using the Zoom function in Small Basic, setting the Zoom level (or variable) to 0.1 will result in which of the following?

a)

The image will appear 10 times bigger than its original size

b)

The image will appear as it's original size

c)

The image will appear as 1/10th of it's original size

d)

The image will appear upside down

5.

In order to slow down programmed movement and effectively view animation in Microsoft Small Basic, which of the following functions do we utilize regularly in class?

a)

Program.Delay

b)

Animate.Watch

c)

Program.View

d)

Animate.Delay

6.

What combination of properties and functions would you use to draw a rectangle and fill it with a particular color?

a)

GraphicsWindow.DrawColor

GraphicsWindow.InputRectangle

GraphicsWindow.FillColor

GraphicsWindow.FillRectangle

b)

GraphicsWindow.PenColor

GraphicsWindow.AddRectangle

GraphicsWindow.BrushColor

GraphicsWindow.Paint

c)

GraphicsWindow.Move

GraphicsWindow.AddRectangle

GraphicsWindow.FillColor

GraphicsWindow.AddFill

d)

GraphicsWindow.PenColor

GraphicsWindow.DrawRectangle

GraphicsWindow.BrushColor

GraphicsWindow.FillRectangle

7.

When using the Turtle function to draw geometric shapes, an input of the following code will produce which geometric shape?

For i = 1 to 10

Turtle.move(100)

Turtle.Turn(60)

EndFor

a)

Triangle

b)

Square

c)

Hexagon

d)

Octagon

8.

To effectively move the Turtle function across GraphicsWindow without making any lines or drawings, you must use which command?

a)

Turtle.Turnoff

b)

Turtle.Penup

c)

Turtle.Nowrite

d)

Turtle.noline

9.

How many cycles does the following loop run for?

For i = 0 to 100 Step 10

Turtle.Move(100)

Turtle.Turn(90)

EndFor

a)

100 Cycles

b)

1 Cycles

c)

20 Cycles

d)

10 Cycles

10.

What is missing from the following code for an inputted image?


image = "C:\SmallBasic\water"

a)

Captalization of the text

b)

An extension on the end of the image path (.jpg)

c)

A set of brackets

d)

Nothing. The code was done correctly.