Scope and Access
AP Computer Science A · Flashcards · Application
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 9
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the error: 'class A { private int x; } public class B extends A { x = 5; }'
QUESTION
Identify the error: 'int x; x++;'
QUESTION
Find the error: 'int x = 5; System.out.println(y);'
Tap to flip before you grade
ANSWER
Variable 'y' is not declared. Variable y was never declared before being used.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card