AP Computer Science Principles Quiz
20 questions · no time limit
0:00
ALGORITHMS AND PROGRAMMING
Question 1 of 20
No time limit
Current
Answered
Flagged
Not seen
If isMember is true and total is 100 during seasonal sale, what is the discount?
// Online Shopping Cart discount rules
IF isMember
IF total >= 100
IF isSeasonalSale
discount = 20
ELSE
discount = 15
ELSE
discount = 5
ELSE
IF total >= 150
IF isSeasonalSale
discount = 10
ELSE
discount = 0
ELSE
discount = 0
YOUR PROGRESS
20
QUESTIONS
Ready when you are
Answer in any order. Your progress shows here as you go.
QUESTIONS
KEYBOARD
Pick an answer ABCD
Next question ↵→
Previous ←
Flag for review F
Answers save as you go · flagged questions come back at the end