<HTML>
<HEAD>
<TITLE>Re: [Year 12 SofDev] MC</TITLE>
</HEAD>
<BODY>
<FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Yes but...<BR>
<BR>
Unless you have deliberately removed the 10 it is still there &#8212; somewhere.<BR>
The pointer no longer points to it; the links no longer link to it etc. &nbsp;in this Q the pointer no longer points to it.<BR>
<BR>
But unless you have deliberately removed it from the computer all together it is there. Where else could it have gone?<BR>
<BR>
Remember that a pop only COPIES the thing out of RAM ---- cut is not the thing here &#8212; cut is a copy and then a delete from old position. This is a POP and so it just copies. There is no other actual action in the pure sense of it<BR>
<BR>
Also remember that this is a theory question. It CANNOT be too program orientated because different people teach with different software.<BR>
<BR>
Andrew Shortell<BR>
<BR>
-- <BR>
</SPAN></FONT><FONT SIZE="4"><FONT FACE="Apple Casual"><SPAN STYLE='font-size:14pt'>Andrew Shortell<BR>
</SPAN></FONT></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
<a href="mailto:shortell@get2me.net">mailto:shortell@get2me.net</a> <BR>
Leaving the <BR>
Heidelberg Teaching Unit at the end of 2011<BR>
Ph 9470 3403<BR>
Fax &nbsp;9470 3215<BR>
<BR>
<BR>
<BR>
On 22/11/11 10:55 AM, &quot;Poultney, Gordon A&quot; &lt;<a href="Poultney.Gordon.A@edumail.vic.gov.au">Poultney.Gordon.A@edumail.vic.gov.au</a>&gt; wrote:<BR>
<BR>
</SPAN></FONT><BLOCKQUOTE><FONT SIZE="2"><FONT FACE="Tahoma, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10pt'>I'm still not convinced Adrian, but am open...<BR>
<BR>
The questions states &quot; which of the following is the correct stack at the end of the 3 operations&quot; <BR>
&nbsp;Is the '10' still on the stack? Not really because the reference to it has ahhh 'moved on'. <BR>
If you were to take a snapshot (say value printout) of the stack at this time, the 10 is no longer accessible surely?<BR>
Please correct me if i'm wrong in this?<BR>
<BR>
This reminds of the old argument about the tree falling in the forest and whether there is any sound if there is no-one around to hear it fall! <BR>
cheers<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;gordon<BR>
<BR>
<BR>
<BR>
</SPAN></FONT></FONT><FONT FACE="Arial"><SPAN STYLE='font-size:11pt'><B>-----------<BR>
</B></SPAN><FONT SIZE="2"><SPAN STYLE='font-size:10pt'>Gordon Poultney<BR>
Horsham College<BR>
</SPAN></FONT></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><HR ALIGN=CENTER SIZE="3" WIDTH="100%"></SPAN></FONT><FONT FACE="Tahoma, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><B>From:</B></SPAN><SPAN STYLE='font-size:12pt'> <a href="sofdev-bounces@edulists.com.au">sofdev-bounces@edulists.com.au</a> [<a href="sofdev-bounces@edulists.com.au">sofdev-bounces@edulists.com.au</a>] on behalf of Adrian Janson [<a href="janson.adrian.a@edumail.vic.gov.au">janson.adrian.a@edumail.vic.gov.au</a>]<BR>
<B>Sent:</B> Tuesday, 22 November 2011 9:32 AM<BR>
<B>To:</B> 'Year 12 Software Development Teachers' Mailing List'<BR>
<B>Subject:</B> Re: [Year 12 SofDev] MC<BR>
</SPAN></FONT><SPAN STYLE='font-size:12pt'><FONT FACE="Times New Roman"><BR>
</FONT></SPAN><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi everyone,<BR>
&nbsp;<BR>
My 2c now!<BR>
&nbsp;<BR>
I disagree with this view &#8211; we are discussing a stack implementation in a 1-D array and in such a case, a stack will work in exactly this way. &nbsp;Isn&#8217;t this the way that we all taught it? &nbsp;VB.Net has an inbuilt stack data structure and I certainly made use of it &#8211; but only after I taught my class how to implement a stack in a 1-D array. &nbsp;I am interested to hear how others taught it &#8211; I just felt that if I used the &#8216;stack&#8217; data structure that the understanding of my class would have been minimal. &nbsp;I first taught them how a stack worked, then asked them to write a push and pop algorithm using a 1-D array, which we then coded &#8211; and after we had completed all of these &#8211; I showed them the &#8216;stack&#8217; data structure in VB.Net.<BR>
&nbsp;<BR>
Is this what others are doing or am I way off base?<BR>
&nbsp;<BR>
Cheers,<BR>
Adrian<BR>
&nbsp;<BR>
</SPAN></FONT><FONT SIZE="5"><FONT FACE="Times New Roman"><SPAN STYLE='font-size:18pt'><B>Adrian Janson </B></SPAN></FONT></FONT><FONT FACE="Times New Roman"><B><FONT SIZE="1"><SPAN STYLE='font-size:7pt'>B.Sc, Dip.Ed, M.Ed<BR>
</SPAN></FONT><FONT SIZE="4"><SPAN STYLE='font-size:14pt'>Director of ICT<BR>
</SPAN></FONT></B><SPAN STYLE='font-size:12pt'>Melbourne High School, Forrest Hill, South Yarra, Victoria 3141 Australia.<BR>
Phone: 03 9826 0711 International: +61 3 9826 0711<BR>
Fax: 03 9826 8767 International: +61 3 9826 8767<BR>
E-mail: <a href="janson.adrian.a@edumail.vic.gov.au">janson.adrian.a@edumail.vic.gov.au</a> &lt;UrlBlockedError.aspx&gt; <BR>
Website: <a href="http://www.mhs.vic.edu.au">http://www.mhs.vic.edu.au</a> &lt;<a href="http://www.mhs.vic.edu.au/">http://www.mhs.vic.edu.au/</a>&gt; <BR>
Blog: <a href="http://jansona.edublogs.org">http://jansona.edublogs.org</a> &lt;<a href="http://jansona.edublogs.org/">http://jansona.edublogs.org/</a>&gt; <BR>
</SPAN></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'> <BR>
&nbsp;<BR>
&nbsp;<BR>
&nbsp;<BR>
</SPAN></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'><BR>
</SPAN></FONT><FONT SIZE="2"><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:10pt'><B>From:</B> <a href="sofdev-bounces@edulists.com.au">sofdev-bounces@edulists.com.au</a> [<a href="mailto:sofdev-bounces@edulists.com.au">mailto:sofdev-bounces@edulists.com.au</a>] <B>On Behalf Of </B>Andrew Shortell<BR>
<B>Sent:</B> Tuesday, 22 November 2011 8:49 AM<BR>
<B>To:</B> Year 12 Software Development Teachers' Mailing List<BR>
<B>Subject:</B> Re: [Year 12 SofDev] MC<BR>
</SPAN></FONT></FONT><FONT FACE="Times New Roman"><SPAN STYLE='font-size:12pt'> <BR>
</SPAN></FONT><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'>Hi all (you too K)<BR>
<BR>
Older members of the list might remember back a long time ago when we were taught programming.<BR>
<BR>
This way of doing is how it was taught way back then. It made perfect sense to me. (yes I am 53+ !! &nbsp;;-)<BR>
<BR>
Modern programming languages do not have to be so parsimonious with RAM and processor speed thus the implementation nowadays is not so old fashioned.<BR>
<BR>
Perhaps this is one of those times when making the effort to understand the exam setting panel makes sense (many of you know my preaching about that so no more on it now and NO I am not on the panel). Clearly the hard core programmer on the panel learnt theory back then... (or was taught by someone who learnt the theory back then.....! )<BR>
<BR>
Off my soapbox and back to work<BR>
I need to start packing my gear soon as I am off to a new school in 2012<BR>
Very exciting<BR>
<BR>
Andrew<BR>
</SPAN></FONT></BLOCKQUOTE><FONT FACE="Calibri, Verdana, Helvetica, Arial"><SPAN STYLE='font-size:11pt'><BR>
-- <BR>
</SPAN></FONT>
</BODY>
</HTML>