Search Header Logo

Unit 3A - Programming

Authored by Justin Loomis

Computers

9th - 12th Grade

Used 21+ times

Unit 3A - Programming
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

40 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

A variable is to be used to represent a person's first name. Which of the following is the most appropriate data type for this variable?

Boolean

String

Number

List

2.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

A variable is to be used to represent the state of a switch. The switch can be in one of two states: on or off. Which of the following is the most appropriate data type for this variable?

Boolean

String

Number

List

3.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

A variable is to be used to represent a person's height in inches. Which of the following is the most appropriate data type for this variable?

Boolean

String

Number

List

4.

FILL IN THE BLANK QUESTION

1 min • 5 pts

Consider the following code segment.

x ← 8

y ← 9

z ← 7

x ← y

z ← x

DISPLAY (z)

What is displayed as a result of executing the program?

5.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Consider the following code segment.

bob ← 12

jane ← 8

jane ← bob

bob ← 10

DISPLAY (bob)

DISPLAY (jane)

What is displayed as a result of executing the program?

10 10

10 12

12 8

10 8

6.

MULTIPLE SELECT QUESTION

45 sec • 5 pts

Which of the following are benefits of using descriptive variable names?

The code will compile faster.

The variables will use less memory

The program will be easier to read and understand

The program will be easier to debug and maintain

7.

MULTIPLE CHOICE QUESTION

30 sec • 5 pts

Which of the following values would be best represented as a Boolean value?

The roll of a die

The flip of a coin

A card drawn from a deck

A player's score

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?