Interactive 3.1: Using variables in calculations

Interactive 3.1: Using variables in calculations

12th Grade

7 Qs

quiz-placeholder

Similar activities

Phyton  Review Lesson 1-10

Phyton Review Lesson 1-10

12th Grade - Professional Development

5 Qs

Programação em C

Programação em C

10th - 12th Grade

10 Qs

H446 1.2 Revision Quiz

H446 1.2 Revision Quiz

12th Grade

9 Qs

Search for Content on Methods in Java

Search for Content on Methods in Java

10th - 12th Grade

5 Qs

Functions_Finals

Functions_Finals

12th Grade

10 Qs

026. A - G Extra Help

026. A - G Extra Help

9th - 12th Grade

7 Qs

Control Structures - Selection in Python

Control Structures - Selection in Python

8th Grade - University

11 Qs

Java Methods & Constructors

Java Methods & Constructors

10th - 12th Grade

11 Qs

Interactive 3.1: Using variables in calculations

Interactive 3.1: Using variables in calculations

Assessment

Quiz

Computers

12th Grade

Hard

Created by

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

Discover more resources for Computers