WorksheetsSmall Basic Week 2 (mod 1.3) Pre-Quiz
Total questions: 13
Worksheet time: 13mins
What is a variable?
A location to store a value
A date
A time
None of the above
Variables can be used to store which of the following...
Numbers
Text
Both of these
Neither of these
What do you use to store a series of values (for example, student names or test results)?
Loop
Variable
Condition
Array
What operation do you use to check if an array contains a particular value?
Array.True
Array.ContainsValue
Array.Content
You cannot check an array for a particular value
Which of the following is required for a correctly named variable?
Start with a letter
Describes what is being stored
Uses no reserved words
All of the above
Which of these variables names uses the correct naming convention?
1Name
70
My Name
MyName
Which of the following will read any characters from the user?
TextWindow.Read()
TextWindow.ReadNumber()
TextWindow.WriteLine()
TextWindow.Write()
Which of the following will read a number from the user?
TextWindow.Read()
TextWindow.ReadNumber()
TextWindow.WriteLine()
TextWindow.Write()
What statement will write text on one line?
TextWindow.Read()
TextWindow.ReadNumber()
TextWindow.WriteLine()
TextWindow.Write()
What statement will write text then continue onto the next line?
TextWindow.Read()
TextWindow.ReadNumber()
TextWindow.WriteLine()
TextWindow.Write()
To multiply two values in Small Basic, which operator should you use?
**
*
x
X
How do you find the Area of a Rectangle?
2 * Length + 2 * Width
Length + Width
Length * Width
Length / Width
How do you find the Perimeter of a Rectangle?
2 * Length + 2 * Width
Length + Width
Length * Width
Length / Width
