
Interactive 3.1: Using variables in calculations
Authored by J Lewis
Computers
4th - 7th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code below. What is the value of total?
number1 = 15
number2 = 10
total = number1 + number2
5
25
15
150
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code below.
What is the value of marblesEach?
marbles = 16
people = 4
marblesEach = marbles / people
20
12
4
64
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code below.
What is the value of change?
sweets = 0.45
crisps = 0.6
money = 1.2
change = money – (sweets + crisps)
0.5
0.15
-0.15
-0.5
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code below.
What is the value of totalCost?
fish = 1.9
chips = 1.1
numberBought = 5
totalCost = (fish + chips) * numberBought
8
15
7.4
10.6
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code below.
What is the value of totalIncProfit?
profitMargin = 0
totalIncProfit = 0
total = 1000
profitMargin = total * 2
totalIncProfit = total + profitMargin
2020
3020
1003
3000
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code below.
What is the value of num2 if total = 35?
num1 = 10
total = num 1 + num2
15
20
10
25
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Look at the code below.
What is the value of num2 if share = 20?
num1 = 10
total = num1 + num2
share = total / 3
25
50
40
30
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?
Similar Resources on Wayground
10 questions
Virus Informáticos
Quiz
•
1st - 10th Grade
11 questions
Gr3-Scratch - Revision
Quiz
•
3rd - 5th Grade
10 questions
Spring Break Computer Science Game
Quiz
•
6th - 8th Grade
12 questions
SMS CS Q1 post-test
Quiz
•
6th - 8th Grade
10 questions
G(5) - Reuse or repurpose
Quiz
•
5th Grade
11 questions
Snap! Basics
Quiz
•
7th Grade
10 questions
Scratch Quiz
Quiz
•
4th - 6th Grade
10 questions
Quick Revision Term3
Quiz
•
7th Grade
Popular Resources on Wayground
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
15 questions
Valentine's Day Trivia
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
Discover more resources for Computers
7 questions
History of Valentine's Day
Interactive video
•
4th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
10 questions
Exploring Valentine's Day with Charlie Brown
Interactive video
•
6th - 10th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
12 questions
Presidents' Day
Quiz
•
KG - 5th Grade