NEW
Font size
WorksheetsVariables and Command (Task 3) Quiz
Total questions: 22
Worksheet time: 11mins
What is Small Basic?
A language for web development
A language for advanced programmers
A complex programming language
A programming language for beginners
What are the two main categories of variables in programming?
Numbers and Text
Letters and Symbols
Colors and Shapes
Functions and Loops
What is the purpose of using variables in programming?
To make calculations and store data
To browse the internet
To create graphics
To play music
What is the correct syntax for assigning a value to a variable in Small Basic?
VariableName : Value
VariableName = Value
Value : VariableName
Value = VariableName
What command is used to get text input from the user in Small Basic?
TextWindow.Show()
TextWindow.Read()
TextWindow.Write()
TextWindow.Remove()
What is the purpose of the 'Else' keyword in programming?
To display output
To provide an alternative condition
To end the program
To start a loop
What is the purpose of branching in programming?
To jump to a different command
To display messages
To repeat a set of instructions
To check for errors
What is the correct syntax for a loop in Small Basic?
For i = 1 To 10
Loop i = 1 To 10
Repeat i = 1 To 10
While i = 1 To 10
What is the purpose of using loops in programming?
To repeat a set of instructions
To display text on the screen
To get user input
To end the program
What is a logical error in programming?
A mistake in the design or sequence of commands
A syntax error
An error in typing variables
An error in the output
What is the correct way to join two strings in Small Basic?
fullname = name + " " + surname
fullname = name + surname
fullname = name, surname
fullname = name - surname
What is the purpose of the 'If' keyword in programming?
To define a condition
To end the program
To display output
To start a loop
What is the correct way to calculate Celsius from Fahrenheit in Small Basic?
celsius = 5 * (fahrenheit - 32) / 9
celsius = (fahrenheit - 32) * 5 / 9
celsius = 9 * (fahrenheit - 32) / 5
celsius = (fahrenheit - 32) / 5 * 9
What is the purpose of the 'Step' keyword in a loop?
To get user input
To display output
To end the loop
To specify the increment value
What is the correct way to display a number on the screen in Small Basic?
TextWindow.Display(Boys)
TextWindow.Print(Boys)
TextWindow.ShowNumber(Boys)
TextWindow.WriteLine(Boys)
What is the correct syntax for defining a function in Small Basic?
FunctionName : Parameters
FunctionName = Parameters
Parameters : FunctionName
Parameters = FunctionName
What is the purpose of using arrays in programming?
To store multiple values under a single variable
To perform mathematical calculations
To display text on the screen
To end the program
What is the purpose of using functions in programming?
To store multiple values under a single variable
To repeat a set of instructions
To perform mathematical calculations
To end the program
What is the correct syntax for a conditional statement in Small Basic?
If condition Then
Else condition
End If
Else If condition Then
What is the purpose of using comments in programming?
To repeat a set of instructions
To provide explanations and make code more readable
To store multiple values under a single variable
To end the program
What is the purpose of the 'Else If' keyword in programming?
To provide an alternative condition
To display output
To end the program
To start a loop
What is the purpose of the 'For' loop in programming?
To repeat a set of instructions a specific number of times
To provide an alternative condition
To end the program
To start a loop
