
Interactive 3.1: Using variables in calculations

Quiz
•
Computers
•
12th Grade
•
Hard

Jonathan Wharmby
Used 9+ times
FREE Resource
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
25
5
150
15
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
4
64
20
12
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.5
-0.15
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
15
7.4
10.6
8
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
3000
3020
1003
2020
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
25
15
20
10
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
30
40
25
50
Similar Resources on Wayground
12 questions
Java Strings

Quiz
•
9th - 12th Grade
12 questions
HTML & CSS

Quiz
•
10th - 12th Grade
10 questions
Computer Languages

Quiz
•
KG - University
10 questions
Code.org Unit 5 Vocab Quiz 1

Quiz
•
9th - 12th Grade
12 questions
Computer Science

Quiz
•
3rd - 12th Grade
12 questions
Functions With Return Values U1M2 Python

Quiz
•
9th - 12th Grade
6 questions
C# Programming

Quiz
•
9th - 12th Grade
12 questions
Introduction to programming

Quiz
•
12th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade