[Year 12 SofDev] MC
Andrew Shortell
shortell at get2me.net
Tue Nov 22 11:20:24 EST 2011
Yes but...
Unless you have deliberately removed the 10 it is still there somewhere.
The pointer no longer points to it; the links no longer link to it etc. in
this Q the pointer no longer points to it.
But unless you have deliberately removed it from the computer all together
it is there. Where else could it have gone?
Remember that a pop only COPIES the thing out of RAM ---- cut is not the
thing here 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
Also remember that this is a theory question. It CANNOT be too program
orientated because different people teach with different software.
Andrew Shortell
--
Andrew Shortell
mailto:shortell at get2me.net
Leaving the
Heidelberg Teaching Unit at the end of 2011
Ph 9470 3403
Fax 9470 3215
On 22/11/11 10:55 AM, "Poultney, Gordon A"
<Poultney.Gordon.A at edumail.vic.gov.au> wrote:
> I'm still not convinced Adrian, but am open...
>
> The questions states " which of the following is the correct stack at the end
> of the 3 operations"
> Is the '10' still on the stack? Not really because the reference to it has
> ahhh 'moved on'.
> If you were to take a snapshot (say value printout) of the stack at this time,
> the 10 is no longer accessible surely?
> Please correct me if i'm wrong in this?
>
> 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!
> cheers
> gordon
>
>
>
> -----------
> Gordon Poultney
> Horsham College
>
> From: sofdev-bounces at edulists.com.au [sofdev-bounces at edulists.com.au] on
> behalf of Adrian Janson [janson.adrian.a at edumail.vic.gov.au]
> Sent: Tuesday, 22 November 2011 9:32 AM
> To: 'Year 12 Software Development Teachers' Mailing List'
> Subject: Re: [Year 12 SofDev] MC
>
> Hi everyone,
>
> My 2c now!
>
> I disagree with this view we are discussing a stack implementation in a 1-D
> array and in such a case, a stack will work in exactly this way. Isn¹t this
> the way that we all taught it? VB.Net has an inbuilt stack data structure and
> I certainly made use of it but only after I taught my class how to implement
> a stack in a 1-D array. I am interested to hear how others taught it I just
> felt that if I used the stack¹ data structure that the understanding of my
> class would have been minimal. 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 and after we had completed all of these I showed them the stack¹
> data structure in VB.Net.
>
> Is this what others are doing or am I way off base?
>
> Cheers,
> Adrian
>
> Adrian Janson B.Sc, Dip.Ed, M.Ed
> Director of ICT
> Melbourne High School, Forrest Hill, South Yarra, Victoria 3141 Australia.
> Phone: 03 9826 0711 International: +61 3 9826 0711
> Fax: 03 9826 8767 International: +61 3 9826 8767
> E-mail: janson.adrian.a at edumail.vic.gov.au <UrlBlockedError.aspx>
> Website: http://www.mhs.vic.edu.au <http://www.mhs.vic.edu.au/>
> Blog: http://jansona.edublogs.org <http://jansona.edublogs.org/>
>
>
>
>
>
> From: sofdev-bounces at edulists.com.au [mailto:sofdev-bounces at edulists.com.au]
> On Behalf Of Andrew Shortell
> Sent: Tuesday, 22 November 2011 8:49 AM
> To: Year 12 Software Development Teachers' Mailing List
> Subject: Re: [Year 12 SofDev] MC
>
> Hi all (you too K)
>
> Older members of the list might remember back a long time ago when we were
> taught programming.
>
> This way of doing is how it was taught way back then. It made perfect sense to
> me. (yes I am 53+ !! ;-)
>
> Modern programming languages do not have to be so parsimonious with RAM and
> processor speed thus the implementation nowadays is not so old fashioned.
>
> 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.....! )
>
> Off my soapbox and back to work
> I need to start packing my gear soon as I am off to a new school in 2012
> Very exciting
>
> Andrew
--
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20111122/6314535f/attachment.html
More information about the sofdev
mailing list