Program Design and Development
AP Computer Science Principles · Flashcards · Application
AP COMPUTER SCIENCE PRINCIPLES · FLASHCARDS
Card 1
of 8
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the error: 'int x = 10; float y = x / 0;'
QUESTION
Identify the error: 'if (x = 10)'
QUESTION
Identify the error: 'while(x > 0); { x--; }'
Tap to flip before you grade
ANSWER
Remove ';' after the condition. Semicolon creates empty loop body, preventing intended execution.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card