Unit 4 - Variables, Conditionals, Functions

Unit 4 - Variables, Conditionals, Functions

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

20 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What will be the order of letters printed to the console when this program is run? Options: a b c, a b c b c b c, a b c b c, a b c a

Media Image

Back

a b c b c

2.

FLASHCARD QUESTION

Front

This function chooses the screen to display based on the score. What is the correct way to call this function?

Media Image

Back

Media Image

3.

FLASHCARD QUESTION

Front

What will the value of the variable bags be at the end of the flowchart shown here?

Media Image

Back

2

4.

FLASHCARD QUESTION

Front

Choose the correct definition for Conditional Statement.

Back

affects the sequential flow of control by executing different statements based on the value of a Boolean expression

5.

FLASHCARD QUESTION

Front

What number will be output by the console.log command on line 7? Options: 10, 100, 20, 200

Media Image

Back

100

6.

FLASHCARD QUESTION

Front

This flowchart is used by an apartment rental Web site to set the variable "include" to "true" for apartments that meet certain criteria.

Media Image

Back

Media Image

7.

FLASHCARD QUESTION

Front

The variable age is to be used to represent a person’s age, in years. Which of the following is the most appropriate data type for age? boolean, number, string, list

Back

number

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?