Question: Demonstrate debugging conditional statements while executing code. 1 grade = 7 1 2 if grade > 9 0 : 3 print ( You got

Demonstrate debugging conditional statements while executing code.
1 grade =71
2 if grade >90:
3 print("You got an A")
4 elif grade >80:
5 print("You got a B")
6 elif grade >70:
7 print("You got a C")
8 elif grade >60:
9 print("You got a D")
10 elif grade <=60:
11 print("You got a F")
12 print("We are done!")
In order to debug every possible path in the example code, a breakpoint would need to be set on which line numbers?
a.)
2,4,6,8,10
b.)
1,3,5,7,9
c.)
4,5,6
d.)
2,9

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!