Search Header Logo
AP CSP Unit 5 Review: Lists, Loops and Traversals

AP CSP Unit 5 Review: Lists, Loops and Traversals

Assessment

Flashcard

Computers

9th - 12th Grade

Practice Problem

Hard

Created by

Wayground Content

Used 1+ times

FREE Resource

Student preview

quiz-placeholder

19 questions

Show all answers

1.

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;

2.

FLASHCARD QUESTION

Front

Consider the following flow chart showing a process for program execution. Given that a = 5, and b = 10, what will be displayed by the program?

Media Image

Back

10

3.

FLASHCARD QUESTION

Front

A Boolean expression is an expression that evaluates to which of the following? Yes/Maybe/No, True/False, Any Integer, Integers between 1 and 10, Any single character

Back

True/False

4.

FLASHCARD QUESTION

Front

What is the expected output of the given pseudo code segment? A reference for the pseudo code can be found immediately below the question

Media Image

Back

You are old enough to be President.

5.

FLASHCARD QUESTION

Front

Consider the following segment given in pseudo code. What will be displayed if grade is set to 70? Options: You passed! , Time to start studying again! , You passed! and Time to start studying again! , Nothing will be displayed , An error will occur on line 7; you cannot have an IF inside an ELSE statement

Media Image

Back

You passed!

6.

FLASHCARD QUESTION

Front

Consider the JavaScript code segment below. Which statement should be used in place of <missing code> such that the alarm is set to 9:00 am on weekends, and 6:30 am on weekdays? Options: day == "Saturday", day == "Sunday", (day == "Saturday") || (day == "Sunday"), (day == "Saturday") && (day == "Sunday"), day != "Monday"

Media Image

Back

(day == "Saturday") || (day == "Sunday")

7.

FLASHCARD QUESTION

Front

Media Image

Back

Media Image

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?