Conditionals
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: if (x = 10) { y = 5; }
QUESTION
Identify the error: if (x > 0) { return true; } return false;
QUESTION
Identify the error: if (x = 5) { return true; }
Tap to flip before you grade
ANSWER
Replace '=' with '==' for comparison. Assignment operator '=' assigns value; '==' compares values.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card