Intro To Variables

Intro To Variables

8th Grade

9 Qs

quiz-placeholder

Similar activities

Python Basic Unit 1

Python Basic Unit 1

7th - 8th Grade

14 Qs

J277 - 10QQ - Basic Python 1

J277 - 10QQ - Basic Python 1

8th - 10th Grade

10 Qs

Chapter 2 Python

Chapter 2 Python

8th Grade - University

13 Qs

Code.org CSD Unit 3 Lesson 5

Code.org CSD Unit 3 Lesson 5

6th - 8th Grade

8 Qs

Python 201 Lessons 2&3 Vocab

Python 201 Lessons 2&3 Vocab

6th - 8th Grade

12 Qs

Java - Assessment 1

Java - Assessment 1

8th Grade

10 Qs

Variables in Scratch

Variables in Scratch

2nd Grade - University

11 Qs

Python Programming

Python Programming

7th - 9th Grade

10 Qs

Intro To Variables

Intro To Variables

Assessment

Quiz

Computers

8th Grade

Hard

Created by

Raymond Ballard

FREE Resource

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is a variable?

A piece of information that changes in an app

A way to leverage a computer's memory

A container for storing a value

A label used to refer to a value in memory

2.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

How are variables stored in a computer's memory?

As labels

As values

As containers

As pieces of information

3.

MULTIPLE SELECT QUESTION

30 sec • 4 pts

Anika is writing a program and she needs to use a variable 'x'. Oliver suggests her to initialize 'x' before using it. Isla is curious and asks, what are the two purposes of initializing a variable 'x'?

To delete the variable 'x'

To update its value

To assign it a value

To create the variable 'x'

4.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the assignment operator in programming?

The minus sign (-)

The equal sign (=)

The plus sign (+)

The multiplication sign (*)

5.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

How can you display the value of a variable?

Using the assignment operator

Using the equal sign

Using quotes

Using console.log

6.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What happens if you refer to a variable that hasn't been created?

The variable is assigned a default value

The program crashes

The variable is automatically created

The computer gives an error

7.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the purpose of console.log?

To update the value of a variable

To display the value of a variable

To create a new variable

To delete a variable

8.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the difference between text in quotes and a variable label?

Text in quotes is a literal string, while a variable label refers to a value in memory

Text in quotes is a variable, while a variable label is a literal string

Text in quotes is a number, while a variable label is a string

Text in quotes is a value in memory, while a variable label is a literal string

9.

MULTIPLE CHOICE QUESTION

30 sec • 2 pts

What is the purpose of a variable in an app?

To perform calculations

To keep track of changing information

To display information on the screen

To store static information