Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

G8_Graphics Window_Drawing Lines

Total questions: 15

Worksheet time: 17mins

Name
Class
Date
1.

Gets or sets the color of the pen used to draw shapes on the Graphics Window.

a)

GraphicsWindow.PenColor

b)

GraphicsWindow.PenHue

c)

GraphicsWindow.PenHex

d)

GraphicsWindow.PenKulay

2.

Gets or sets the Background color of the Graphics Window.

a)

GraphicsWindow.BackgroundColor

b)

GraphicsWindow.ForeColor

c)

TextWindow.BackgroundColor

3.
What does the following code do?

GraphicsWindow.Height = 100
a)
Sets the graphics window to be 100 px high 
b)
Sets the graphics window to be 50 px high
c)
Sets the text window to be 100 px high
d)
Creates a graphics window
4.
What does the following code do?

GraphicsWindow.PenColor
a)
Changes the pen size 
b)
Changes the fill colour of a shape
c)
Changes the pen colour
d)
Creates a graphics window
5.
Which of these is used to create images?
a)
TextWindow
b)
GraphicsWindow
6.

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

a)

Graphics Window

b)

Text Window

c)

Variable Window

d)

Image Window

7.

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

a)

PenColor

b)

PenWidth

c)

PenDirection

d)

BackgroundColor

8.

Write the code to set the Title of the GraphicsWindow To (Quiz 3)

a)

GraphicsWindow.Title = " Quiz 3 "

b)

GraphicsWindow.Title = ( Quiz 3 )

c)

GraphicsWindow.Title ( Quiz 3 )

d)

GraphicsWindow.Title. Quiz 3

9.

The Code used to set the width of the GraphicsWindow To (300) is _________

a)

GraphicsWindow.Height = 300

b)

GraphicsWindow.PenWidth = 300

c)

GraphicsWindow.Width = 300

10.

To draw the Green Line, write the following code

a)

GraphicsWindow.Drawline (600 , 0 , 0 , 600 )

b)

GraphicsWindow.Drawline (600 , 0 , 300 , 300)

c)

GraphicsWindow.Drawline (0 , 300 , 600 , 300)

d)

GraphicsWindow.Drawline (300 , 0 , 300, 600)

11.

To draw the Black Line, write the following code

a)

GraphicsWindow.Drawline (600 , 0 , 0 , 600 )

b)

GraphicsWindow.Drawline (0 , 0 , 600 , 600)

c)

GraphicsWindow.Drawline (0 , 300 , 600 , 300)

d)

GraphicsWindow.Drawline (300 , 0 , 300, 600)

12.

This code will set the color of the pen used to draw shapes on the GraphicsWindow To (Red).

a)

GraphicsWindow.BackgroundColor = "Red"

b)

GraphicsWindow.ForegroundColor = "Red"

c)

GraphicsWindow.PenColor = "Red"

d)

GraphicsWindow.Color = "Red"

13.

This will set the width of the pen to be used to draw shapes on the GraphicsWindow To (20).

a)

GraphicsWindow.Width = 20

b)

GraphicsWindow.PenWidth = 20

c)

GraphicsWindow.PenHeight = 20

d)

GraphicsWindow.PenThickness = 20

14.

To draw the Red Line, write the following code

a)

GraphicsWindow.Drawline (600 , 0 , 0 , 600 )

b)

GraphicsWindow.Drawline (0 , 0 , 300 , 300)

c)

GraphicsWindow.Drawline (600 , 0 , 300 , 300)

d)

GraphicsWindow.Drawline (300 , 0 , 300, 600)

15.

This Code will show the GraphicsWindow to enable interactions with it.

a)

GraphicsWindow.Appear ( )

b)

GraphicsWindow.Display ( )

c)

GraphicsWindow.Show ( )

d)

GraphicsWindow.Open ( )