AP Computer Science A Quiz
20 questions · no time limit
0:00
SELECTION AND ITERATION
Question 1 of 20
No time limit
Current
Answered
Flagged
Not seen
In bank account management, how does the code handle withdrawalAmount = 80?
// Allow withdrawal only if sufficient funds exist
int balance = 50;
int withdrawalAmount = 80;
if (withdrawalAmount <= balance) {
balance = balance - withdrawalAmount;
}
System.out.println(balance); 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