
AP CSP Unit 5 Review: Lists, Loops and Traversals
Flashcard
•
Computers
•
9th - 12th Grade
•
Practice Problem
•
Hard
Wayground Content
Used 1+ times
FREE Resource
Student preview

19 questions
Show all answers
1.
FLASHCARD QUESTION
Front
What code should Jasmine insert where it says
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?