<html><head></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi Y'all<div><br></div><div>I really believe this indicated the teaching (and understanding of the teaching) that goes on in classrooms.</div><div><br></div><div>At what point are we satisfied that teachers actually understand what they are teaching, are on the right "track", are NOT GUESSING, and really spend time to make sure their students understand really deep material that is referenced in only one (or two) KK.</div><div><br></div><div>I would because I like the concepts of stacks - and the difference between FIFO and LIFO, cells that have been previously populated with what is now GIGO etc etc.</div><div><br></div><div>But given that this is quite deep for year 12 level students (or was until this study design) I would have moved on in the face of incomprehension.</div><div><br></div><div>Now we cannot.</div><div><br></div><div>So how do we raise the level of knowledge of teachers so that they do NOT LET DOWN the trust of their students..?????</div><div><br></div><div>It is very obvious that we do not all have the same level of understanding... and hello to the 500 "readers who are too scared to post or do not feel confident in their opinions". One MIGHT presume that they are not posting because they are following the discussion in the hope of figuring out what it all means?</div><div><br></div><div><br></div><div>even the current Cert IV in IT does not include material like this that I have found! (NOTE my careful caveat!)</div><div><br></div><div>I am just glad I am not teaching SD this year given the level of confusion in what a question like this might mean...!</div><div><br></div><div>Andrew</div><div><br></div><div>ps even in VB, stacks (lists etc) start at zero but we can safely ignore that in a windoze environment</div><div><br><div>
<span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div><div><font class="Apple-style-span" face="Chalkboard">Andrew Shortell</font></div><div><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px; ">Heidelberg Teaching Unit in 2011</span></font></div></div></span>
</div>
<br><div><div>On 01/05/2011, at 5:57 PM, Robert Hind wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite">
<div bgcolor="#ffffff" text="#000000">
<div><font size="2" face="Arial">Hi all!</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">I have never taught SD. Stopped with CS way back.
This has sent me way back to old texts - 70s and 80s</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">How about we ignore the bold entries in the
original question and read it to mean that the stack is</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">92</font></div>
<div><font size="2" face="Arial">75</font></div>
<div><font size="2" face="Arial">23</font></div>
<div><font size="2" face="Arial">83</font></div>
<div><font size="2" face="Arial">52</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">and the Top-of-stack pointer = 1, ie the value
52.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">This is what the question seems to
say.</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">We then proceed through the steps as given in the
question</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">Start Push (23)
Push (18) Pop Push (75)
Push (92) Push (47)</font></div>
<div><font size="2" face="Arial"></font> </div>
<div><font size="2" face="Arial">
<div><font size="2" face="Arial">92
92 92 92 92
92
*47</font></div>
<div><font size="2" face="Arial">75
75 75
75 75
*92
92</font></div>
<div><font size="2" face="Arial">23
23 *18 18 *75
75
75 </font></div>
<div><font size="2" face="Arial">83
*23 23 *23
23 23
23</font></div>
<div><font size="2" face="Arial">*52
52 52
52
52 52
52</font></div>
<div> </div>
<div>Where * indicates the top-of-stack pointer</div>
<div> </div>
<div>So where is the problem? Except perhaps in the way the question has been
written.</div>
<div> </div>
<div>Robert Hind (Semi-retired) OOF, GOM<br>Ashwood and Traralgon<br><a href="mailto:robert@yinnar.com">robert@yinnar.com</a></div>
<div> </div>
<div> </div></font></div>
<blockquote style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px">
<div style="FONT: 10pt arial">----- Original Message ----- </div>
<div style="FONT: 10pt arial; BACKGROUND: #e4e4e4; font-color: black"><b>From:</b>
<a title="mikebr@tpg.com.au" href="mailto:mikebr@tpg.com.au">Mike Brookes</a>
</div>
<div style="FONT: 10pt arial"><b>To:</b> <a title="sofdev@edulists.com.au" href="mailto:sofdev@edulists.com.au">Year 12 Software Development Teachers'
Mailing List</a> </div>
<div style="FONT: 10pt arial"><b>Sent:</b> Sunday, May 01, 2011 4:56 PM</div>
<div style="FONT: 10pt arial"><b>Subject:</b> Re: [Year 12 SofDev] Sample Exam
Questions</div>
<div><br></div>G'Day again<br><br>Whilst 'tis true that this question on the
end of year exam would unduly stress the little dears, to play devil's
advocate, it does have a useful function as a sample to provoke discussion
about what assumptions must be made. i.e. for the question to have a non
trivial answer, what assumptions are necessary? <br><br>Firstly the memory
locations used for the stack do not have to be initialised to 0 or any other
value when the stack is created. The pointer is the only thing that must be
initialised.<br><br>If you assume the stack starts at 1 instead of 0, then the
stack will not be full after step 6 reducing the value of the
question.<br><br>I also assumed that the bottom two values were in bold for a
purpose, the most obvious (at least to me) being that they were valid existing
members of the stack. <br>At the start of the question the stack is not full,
the TOS pointer is 1, the stack would be full when it reaches 4, so the
non-bold values were from previous uses of the stack. NB. a pop does not
delete the value from the stack, it just changes the TOS pointer.<br><br>It
may well be that a different set of assumptions will produce a meaningful
answer, these were the first consistent set I thought of.<br><br>If you assume
an empty stack at the start then, given that the pointer is 1 at the start of
the question, the TOS pointer must point to the next available location
(closer to convention) and the numbering must start at 1 instead of 0.
In this case the stack is not full after step 6 so another push step would be
needed in the question.<br><br>
<table class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="817">
<tbody>
<tr>
</tr><tr style="MIN-HEIGHT: 15.75pt; HEIGHT: 15.75pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15.75pt; PADDING-LEFT: 0cm; WIDTH: 26pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="35"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 68pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="91"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 23pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="31"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 93pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="124"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 22pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="29"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 23pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="31"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 23pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="31"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td></tr>
<tr style="MIN-HEIGHT: 15.75pt; HEIGHT: 15.75pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15.75pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; BORDER-TOP: medium none; BORDER-RIGHT: 1pt solid; PADDING-TOP: 0cm" colspan="7"><p class="MsoNormal">Stack at start and after each step</p></td></tr>
<tr style="MIN-HEIGHT: 15.75pt; HEIGHT: 15.75pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15.75pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Function</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Top</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Output</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Start</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step 1</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step 2</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step 3</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step 4</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step 5</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step 6</p></td></tr>
<tr style="MIN-HEIGHT: 15pt; HEIGHT: 15pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">1</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Push (23)</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">2</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Item added (23)</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><br></td>
<td style="BORDER-BOTTOM: 1pt solid; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0cm" rowspan="5"><p class="MsoNormal">Stack position</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">5</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92</p></td></tr>
<tr style="MIN-HEIGHT: 15pt; HEIGHT: 15pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">2</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Push (18)</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal"> 3</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Item added (18)</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">4</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">75</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">75</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">18</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">18</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">75</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">75</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">47</p></td></tr>
<tr style="MIN-HEIGHT: 15pt; HEIGHT: 15pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">3</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Pop</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">2</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Item removed (18)</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">3</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92</p></td></tr>
<tr style="MIN-HEIGHT: 15pt; HEIGHT: 15pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">4</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Push (75)</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal"> 3</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Item added (75)</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">2</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">83</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">83</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">18</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">18</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">75</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">75</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">75</p></td></tr>
<tr style="MIN-HEIGHT: 15.75pt; HEIGHT: 15.75pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15.75pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">5</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Push (92)</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">4</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Item added (92)</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">1</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">52</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23</p></td></tr>
<tr style="MIN-HEIGHT: 15.75pt; HEIGHT: 15.75pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15.75pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">6</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Push (47)</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">5 <br></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Item added (47)<br></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td></tr>
<tr style="MIN-HEIGHT: 15.75pt; HEIGHT: 15.75pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15.75pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Top</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">1</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">2</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">3</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">2</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">3</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">4</p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">5</p></td></tr></tbody></table><br>One would hope that a
"real" question would at least have numbered the stack positions and provided
a key to explain what the bold signified. A question to sort sheep from
goats????????????<br><br>Mike<br><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">1</p>On 1/05/2011
12:12 AM, Kevork Krozian wrote:
<blockquote cite="mid:000c01cc0740$a65c4cf0$f314e6d0$@com.au" type="cite">
<style>@font-face {
        font-family: Cambria Math;
}
@font-face {
        font-family: Calibri;
}
@font-face {
        font-family: Tahoma;
}
@page WordSection1 {size: 612.0pt 792.0pt; margin: 72.0pt 72.0pt 72.0pt 72.0pt; }
P.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"; FONT-SIZE: 12pt
}
LI.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"; FONT-SIZE: 12pt
}
DIV.MsoNormal {
        MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman","serif"; FONT-SIZE: 12pt
}
A:link {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlink {
        COLOR: blue; TEXT-DECORATION: underline; mso-style-priority: 99
}
A:visited {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.MsoHyperlinkFollowed {
        COLOR: purple; TEXT-DECORATION: underline; mso-style-priority: 99
}
SPAN.EmailStyle17 {
        FONT-FAMILY: "Calibri","sans-serif"; COLOR: #1f497d; mso-style-type: personal-reply
}
.MsoChpDefault {
        mso-style-type: export-only
}
DIV.WordSection1 {
        page: WordSection1
}
</style>
<!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1"><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">Hi
Mark and Mike,<o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt"><o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">
I am a little late on the scene but have to support Mark
here.<o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">The
question on stacks is more a puzzle than a reasonable problem for a student
to solve in limited time.<o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">The
question begins with a picture of a stack to consider....... which suggests
the starting position of the problem. Apparently it is in a full state ....
and that can be determined from ?????<o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">Then,
a push (23) is introduced. Hang on, I thought we had a stack to consider
with 5 elements. Are we adding another 23 or picking up half way through the
introduced stack ? <o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">Where
is it suggested that the introduced stack is in a “stack full” state ?
<o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">The
push and pop operations are not the problem, just the starting position of
the problem. When is the beginning is what got me first. The bold
items were no help as I didn’t consider them to be
significant.<o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">Also,
the item Top (1) might mean top of stack to the writer, but only adds to the
confusion as it is not obvious it means the top of the stack when we start
with a stack with 5 elements. <o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt"><o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">I
have gone through my 2<sup>nd</sup> year Data Structures textbooks and have
a strong recollection of the 1982 exams I did ( why wouldn’t I ?? ) on
stacks and data structures and there was always a pointer or arrow (with a
value in a variable ) showing the top of a stack at the beginning of a
question and the requirement was to draw the stack through the various
states after push and pop functions. Apart from that we either have empty or
full states. <o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt"><o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">I
can’t see how this question would have helped in any way to show
student’s understanding of a stack and its functions.<o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt"><o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">Kind
Regards<o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt"><o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">Kevork
Krozian<o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">Edulists
Creator Administrator<o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt"><a class="moz-txt-link-abbreviated" href="http://www.edulists.com.au/">www.edulists.com.au</a><o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt">tel:
0419 356 034<o:p></o:p></span></p><p class="MsoNormal"><span style="FONT-FAMILY: 'Calibri','sans-serif'; COLOR: rgb(31,73,125); FONT-SIZE: 11pt"><o:p></o:p></span></p>
<div style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; BORDER-TOP: rgb(181,196,223) 1pt solid; BORDER-RIGHT: medium none; PADDING-TOP: 3pt"><p class="MsoNormal"><b><span style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt" lang="EN-US">From:</span></b><span style="FONT-FAMILY: 'Tahoma','sans-serif'; FONT-SIZE: 10pt" lang="EN-US"> <a class="moz-txt-link-abbreviated" href="mailto:sofdev-bounces@edulists.com.au">sofdev-bounces@edulists.com.au</a>
[<a class="moz-txt-link-freetext" href="mailto:sofdev-bounces@edulists.com.au">mailto:sofdev-bounces@edulists.com.au</a>]
<b>On Behalf Of </b>Mark KELLY<br><b>Sent:</b> Wednesday, 27 April 2011 2:36
PM<br><b>To:</b> Year 12 Software Development Teachers' Mailing
List<br><b>Subject:</b> Re: [Year 12 SofDev] Sample Exam
Questions<o:p></o:p></span></p></div><p class="MsoNormal"><o:p></o:p></p><p style="MARGIN-BOTTOM: 12pt" class="MsoNormal">Thanks for the bone,
Mike. Woof! It finally let me work out the many assumptions
underlying the question: and after all that, I'm not wagging my
tail.<br><br>I think the question is far from clear, and I doubt students
would make much of it in a real exam.<br> <br>- It does not, for
example, say that the stack is zero-based. If one assumes (as I did)
that the stack indexing starts at 1, the whole thing changes and nothing
makes sense.<br>- It does not indicate what the mysterious bolding of the
bottom 2 items is meant to represent. If the examiners invent their
own conventions, they should explain them to us.<br>- It does not tell us
that the stack pointer in updated <b>before</b> a push/pop instead of being
changed afterwards, as often happens. Again, this changes
everything.<br>- One has to realise that the stack is expanding from the
bottom and not from the top. Stacks are often represented growing in either
direction.<br><br>When it comes to real-world stack implementation, there
are so many different options such as these that I found the question
mind-boggling while I went through the permutations of possible
readings.<br><br>Grrr.<o:p></o:p></p>
<div><p class="MsoNormal">On 21 April 2011 14:45, Mike Brookes <<a href="mailto:mikebr@tpg.com.au" moz-do-not-send="true">mikebr@tpg.com.au</a>> wrote:<o:p></o:p></p>
<div><p class="MsoNormal">Hi Mark et Al<br><br>For the question to make sense one
has to make the assumption that the stack positions start at the bottom with
position zero and go up to position 4 which is the top of the stack. At the
start the bottom two (in bold on the PDF) are valid, hence the top of stack
pointer showing 1. <br><br>Below is the completed table and the stack at the
start and after each step:<o:p></o:p></p>
<table style="WIDTH: 612.75pt" class="MsoNormalTable" border="0" cellspacing="0" cellpadding="0" width="817">
<tbody>
<tr style="MIN-HEIGHT: 15.75pt; HEIGHT: 15.75pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15.75pt; PADDING-LEFT: 0cm; WIDTH: 26pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="35"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 68pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="91"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 23pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="31"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 93pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="124"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 22pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="29"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 23pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="31"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 23pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="31"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; WIDTH: 48pt; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm" width="64"><br></td></tr>
<tr style="MIN-HEIGHT: 15.75pt; HEIGHT: 15.75pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15.75pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="BORDER-BOTTOM: medium none; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; BORDER-TOP: medium none; BORDER-RIGHT: 1pt solid; PADDING-TOP: 0cm" colspan="7"><p class="MsoNormal">Stack at start and after each
step<o:p></o:p></p></td></tr>
<tr style="MIN-HEIGHT: 15.75pt; HEIGHT: 15.75pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15.75pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Function<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Top<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Output<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Start<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step 1<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step 2<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step 3<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step 4<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step 5<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Step 6<o:p></o:p></p></td></tr>
<tr style="MIN-HEIGHT: 15pt; HEIGHT: 15pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">1<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Push (23)<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">2<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Item added (23)<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><br></td>
<td style="BORDER-BOTTOM: 1pt solid; BORDER-LEFT: medium none; PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; BORDER-TOP: medium none; BORDER-RIGHT: medium none; PADDING-TOP: 0cm" rowspan="5"><p class="MsoNormal">Stack position<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">4<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">92<o:p></o:p></p></td></tr>
<tr style="MIN-HEIGHT: 15pt; HEIGHT: 15pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">2<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Push (18)<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal"><o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Item added (18)<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">3<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">75<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">75<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">18<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">18<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">75<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">75<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">75<o:p></o:p></p></td></tr>
<tr style="MIN-HEIGHT: 15pt; HEIGHT: 15pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">3<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Pop<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">2<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Item removed (18)<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">2<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">23<o:p></o:p></p></td></tr>
<tr style="MIN-HEIGHT: 15pt; HEIGHT: 15pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">4<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Push (75)<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal"><o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p class="MsoNormal">Item added (75)<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">1<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">83<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">83<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">83<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">83<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">83<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">83<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">83<o:p></o:p></p></td></tr>
<tr style="MIN-HEIGHT: 15.75pt; HEIGHT: 15.75pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15.75pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">5<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Push (92)<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">4<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Item added (92)<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">0<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">52<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">52<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">52<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">52<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">52<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">52<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">52<o:p></o:p></p></td></tr>
<tr style="MIN-HEIGHT: 15.75pt; HEIGHT: 15.75pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15.75pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">6<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Push (47)<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal"><o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Stack full<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td></tr>
<tr style="MIN-HEIGHT: 15.75pt; HEIGHT: 15.75pt">
<td style="PADDING-BOTTOM: 0cm; MIN-HEIGHT: 15.75pt; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><br></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p class="MsoNormal">Top<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">1<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">2<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">3<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">2<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">3<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">4<o:p></o:p></p></td>
<td style="PADDING-BOTTOM: 0cm; PADDING-LEFT: 0cm; PADDING-RIGHT: 0cm; HEIGHT: 15.75pt; PADDING-TOP: 0cm"><p style="TEXT-ALIGN: right" class="MsoNormal" align="right">4<o:p></o:p></p></td></tr></tbody></table><p class="MsoNormal"><br><span style="COLOR: rgb(136,136,136)">Mike Brookes
<br>Semi retired gentleman from Copperfield College</span><o:p></o:p></p>
<div><p class="MsoNormal"><br><br>On 21/04/2011 1:35 PM, Mark KELLY wrote:
<o:p></o:p></p><p class="MsoNormal">Would someone be kind enough to throw me a bone about the
stack question - Q3?<br><br>I thought I knew stack implementation from my
assembly language days with Z80... this question feels like walking into
someone's half-finished thought process. I'm really confused about
this.After half an hour of conjecture, I’ve tried four times to ask a series
of sensible questions to make sense of it, and have failed every time.
<o:p></o:p></p><p class="MsoNormal"><o:p></o:p></p><p class="MsoNormal">The only apparent answer involves time travel, reversed
arrays, irrelevant stack pointers and bogus bolding of stack items.
The relationship between the stack and the table is only the beginning of
the problem...<o:p></o:p></p><p class="MsoNormal"><o:p></o:p></p><p class="MsoNormal">I’d be delighted if anyone could walk me through
this...<o:p></o:p></p><p class="MsoNormal"><o:p></o:p></p><p class="MsoNormal">Regards<o:p></o:p></p><p class="MsoNormal">Mark<o:p></o:p></p><p class="MsoNormal"><o:p></o:p></p><p class="MsoNormal"><o:p></o:p></p></div></div><p class="MsoNormal"><br>_______________________________________________<br><a href="http://www.edulists.com.au/" target="_blank" moz-do-not-send="true">http://www.edulists.com.au</a> - FAQ, Subscribe,
Unsubscribe<br>IT Software Development Mailing List kindly supported
by<br><a href="http://www.vcaa.vic.edu.au/" target="_blank" moz-do-not-send="true">http://www.vcaa.vic.edu.au</a> - Victorian Curriculum
and Assessment Authority and<br><a href="http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html" target="_blank" moz-do-not-send="true">http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html</a><br><a href="http://www.vitta.org.au/" target="_blank" moz-do-not-send="true">http://www.vitta.org.au</a> - VITTA Victorian
Information Technology Teachers Association Inc<o:p></o:p></p></div><p style="MARGIN-BOTTOM: 12pt" class="MsoNormal"><br><br clear="all"><br>--
<br>Mark Kelly<br>Manager of ICT, Reporting, IT Learning Area<br>McKinnon
Secondary College<br>McKinnon Rd McKinnon 3204, Victoria,
Australia<br>Direct line / Voicemail: +613 8520 9085, Fax +613 9578
9253<br><a href="mailto:kel@mckinnonsc.vic.edu.au" target="_blank" moz-do-not-send="true">kel@mckinnonsc.vic.edu.au</a><br>VCE IT Lecture
Notes: <a href="http://vceit.com/" target="_blank" moz-do-not-send="true">http://vceit.com</a><br>Moderator: IT Applications
Edulist<br><br>All generalisations are false, except this
one.<o:p></o:p></p></div><pre wrap=""><fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
<a class="moz-txt-link-freetext" href="http://www.edulists.com.au/">http://www.edulists.com.au</a> - FAQ, Subscribe, Unsubscribe
IT Software Development Mailing List kindly supported by
<a class="moz-txt-link-freetext" href="http://www.vcaa.vic.edu.au/">http://www.vcaa.vic.edu.au</a> - Victorian Curriculum and Assessment Authority and
<a class="moz-txt-link-freetext" href="http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html">http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html</a>
<a class="moz-txt-link-freetext" href="http://www.vitta.org.au/">http://www.vitta.org.au</a> - VITTA Victorian Information Technology Teachers Association Inc</pre></blockquote><br><div>
<br class="webkit-block-placeholder"></div><hr><div><br class="webkit-block-placeholder"></div>_______________________________________________<br><a href="http://www.edulists.com.au">http://www.edulists.com.au</a>
- FAQ, Subscribe, Unsubscribe<br>IT Software Development Mailing List kindly
supported by<br><a href="http://www.vcaa.vic.edu.au">http://www.vcaa.vic.edu.au</a> - Victorian Curriculum and
Assessment Authority
and<br><a href="http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html">http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html</a>
<br><a href="http://www.vitta.org.au">http://www.vitta.org.au</a> - VITTA Victorian Information Technology
Teachers Association Inc</blockquote><div>
<br class="webkit-block-placeholder"></div><hr><div><br class="webkit-block-placeholder"></div>_______________________________________________<br><a href="http://www.edulists.com.au">http://www.edulists.com.au</a>
- FAQ, Subscribe, Unsubscribe<br>IT Software Development Mailing List kindly
supported by<br><a href="http://www.vcaa.vic.edu.au">http://www.vcaa.vic.edu.au</a> - Victorian Curriculum and Assessment
Authority
and<br><a href="http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html">http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html</a>
<br><a href="http://www.vitta.org.au">http://www.vitta.org.au</a> - VITTA Victorian Information Technology
Teachers Association Inc</div>
_______________________________________________<br><a href="http://www.edulists.com.au">http://www.edulists.com.au</a> - FAQ, Subscribe, Unsubscribe<br>IT Software Development Mailing List kindly supported by<br><a href="http://www.vcaa.vic.edu.au">http://www.vcaa.vic.edu.au</a> - Victorian Curriculum and Assessment Authority and<br><a href="http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html">http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html</a> <br><a href="http://www.vitta.org.au">http://www.vitta.org.au</a> - VITTA Victorian Information Technology Teachers Association Inc</blockquote></div><br></div></body></html>