Search Header Logo
Variables and Assignments

Variables and Assignments

Assessment

Presentation

Computers

9th - 12th Grade

Practice Problem

Medium

Created by

J. Moore

Used 9+ times

FREE Resource

1 Slide • 19 Questions

1

Multiple Choice

A variable is:

1

An Abstraction inside a program that can hold value.

2

An Abstraction inside a program that cannot hold value.

3

A value inside a program.

4

A program inside an abstraction that holds value.

2

Fill in the Blank

Using ______ _______ _________ helps with the readability of program code and understanding of what values are represented by the variables.

3

Fill in the Blank

A variable, is essentially likened to a ___.

4

Multiple Choice

A correct variable would be:

1

Is it raining

2

isRaining

5

Multiple Choice

A better variable name would be:

1

highestScoreinTheGame

2

highScore

6

Multiple Choice

A less than ideal variable name would be:

1

555-number

2

phoneNumber

7

Multiple Choice

Match the variable with the ideal data to store:

firstName

1

Boolean

2

integer

3

text(or string)

8

Multiple Choice

Match the variable with the ideal data to store:

highScore

1

Boolean

2

integer

3

text(or string)

9

Multiple Choice

Match the variable with the ideal data to store:

phoneNumber

1

Boolean

2

integer

3

text(or string)

10

Multiple Choice

Match the variable with the ideal data to store:

isRaining

1

Boolean

2

integer

3

text(or string)

11

Poll

What would I use to store the data for a movie title?

Boolean

text(or string)

integer

12

​Name the variable data type

13

Multiple Choice

isDog

1

integer

2

text (or string)

3

Boolean

14

Multiple Choice

studentID

1

integer

2

text (or string)

3

Boolean

15

Fill in the Blank

The assignment operator allows the program to ______ ___ _____ represented by a variable.

16

Multiple Choice

Question image

Which is the value?

1

100

2

highScore

17

Multiple Choice

If it were a 90% chance of rain in Tuscaloosa, my variable ( isRaining) would have the value:

1

it is raining

2

true

3

69south

4

tuscaloosa

18

Multiple Choice

The data for the variable firstName would be:

1

"S Nigel Tewth"

2

S Nigel Tewth

19

Multiple Choice

Question image
1

Display (num1) is 4

Display (num2) is 6

2

Display (num1) is 6

Display (num2) is 6

20

Multiple Choice

Question image
1

Display (num1) is 25

Display (num2) is 15

Display (num3) is 30

2

Display (num1) is 15

Display (num2) is 15

Display (num3) is 30

3

Display (num1) is 30

Display (num2) is 30

Display (num3) is 30

4

Display (num1) is 30

Display (num2) is 30

Display (num3) is 25

A variable is:

1

An Abstraction inside a program that can hold value.

2

An Abstraction inside a program that cannot hold value.

3

A value inside a program.

4

A program inside an abstraction that holds value.

Show answer

Auto Play

Slide 1 / 20

MULTIPLE CHOICE