Look at the code below. What is the value of total?
number1 = 15
number2 = 10
total = number1 + number2
Interactive 3.1: Using variables in calculations
Quiz
•
Computers
•
4th - 7th Grade
•
Hard
J Lewis
Used 2+ 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
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
10 questions
2023-24 - Y8 - Python Programming - Quiz 3
Quiz
•
7th Grade
11 questions
LESSON 5: CREATING ART WITH CODE
Quiz
•
7th Grade - University
10 questions
Python: Using Basic Formulas
Quiz
•
5th Grade
8 questions
Python Functions Test
Quiz
•
6th Grade
12 questions
Scratch Basics
Quiz
•
5th - 8th Grade
10 questions
Coding L5-What would happen?
Quiz
•
7th Grade
10 questions
PYTHON-CLASS1-QUIZ
Quiz
•
6th - 8th Grade
10 questions
MCQ LC1 Vocabulary
Quiz
•
5th - 10th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing
Quiz
•
9th - 12th Grade
10 questions
American Flag
Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
30 questions
Linear Inequalities
Quiz
•
9th - 12th Grade
20 questions
Types of Credit
Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
15 questions
Character Analysis
Quiz
•
4th Grade
20 questions
Reading Comprehension
Quiz
•
5th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25
Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers
Quiz
•
6th - 8th Grade
20 questions
Final Exam Vocabulary
Quiz
•
6th Grade
17 questions
Parts of Speech
Quiz
•
7th - 12th Grade
11 questions
Decimal/fraction conversions quick check
Quiz
•
5th - 7th Grade
10 questions
Identifying equations
Quiz
•
KG - University