Unit 5 AP CSP Code.org

Unit 5 AP CSP Code.org

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

FREE Resource

Student preview

quiz-placeholder

30 questions

Show all answers

1.

FLASHCARD QUESTION

Front

.

Media Image

Back

Media Image

2.

FLASHCARD QUESTION

Front

What code should Jasmine insert where it says in order for her app to work? Options: cart total = 1; , cartTotal + 1; , cartTotal = cartTotal +1; , var cartTotal = cartTotal + 1; , var cartTotal + 1;

Media Image

Back

cartTotal = cartTotal +1;

3.

FLASHCARD QUESTION

Front

Jose is writing a reply function for a text messaging app. He'd like to swap the sender and receiver so that the value currently in variable From ends up as the value in To and To ends up in From. Which code segments will correctly swap the values?

Media Image

Back

Media Image

4.

FLASHCARD QUESTION

Front

Which of the following images is the most likely outcome of the drawing?

Media Image

Back

Media Image

5.

FLASHCARD QUESTION

Front

What is displayed by the console.log statement after the following code segment executes?

Media Image

Back

value is: 4

6.

FLASHCARD QUESTION

Front

A student decides to draw a series of three dots (sort of like a snowman) as shown in the diagram. She wants each dot to be half the radius of the previous dot, and for the center to be on the edge of the dot below it. She writes the following code segment to do it.

Media Image

Back

Media Image

7.

FLASHCARD QUESTION

Front

What is the output to the console after the following code segment is executed?

Media Image

Back

Error. Unknown Identifier: x

Create a free account and access millions of resources

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?