Calling Procedures
AP Computer Science Principles · Flashcards · Application
AP COMPUTER SCIENCE PRINCIPLES · FLASHCARDS
Card 1
of 7
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the error: 'def add(a, b): print(a + b)' when expecting return.
QUESTION
Find and correct the error: 'def myFunc(x, y) return x + y'
QUESTION
Identify the error in: 'def add(x, y): return x + y; print(add(3))'
Tap to flip before you grade
ANSWER
Missing one argument in 'add(3)'. Function expects two arguments but only receives one.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card