WorksheetsSmall Basic Week 6 Pre-Quiz (Mod 2.1)
Total questions: 13
Worksheet time: 13mins
How do you read input from the user and store it in a variable?
input = TextWindow.Read()
input = TextWindow.GetText()
TextWindow.Read()
input = TextWindow.WriteLine()
name = TextWindow.Read()
Which part of this code is the variable?
Writeline
TextWindow
name
Read
Which of these is used to create images?
TextWindow
GraphicsWindow
To draw shapes in Small Basic you must first open a?
Graphics Window
Text Window
Variable Window
Image Window
Which of the following is not a Graphics Window Property or Operation?
PenColor
PenWidth
PenDirection
BackgroundColor
The output of this instruction is GraphicsWindow.FillRectangle(100,100,100,100)
The output of this instruction is GraphicsWindow.FillEllipse(100,100,100,100)
Circles and rectangles are the only shapes you can draw in a Graphics Window.
True
False
What is the output of this program if the condition is TRUE?
"Happy Birthday To You!!!"
Happy Birthday To You!!!
Error
No output
What is the output of this program if the condition is FALSE?
"Happy Birthday To You!!!"
Happy Birthday To You!!!
Error
No output
What is the output of this program if the user enters a 5?
That's a positive number!
That's a negative number!
Error
Bad Input
What is the output of this program if the user enters a 0?
That's a positive number!
That's a negative number!
Error
Bad input
Which of the following would display a box with a text message?
GraphicsWindow.ShowMessage
GraphicWindow.ShowText
GraphicsWindow.Message
GraphicWindow.Text
