Question: 4. Consider the following Python program: 1 def H(a) b*= a 4: def G(a): 5: 6: global hb b+= a 7: def F(c) 8: global

 4. Consider the following Python program: 1 def H(a) b*= a

4. Consider the following Python program: 1 def H(a) b*= a 4: def G(a): 5: 6: global hb b+= a 7: def F(c) 8: global b 10: b=10 11: F (7) 12: G(-20) 13: H(20) 14: print b (a) Using the line numbers specified, list the order in which the statements are executed. b) What is the value of the variable b after executing line 11? (c) What is the value of the variable b after executing line 12? (d) What is the output generated by the program? List the formal paran theoga above. (f) List the actual parameters in the program above

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!