Understanding Variables in Programming

Understanding Variables in Programming

7th Grade

30 Qs

quiz-placeholder

Similar activities

Cyber Security - End of Unit test: Year 8 Quiz

Cyber Security - End of Unit test: Year 8 Quiz

7th Grade

30 Qs

Understanding Variables in Programming

Understanding Variables in Programming

Assessment

Quiz

Information Technology (IT)

7th Grade

Hard

Created by

John Heatley

Used 3+ times

FREE Resource

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a variable commonly used for in video games?

To display graphics

To track your score, health points or lives remaining

To play background music

To control the game speed

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where is a variable stored in a computer?

On the screen

In a memory location

On the hard drive only

In the printer

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Why does each variable need a unique name?

So you can easily find and use the data it holds

To make the programme run faster

To save storage space

To make the code look colourful

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What can happen to the data held by a variable during the running of a programme?

It always stays the same

It can change

It disappears

It becomes a file

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is NOT a real-world example of something that could be represented by a variable?

The temperature displayed on a weather app

A countdown timer in a game

The number of letters in the alphabet

The number of steps you take in a day

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is it called when a programme stores a value in a variable?

Calculation

Assignment statement

Looping

Outputting

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does an assignment statement do?

It solves equations

It stores or updates the value held by a variable

It prints text to the screen

It creates a new window

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?