Nested if Statements
AP Computer Science A · Flashcards · Application
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 4
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the error: if (x > 5) { if (y < 5) { z = 0;} else { z = 1; }
QUESTION
Identify the error: if (a > 0) if (b > 0) c = 1; else c = 2;
QUESTION
Identify the error: if (x != 0) { if (y == 0) z = 1; else z = 2; }
Tap to flip before you grade
ANSWER
No error, this is correct syntax. The syntax and logic are both correct.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card