
Quiz on Variables and Arrays
Authored by Josh Belcher
Computers
7th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How do you create a variable named score and set it to 10 in Small Basic?
`score == 10`
`score = 10`
`var score = 10`
`define score 10`
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the variable age represent after this line of code?
age = 7 + 5
The value assigned to age is 7
The value assigned to age is 5
The value assigned to age is 75
The value assigned to age is 12
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
After this line of code:
name = "Alice"
What type of value does the variable name hold?
A number
A Boolean value
The text Alice
Nothing, this is invalid
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A student writes the following code: ``` length = 10 width = 5 area = length * width ``` Which variable stores the result of multiplying length and width?
length
area
width
result
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main purpose of a variable in Small Basic?
It permanently stores a value that can never be changed
It stores a value that can be used and changed while the program runs
It only stores text values
It is used only for mathematical calculations
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What value will be shown after running this code? ``` colour = "Blue" colour = "Red" TextWindow.WriteLine(colour) ```
Blue
BlueRed
Red
An error message
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A student wants to store their favourite number in a variable. They write:
```
favouriteNumber = 6
```
What is the value stored in favouriteNumber?
6
62
8
12
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?