AP CSP Unit 5 Review: Lists, Loops and Traversals

AP CSP Unit 5 Review: Lists, Loops and Traversals

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

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;

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?

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

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

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"

Back

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

7.

FLASHCARD QUESTION

Front

Back

Media Image

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?