Developing Procedures
AP Computer Science Principles · Flashcards · Application
AP COMPUTER SCIENCE PRINCIPLES · FLASHCARDS
Card 1
of 10
0 got it
0 to review
Current
Got it
Still learning
Not seen
QUESTION
Identify the error: def hello(name) print('Hello, ' + name)
QUESTION
Identify the error: def greet(): print('Hello') return
QUESTION
Find the error: def subtract(a, b): print(a - b) return
Tap to flip before you grade
ANSWER
No error; syntax is correct. Valid procedure with side effect and empty return.
Swipe → got it · swipe ← still learning
Got it
Still learning
Flip Card
Previous card
Next card