Methods: How to Write Them
AP Computer Science A · Flashcards · Application
AP COMPUTER SCIENCE A · FLASHCARDS
Card 1
of 10
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the error: 'public void print() { System.out.println('Hello'); }'
QUESTION
How do you call a method named 'compute' with no parameters?
QUESTION
Which option correctly calls a method named 'display' with an int parameter?
Tap to flip before you grade
ANSWER
display(5). Proper method call syntax with parentheses and argument.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card