Fall Semester Final - CS Principles

Fall Semester Final - CS Principles

Assessment

Flashcard

Other

11th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

25 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What number will be output by the console.log command on line 5?

Media Image

Back

35

2.

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

3.

FLASHCARD QUESTION

Front

There is repeated code in these onEvent blocks. Choose the correct code for the updateScreen() function which would be called in each of the onEvent blocks.

Media Image

Back

Media Image

4.

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

5.

FLASHCARD QUESTION

Front

A movie theater charges different ticket prices based on a customer's age. The prices are shown in the table below.
Age Ticket Price
12 and younger $5
13 to 64 $8
65 and older $6

The customer's age is stored in the variable age and the price is stored in the variable price. Which piece of code will correctly decide the price for each ticket?

Back

Media Image

6.

FLASHCARD QUESTION

Front

What is the final output of the program? Options: Less than 6, Less than 7, Less than 10, 10 or more

Media Image

Back

10 or more

7.

FLASHCARD QUESTION

Front

What is the correct answer? Options: 13, 17, 19, 16

Media Image

Back

17

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?