<?xml version="1.0" ?>
<quiz>
<question type="category">
<category>
<text> $course/Quizzes-201730/$Quiz 8/</text>
</category>
</question>
<question type="description">
<name><text><![CDATA[001 Read the document <a href="http://www.rose-hulman.edu/class/csse/csse120/VideoFiles/08.1-RangeExpressions/RangeExpressions.pdf" target=newtab>Python's range expression</a>, doing the next set of questions while you do so.]]></text></name>
<questiontext format="html">
<text><![CDATA[Read the document <a href="http://www.rose-hulman.edu/class/csse/csse120/VideoFiles/08.1-RangeExpressions/RangeExpressions.pdf" target=newtab>Python's range expression</a>, doing the next set of questions while you do so.]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
</question>
<question type="description">
<name><text><![CDATA[002 For the next several questions, consider the following snippet of code: <pre>  for k in range(500): <br>      print(k) </pre>]]></text></name>
<questiontext format="html">
<text><![CDATA[For the next several questions, consider the following snippet of code: <pre>  for k in range(500): <br>      print(k) </pre>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
</question>
<question type="shortanswer">
<name><text><![CDATA[003 What is the <em>first</em> number that the above loop prints?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the <em>first</em> number that the above loop prints?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[0]]></text>
</answer>
</question>
<question type="shortanswer">
<name><text><![CDATA[004 What is the <em>last</em> number that the above loop prints?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the <em>last</em> number that the above loop prints?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[499]]></text>
</answer>
</question>
<question type="shortanswer">
<name><text><![CDATA[005 How many numbers does the above loop print?]]></text></name>
<questiontext format="html">
<text><![CDATA[How many numbers does the above loop print?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[500]]></text>
</answer>
</question>
<question type="description">
<name><text><![CDATA[006 For the next several questions, consider the following snippet of code: <pre>  for k in range(300, 700): <br>      print(k) </pre>]]></text></name>
<questiontext format="html">
<text><![CDATA[For the next several questions, consider the following snippet of code: <pre>  for k in range(300, 700): <br>      print(k) </pre>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
</question>
<question type="shortanswer">
<name><text><![CDATA[007 What is the <em>first</em> number that the above loop prints?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the <em>first</em> number that the above loop prints?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[300]]></text>
</answer>
</question>
<question type="shortanswer">
<name><text><![CDATA[008 What is the <em>last</em> number that the above loop prints?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the <em>last</em> number that the above loop prints?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[699]]></text>
</answer>
</question>
<question type="shortanswer">
<name><text><![CDATA[009 How many numbers does the above loop print?]]></text></name>
<questiontext format="html">
<text><![CDATA[How many numbers does the above loop print?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[400]]></text>
</answer>
</question>
<question type="description">
<name><text><![CDATA[010 For the next several questions, consider the following snippet of code: <pre>  for k in range(300, 320, 5): <br>      print(k) </pre>]]></text></name>
<questiontext format="html">
<text><![CDATA[For the next several questions, consider the following snippet of code: <pre>  for k in range(300, 320, 5): <br>      print(k) </pre>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
</question>
<question type="shortanswer">
<name><text><![CDATA[011 What is the <em>first</em> number that the above loop prints?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the <em>first</em> number that the above loop prints?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[300]]></text>
</answer>
</question>
<question type="shortanswer">
<name><text><![CDATA[012 What is the <em>last</em> number that the above loop prints?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the <em>last</em> number that the above loop prints?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[315]]></text>
</answer>
</question>
<question type="shortanswer">
<name><text><![CDATA[013 How many numbers does the above loop print?]]></text></name>
<questiontext format="html">
<text><![CDATA[How many numbers does the above loop print?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[4]]></text>
</answer>
</question>
<question type="description">
<name><text><![CDATA[014 For the next several questions, consider the following snippet of code: <pre>  for k in range(300, 321, 5): <br>      print(k) </pre>]]></text></name>
<questiontext format="html">
<text><![CDATA[For the next several questions, consider the following snippet of code: <pre>  for k in range(300, 321, 5): <br>      print(k) </pre>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
</question>
<question type="shortanswer">
<name><text><![CDATA[015 What is the <em>first</em> number that the above loop prints?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the <em>first</em> number that the above loop prints?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[300]]></text>
</answer>
</question>
<question type="shortanswer">
<name><text><![CDATA[016 What is the <em>last</em> number that the above loop prints?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the <em>last</em> number that the above loop prints?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[320]]></text>
</answer>
</question>
<question type="shortanswer">
<name><text><![CDATA[017 How many numbers does the above loop print?]]></text></name>
<questiontext format="html">
<text><![CDATA[How many numbers does the above loop print?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[5]]></text>
</answer>
</question>
<question type="description">
<name><text><![CDATA[018 For the next several questions, consider the following snippet of code: <pre>  for k in range(321, 300, -5): <br>      print(k) </pre>]]></text></name>
<questiontext format="html">
<text><![CDATA[For the next several questions, consider the following snippet of code: <pre>  for k in range(321, 300, -5): <br>      print(k) </pre>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
</question>
<question type="shortanswer">
<name><text><![CDATA[019 What is the <em>first</em> number that the above loop prints?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the <em>first</em> number that the above loop prints?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[321]]></text>
</answer>
</question>
<question type="shortanswer">
<name><text><![CDATA[020 What is the <em>last</em> number that the above loop prints?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the <em>last</em> number that the above loop prints?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[301]]></text>
</answer>
</question>
<question type="shortanswer">
<name><text><![CDATA[021 How many numbers does the above loop print?]]></text></name>
<questiontext format="html">
<text><![CDATA[How many numbers does the above loop print?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[5]]></text>
</answer>
</question>
<question type="shortanswer">
<name><text><![CDATA[022 How many numbers does the following code snippet print? <pre>  for k in range(1, 10, -1): <br>      print(k) </pre>]]></text></name>
<questiontext format="html">
<text><![CDATA[How many numbers does the following code snippet print? <pre>  for k in range(1, 10, -1): <br>      print(k) </pre>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[0]]></text>
</answer>
<answer fraction="100.0">
<text><![CDATA[None]]></text>
</answer>
</question>
<question type="essay">
<name><text><![CDATA[023 A student wrote the following code to compute <code>n!</code> (n factorial). <pre>product = 1 <br>for k in range(n, 0): <br>    product = product * k </pre> What error did the student make?]]></text></name>
<questiontext format="html">
<text><![CDATA[A student wrote the following code to compute <code>n!</code> (n factorial). <pre>product = 1 <br>for k in range(n, 0): <br>    product = product * k </pre> What error did the student make?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[]]></text>
</answer>
</question>
<question type="truefalse">
<name><text><![CDATA[024 True or false:  The code snippet <pre>total = 0 <br>for k in range(m, n): <br>    total = total + k <br>print(total) </pre> and <pre>total = 0 <br>for j in range(n - m): <br>    total = total + j + m <br>print(total) </pre> both print the same thing.]]></text></name>
<questiontext format="html">
<text><![CDATA[True or false:  The code snippet <pre>total = 0 <br>for k in range(m, n): <br>    total = total + k <br>print(total) </pre> and <pre>total = 0 <br>for j in range(n - m): <br>    total = total + j + m <br>print(total) </pre> both print the same thing.]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[true]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[false]]></text>
</answer>
</question>
<question type="description">
<name><text><![CDATA[025 Watch the video <a href="http://www.rose-hulman.edu/class/csse/csse120/VideoFiles/12.2-BoxAndPointerDiagrams/BoxAndPointerDiagrams.mp4" target=newtab>Box and Pointer Diagrams</a>, doing the next set of questions while you do so.]]></text></name>
<questiontext format="html">
<text><![CDATA[Watch the video <a href="http://www.rose-hulman.edu/class/csse/csse120/VideoFiles/12.2-BoxAndPointerDiagrams/BoxAndPointerDiagrams.mp4" target=newtab>Box and Pointer Diagrams</a>, doing the next set of questions while you do so.]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
</question>
<question type="truefalse">
<name><text><![CDATA[026 True or False? <blockquote>A <strong><em>box and pointer diagram</em></strong> helps explain the idea that a variable is a REFERENCE to its value.</blockquote>]]></text></name>
<questiontext format="html">
<text><![CDATA[True or False? <blockquote>A <strong><em>box and pointer diagram</em></strong> helps explain the idea that a variable is a REFERENCE to its value.</blockquote>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[true]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[false]]></text>
</answer>
</question>
<question type="truefalse">
<name><text><![CDATA[027 True or False? <blockquote> A <strong><em>box and pointer diagram</em></strong> helps show the CONSEQUENCES of the idea that a variable is a REFERENCE to its value. </blockquote>]]></text></name>
<questiontext format="html">
<text><![CDATA[True or False? <blockquote> A <strong><em>box and pointer diagram</em></strong> helps show the CONSEQUENCES of the idea that a variable is a REFERENCE to its value. </blockquote>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[true]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[false]]></text>
</answer>
</question>
<question type="multichoice">
<name><text><![CDATA[028 A <em>block and pointer diagram</em>:]]></text></name>
<questiontext format="html">
<text><![CDATA[A <em>block and pointer diagram</em>:]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[Shows the flow of control of a program.]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[Gives hints for how to ship boxes safely.]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[Explains why cats chase laser pointers.]]></text>
</answer>
<answer fraction="100.0">
<text><![CDATA[Shows a snapshot of the variables and their values at a given point of a program's execution.]]></text>
</answer>
</question>
<question type="truefalse">
<name><text><![CDATA[029 True or False? <blockquote> In Python, every piece of data is an <em>OBJECT</em>. </blockquote>]]></text></name>
<questiontext format="html">
<text><![CDATA[True or False? <blockquote> In Python, every piece of data is an <em>OBJECT</em>. </blockquote>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[true]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[false]]></text>
</answer>
</question>
<question type="truefalse">
<name><text><![CDATA[030 True or False? <blockquote> Every object has a <em>TYPE</em>. </blockquote>]]></text></name>
<questiontext format="html">
<text><![CDATA[True or False? <blockquote> Every object has a <em>TYPE</em>. </blockquote>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[true]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[false]]></text>
</answer>
</question>
<question type="multichoice">
<name><text><![CDATA[031 What is the <em>TYPE</em> of the object <code>98.6</code>?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the <em>TYPE</em> of the object <code>98.6</code>?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[<code>int</code> (shorthand for integer)]]></text>
</answer>
<answer fraction="100.0">
<text><![CDATA[<code>float</code> (shorthand for floating-point number)]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[<code>str</code> (shorthand for string)]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[None of the above]]></text>
</answer>
</question>
<question type="multichoice">
<name><text><![CDATA[032 What is the type of the object <code>48</code>?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the type of the object <code>48</code>?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[<code>int</code> (shorthand for integer)]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[<code>float</code> (shorthand for floating-point number)]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[<code>str</code> (shorthand for string)]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[None of the above]]></text>
</answer>
</question>
<question type="multichoice">
<name><text><![CDATA[033 What is the type of the object <code>'Once upon a time ...'</code>?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the type of the object <code>'Once upon a time ...'</code>?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[<code>int</code> (shorthand for integer)]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[<code>float</code> (shorthand for floating-point number)]]></text>
</answer>
<answer fraction="100.0">
<text><![CDATA[<code>str</code> (shorthand for string)]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[None of the above]]></text>
</answer>
</question>
<question type="multichoice">
<name><text><![CDATA[034 What is the type of the object <code>"HELLO"</code>?]]></text></name>
<questiontext format="html">
<text><![CDATA[What is the type of the object <code>"HELLO"</code>?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[<code>int</code> (shorthand for integer)]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[<code>float</code> (shorthand for floating-point number)]]></text>
</answer>
<answer fraction="100.0">
<text><![CDATA[<code>str</code> (shorthand for string)]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[None of the above]]></text>
</answer>
</question>
<question type="multichoice">
<name><text><![CDATA[035 Consider the line of code: <pre> c2 = rg.Circle(rg.Point(100, 300), 45) </pre> Are the following equivalent? <blockquote><code>c2</code> <strong><em>REFERS to</em></strong> the rg.Circle whose center is at (100, 300) and whose radius is 45. <br> <code>c2</code> <strong><em>POINTS to</em></strong> the rg.Circle whose center is at (100, 300) and whose radius is 45. <br> <code>c2</code> is the <strong><em>NAME OF</em></strong> the rg.Circle whose center is at (100, 300) and whose radius is 45. </blockquote>]]></text></name>
<questiontext format="html">
<text><![CDATA[Consider the line of code: <pre> c2 = rg.Circle(rg.Point(100, 300), 45) </pre> Are the following equivalent? <blockquote><code>c2</code> <strong><em>REFERS to</em></strong> the rg.Circle whose center is at (100, 300) and whose radius is 45. <br> <code>c2</code> <strong><em>POINTS to</em></strong> the rg.Circle whose center is at (100, 300) and whose radius is 45. <br> <code>c2</code> is the <strong><em>NAME OF</em></strong> the rg.Circle whose center is at (100, 300) and whose radius is 45. </blockquote>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[Yes, they are equivalent.]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[No, they are NOT equivalent.]]></text>
</answer>
</question>
<question type="truefalse">
<name><text><![CDATA[036 Consider the line of code: <pre> x = 53 </pre> True or False: <code>x</code> refers to the integer 53.]]></text></name>
<questiontext format="html">
<text><![CDATA[Consider the line of code: <pre> x = 53 </pre> True or False: <code>x</code> refers to the integer 53.]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[true]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[false]]></text>
</answer>
</question>
<question type="truefalse">
<name><text><![CDATA[037 Consider the line of code: <pre> s = 'Greetings, earthling!' </pre> True or False: <code>s</code> is the name of the string 'Greetings, earthling!'.]]></text></name>
<questiontext format="html">
<text><![CDATA[Consider the line of code: <pre> s = 'Greetings, earthling!' </pre> True or False: <code>s</code> is the name of the string 'Greetings, earthling!'.]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[true]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[false]]></text>
</answer>
</question>
<question type="truefalse">
<name><text><![CDATA[038 Consider the line of code: <pre> s = 'Greetings, earthling!' </pre> True or False: <code>s</code> points to the string 'Greetings, earthling!'.]]></text></name>
<questiontext format="html">
<text><![CDATA[Consider the line of code: <pre> s = 'Greetings, earthling!' </pre> True or False: <code>s</code> points to the string 'Greetings, earthling!'.]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="100.0">
<text><![CDATA[true]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[false]]></text>
</answer>
</question>
<question type="multichoice">
<name><text><![CDATA[039 Which of the following are CONTAINER objects?]]></text></name>
<questiontext format="html">
<text><![CDATA[Which of the following are CONTAINER objects?]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<single>false</single><answer fraction="50.0">
<text><![CDATA[<code>rg.Point(0, 0)</code>]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[<code>0</code>]]></text>
</answer>
<answer fraction="50.0">
<text><![CDATA[<code>(0, 0)</code>]]></text>
</answer>
<answer fraction="50.0">
<text><![CDATA[<code>[0, 0, 0]</code>]]></text>
</answer>
<answer fraction="50.0">
<text><![CDATA[<code>rg.Rectangle(rg.Point(3, 20), rg.Point(300, 500))</code>]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[<code>100</code>]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[<code>0.0</code>]]></text>
</answer>
<answer fraction="50.0">
<text><![CDATA[<code>'Hello'</code>]]></text>
</answer>
<answer fraction="50.0">
<text><![CDATA[<code>'H'</code>]]></text>
</answer>
<answer fraction="50.0">
<text><![CDATA[<code>''</code> (that is, the empty string)]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[The Python object <code>None</code>]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[The Python object <code>True</code>]]></text>
</answer>
</question>
<question type="multichoice">
<name><text><![CDATA[040 Consider the Python statement: <pre> temperature = 98.6 </pre> Which of the following is a correct box-and-pointer diagram of that statement? <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rules-1-and-2a.png"><br><br> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rules-1-and-2b.png"></blockquote>]]></text></name>
<questiontext format="html">
<text><![CDATA[Consider the Python statement: <pre> temperature = 98.6 </pre> Which of the following is a correct box-and-pointer diagram of that statement? <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rules-1-and-2a.png"><br><br> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rules-1-and-2b.png"></blockquote>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[The FIRST diagram (on the top) is correct.]]></text>
</answer>
<answer fraction="100.0">
<text><![CDATA[The SECOND diagram (on the bottom) is correct.]]></text>
</answer>
</question>
<question type="multichoice">
<name><text><![CDATA[041 Consider the Python statement: <pre> center = rg.Point(50, 30) </pre> Which of the following is a correct box-and-pointer diagram of that statement? <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule3a.png"> <br> <br> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule3b.png"> <br> <br> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule3c.png"> </blockquote>]]></text></name>
<questiontext format="html">
<text><![CDATA[Consider the Python statement: <pre> center = rg.Point(50, 30) </pre> Which of the following is a correct box-and-pointer diagram of that statement? <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule3a.png"> <br> <br> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule3b.png"> <br> <br> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule3c.png"> </blockquote>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[The FIRST diagram (on the top) is correct.]]></text>
</answer>
<answer fraction="0.0">
<text><![CDATA[The SECOND diagram (in the middle) is correct.]]></text>
</answer>
<answer fraction="100.0">
<text><![CDATA[The THIRD diagram (on the bottom) is correct.]]></text>
</answer>
</question>
<question type="multichoice">
<name><text><![CDATA[042 Consider the code snippet: <pre> x = 50 <br> y = 30 <br> center = rg.Point(x, y) </pre> Which of the following is a correct box-and-pointer diagram for that snippet? <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rules-1-2-and-3a.png"> <br> <br> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rules-1-2-and-3b.png"> </blockquote>]]></text></name>
<questiontext format="html">
<text><![CDATA[Consider the code snippet: <pre> x = 50 <br> y = 30 <br> center = rg.Point(x, y) </pre> Which of the following is a correct box-and-pointer diagram for that snippet? <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rules-1-2-and-3a.png"> <br> <br> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rules-1-2-and-3b.png"> </blockquote>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[The FIRST diagram (on the top) is correct.]]></text>
</answer>
<answer fraction="100.0">
<text><![CDATA[The SECOND diagram (on the bottom) is correct.]]></text>
</answer>
</question>
<question type="essay">
<name><text><![CDATA[043 Consider the code snippet: <pre> y = 7 <br> y = y * 3 </pre> The box-and-pointer diagram after the FIRST line executes is as follows: <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule-4.png"> </blockquote> On a piece of scratch paper (NOT here in this Moodle quiz), re-draw the above diagram and then augment your diagram to show the effect of the SECOND line of code shown above. (Nothing to turn in for this problem: just leave its answer box blank.)]]></text></name>
<questiontext format="html">
<text><![CDATA[Consider the code snippet: <pre> y = 7 <br> y = y * 3 </pre> The box-and-pointer diagram after the FIRST line executes is as follows: <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule-4.png"> </blockquote> On a piece of scratch paper (NOT here in this Moodle quiz), re-draw the above diagram and then augment your diagram to show the effect of the SECOND line of code shown above. (Nothing to turn in for this problem: just leave its answer box blank.)]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[]]></text>
</answer>
</question>
<question type="description">
<name><text><![CDATA[044 The previous problem asked you to draw a box-and-pointer diagram for the following: <pre> y = 7 <br> y = y * 3 </pre> Here is a correct answer: <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule-4b.png"> </blockquote> <strong>Compare your answer (that you wrote on scratch paper) to the above.</strong>  Be sure that they are the same (and if not, bring any questions that you have about them to class).]]></text></name>
<questiontext format="html">
<text><![CDATA[The previous problem asked you to draw a box-and-pointer diagram for the following: <pre> y = 7 <br> y = y * 3 </pre> Here is a correct answer: <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule-4b.png"> </blockquote> <strong>Compare your answer (that you wrote on scratch paper) to the above.</strong>  Be sure that they are the same (and if not, bring any questions that you have about them to class).]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
</question>
<question type="essay">
<name><text><![CDATA[045 Consider the code snippet: <pre> x = 10 <br> y = x * 2 <br> p = rg.Point(x, y) <br> x = 40 <br> p.y = 30 </pre> The box-and-pointer diagram after the FIRST THREE lines execute is as follows: <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule-4c.png"> </blockquote> On a piece of scratch paper (NOT here in this Moodle quiz), re-draw the above diagram and then augment your diagram to show the effect of the last two lines of code shown above. (Nothing to turn in for this problem: just leave its answer box blank.)]]></text></name>
<questiontext format="html">
<text><![CDATA[Consider the code snippet: <pre> x = 10 <br> y = x * 2 <br> p = rg.Point(x, y) <br> x = 40 <br> p.y = 30 </pre> The box-and-pointer diagram after the FIRST THREE lines execute is as follows: <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule-4c.png"> </blockquote> On a piece of scratch paper (NOT here in this Moodle quiz), re-draw the above diagram and then augment your diagram to show the effect of the last two lines of code shown above. (Nothing to turn in for this problem: just leave its answer box blank.)]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[]]></text>
</answer>
</question>
<question type="description">
<name><text><![CDATA[046 The previous problem asked you to draw a box-and-pointer diagram for the following: <pre> x = 10 <br> y = x * 2 <br> p = rg.Point(x, y) <br> x = 40 <br> p.y = 30 </pre> Here is a correct answer. <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule-4d.png"> </blockquote> <strong>Compare your answer (that you wrote on scratch paper) to the above.</strong>  Be sure that they are the same (and if not, bring any questions that you have about them to class).]]></text></name>
<questiontext format="html">
<text><![CDATA[The previous problem asked you to draw a box-and-pointer diagram for the following: <pre> x = 10 <br> y = x * 2 <br> p = rg.Point(x, y) <br> x = 40 <br> p.y = 30 </pre> Here is a correct answer. <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rule-4d.png"> </blockquote> <strong>Compare your answer (that you wrote on scratch paper) to the above.</strong>  Be sure that they are the same (and if not, bring any questions that you have about them to class).]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
</question>
<question type="essay">
<name><text><![CDATA[047 Consider the code snippet: <pre> number1 = 88 <br> number2 = number1 </pre> Explain what is WRONG about the following attempt at a box-and-pointer diagram for the above code snippet: <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-variables-never-point-to-variables.png">]]></text></name>
<questiontext format="html">
<text><![CDATA[Consider the code snippet: <pre> number1 = 88 <br> number2 = number1 </pre> Explain what is WRONG about the following attempt at a box-and-pointer diagram for the above code snippet: <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-variables-never-point-to-variables.png">]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[]]></text>
</answer>
</question>
<question type="essay">
<name><text><![CDATA[048 Consider the code snippet: <pre> r = 66 <br> r2 = r <br> center = rg.Point(90, 40) <br> circle = rg.Circle(center, r) <br> r = 35 <br> center.x = 200 <br> <br> print(r) <br> print(r2) <br> print(center) </br> print(circle) </pre> Determine IN YOUR HEAD (that is, without using a computer and without using any scratch paper) what would be printed when the above code snippet executes.  In the box below, write your answer for what would be printed. (The details of how you write the center and circle are unimportant; any way is fine.  Just don't use any VARIABLES in your answer.  That is, use only NUMBERS and the class names rg.Circle and rg.Point.)]]></text></name>
<questiontext format="html">
<text><![CDATA[Consider the code snippet: <pre> r = 66 <br> r2 = r <br> center = rg.Point(90, 40) <br> circle = rg.Circle(center, r) <br> r = 35 <br> center.x = 200 <br> <br> print(r) <br> print(r2) <br> print(center) </br> print(circle) </pre> Determine IN YOUR HEAD (that is, without using a computer and without using any scratch paper) what would be printed when the above code snippet executes.  In the box below, write your answer for what would be printed. (The details of how you write the center and circle are unimportant; any way is fine.  Just don't use any VARIABLES in your answer.  That is, use only NUMBERS and the class names rg.Circle and rg.Point.)]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[]]></text>
</answer>
</question>
<question type="essay">
<name><text><![CDATA[049 On a piece of scratch paper (NOT here in this Moodle quiz), draw a box and pointer diagram for the FIRST FOUR lines of the code snippet in the previous problem. (Nothing to turn in for this problem: just leave its answer box blank.)]]></text></name>
<questiontext format="html">
<text><![CDATA[On a piece of scratch paper (NOT here in this Moodle quiz), draw a box and pointer diagram for the FIRST FOUR lines of the code snippet in the previous problem. (Nothing to turn in for this problem: just leave its answer box blank.)]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[]]></text>
</answer>
</question>
<question type="description">
<name><text><![CDATA[050 The previous problem asked you to draw a box-and-pointer diagram for the FIRST FOUR lines of the following six-line code snippet: <pre> r = 66 <br> r2 = r <br> center = rg.Point(90, 40) <br> circle = rg.Circle(center, r) <br> r = 35 <br> center.x = 200 </pre> Here is a correct answer to the previous problem: <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rules-summary-a.png"> </blockquote> <strong>Compare your answer (that you wrote on scratch paper) to the above.</strong>  Be sure that they are the same (and if not, bring any questions that you have about them to class).]]></text></name>
<questiontext format="html">
<text><![CDATA[The previous problem asked you to draw a box-and-pointer diagram for the FIRST FOUR lines of the following six-line code snippet: <pre> r = 66 <br> r2 = r <br> center = rg.Point(90, 40) <br> circle = rg.Circle(center, r) <br> r = 35 <br> center.x = 200 </pre> Here is a correct answer to the previous problem: <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rules-summary-a.png"> </blockquote> <strong>Compare your answer (that you wrote on scratch paper) to the above.</strong>  Be sure that they are the same (and if not, bring any questions that you have about them to class).]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
</question>
<question type="essay">
<name><text><![CDATA[051 Augment your box-and-pointer diagram for the previous problem to include the remaining two lines of its code snippet. (Nothing to turn in for this problem: just leave its answer box blank.)]]></text></name>
<questiontext format="html">
<text><![CDATA[Augment your box-and-pointer diagram for the previous problem to include the remaining two lines of its code snippet. (Nothing to turn in for this problem: just leave its answer box blank.)]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[]]></text>
</answer>
</question>
<question type="description">
<name><text><![CDATA[052 The previous problem asked you to draw a box-and-pointer diagram for the first six lines of the following code snippet: <pre> r = 66 <br> r2 = r <br> center = rg.Point(90, 40) <br> circle = rg.Circle(center, r) <br> r = 35 <br> center.x = 200 <br> <br> print(r) <br> print(r2) <br> print(center) </br> print(circle) </pre> Here is a correct answer to the previous problem: <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rules-summary-b.png"> </blockquote> <strong>Compare your answer (that you wrote on scratch paper) to the above.</strong>  Be sure that they are the same (and if not, bring any questions that you have about them to class).]]></text></name>
<questiontext format="html">
<text><![CDATA[The previous problem asked you to draw a box-and-pointer diagram for the first six lines of the following code snippet: <pre> r = 66 <br> r2 = r <br> center = rg.Point(90, 40) <br> circle = rg.Circle(center, r) <br> r = 35 <br> center.x = 200 <br> <br> print(r) <br> print(r2) <br> print(center) </br> print(circle) </pre> Here is a correct answer to the previous problem: <blockquote> <img src="http://www.rose-hulman.edu/class/csse/csse120/Images/for_quizzes/box-and-pointer-rules-summary-b.png"> </blockquote> <strong>Compare your answer (that you wrote on scratch paper) to the above.</strong>  Be sure that they are the same (and if not, bring any questions that you have about them to class).]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
</question>
<question type="essay">
<name><text><![CDATA[053 Now that you have a box-and-pointer diagram for the above code snippet, consider again: What what would be printed when the above code snippet executes?  In the box below, write your answer for what would be printed. <strong> Compare your answer to THIS problem to what you wrote for a PREVIOUS problem (three problems back) that asked the same question.</strong>  Are the two answers the same?  If they are NOT the same, and you are uncertain which is correct, <strong> bring any questions that you have to class.</strong>]]></text></name>
<questiontext format="html">
<text><![CDATA[Now that you have a box-and-pointer diagram for the above code snippet, consider again: What what would be printed when the above code snippet executes?  In the box below, write your answer for what would be printed. <strong> Compare your answer to THIS problem to what you wrote for a PREVIOUS problem (three problems back) that asked the same question.</strong>  Are the two answers the same?  If they are NOT the same, and you are uncertain which is correct, <strong> bring any questions that you have to class.</strong>]]></text>
</questiontext>
<shuffleanswers>true</shuffleanswers>
<answer fraction="0.0">
<text><![CDATA[]]></text>
</answer>
</question>
</quiz>