Understanding Variables and Expressions in Programming

Understanding Variables and Expressions in Programming

Assessment

Interactive Video

Computers

6th - 8th Grade

Hard

Created by

Jennifer Brown

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the result of the expression 'new score = score + 100' if the current value of 'score' is 50?

200

150

100

50

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a game, if a player's score is 7 and they collect a coin, what will the new score be?

6

7

8

9

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the process of changing a variable's value based on its current value called?

Variable initialization

Variable reassignment

Variable declaration

Variable destruction

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If 'a' and 'b' both start with a value of 2, and 'a' is updated to 'a + b', what will be the new value of 'a'?

2

3

4

5

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

After updating 'a' to 'a + b', if 'b' is then updated to 'a + b', what will be the final value of 'b'?

4

6

7

5