Which of the following is an example of a "runtime error"?
Which of the following is an example of a "runtime error"?
I. Karel crashing into a wall
II. Leaving a colon off the end of a function definition
III. Using the wrong syntax in an if/else statement
IV. Not closing all open parenthesis
O I
O I and III
O II and IV
O I-IV, all
Question 2:
If the following program is supposed to put down three tennis balls, where is the logic error?
1 def place_three_balls():
2 for i in range(3):
3 put_ball()
4
5 placeThreeBalls()
O Line 1
O Line 2
O Line 3
O Line 5

info@snapandsolve.com