7:51 1 question: Question 4 Consider the following Python program (note that Python uses indentation to specify scope): x - 1; y - 3; z - 5; def subl() : 010 020 030 040 050 060 a - 7; y - 9; 2 - 11;...


7:51 1<br>question: Question 4<br>Consider the following Python program (note<br>that Python uses indentation to specify scope):<br>x - 1;<br>y - 3;<br>z - 5;<br>def subl() :<br>010<br>020<br>030<br>040<br>050<br>060<br>a - 7;<br>y - 9;<br>2 - 11;<br># BODY OF SUB1<br>070<br>080<br>090<br>100<br>110<br>def sub2 () :<br>global x;<br>a = 13;<br>x = 15;<br>w = 17;<br>120<br>130<br>140<br># BODY OF SUB2<br>def sub3 () :<br>150<br>160<br>170<br>180<br>nonlocal a;<br>a - 19;<br>b = 21;<br>z - 23;<br>190<br>200<br># BODY OF SUB3<br>Identify the variables that would be available<br>for assignment at BODY OF SUB2 (give the.<br>name and the line number where the name-<br>address binding is created).<br>Group of answer choices<br>x with binding created in 10<br>y with binding created in 20<br>z with binding created in 30<br>a with binding created in 50<br>y with binding created in 60<br>z with binding created in 70<br>x with binding created in 100<br>a with binding created in 110<br>x with binding created in 120<br>w with binding created in 130<br>a with binding created in 160<br>a with binding created in 170<br>b with binding created in 180<br>z with binding created in 190<br>

Extracted text: 7:51 1 question: Question 4 Consider the following Python program (note that Python uses indentation to specify scope): x - 1; y - 3; z - 5; def subl() : 010 020 030 040 050 060 a - 7; y - 9; 2 - 11; # BODY OF SUB1 070 080 090 100 110 def sub2 () : global x; a = 13; x = 15; w = 17; 120 130 140 # BODY OF SUB2 def sub3 () : 150 160 170 180 nonlocal a; a - 19; b = 21; z - 23; 190 200 # BODY OF SUB3 Identify the variables that would be available for assignment at BODY OF SUB2 (give the. name and the line number where the name- address binding is created). Group of answer choices x with binding created in 10 y with binding created in 20 z with binding created in 30 a with binding created in 50 y with binding created in 60 z with binding created in 70 x with binding created in 100 a with binding created in 110 x with binding created in 120 w with binding created in 130 a with binding created in 160 a with binding created in 170 b with binding created in 180 z with binding created in 190

Jun 01, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here