[Year 12 SofDev] Past SD exams - pseudocode algorithms with errors - a collection - Updated with answers

ATKINSON-BUCK, Damien Damien.ATKINSON-BUCK at ivanhoe.com.au
Mon Oct 17 12:04:43 EST 2011


Hi folks,
Can someone please help me out with q3b from the 2007 exam. Below is the algorithm, the question and the answers from the examiner's report. Even taking into account that the examiners switched the array indexes in the question, I still have issue when I desk check.
The algorithm works on the assumption that we essentially start by looking at IngredientID =2 which gives the result of zero
Then on the next pass we look at IngredientID = 3 which gives the result of 2
Then on the last pass we look at IngredientID = 4 which doesn't exist, so it returns a null value.
The examiner report says the answer would be 0, 0, 2 which I don't get.
I'm not sure if I've spent too long staring at these things and am chasing ghosts. Any help would be appreciated
Thanks
Damien

[cid:image003.png at 01CC8CC4.F3BB5180]


[cid:image005.png at 01CC8CC4.F3BB5180]
Examiners report
[cid:image007.png at 01CC8CC4.F3BB5180]




Damien Atkinson-Buck
Member of Academic Staff (Secondary)
________________________________

[Description: Description: cid:image002.jpg at 01CA7D93.5FFD22D0]<http://myivanhoe.net/>



PO BOX 91 The Ridgeway, Ivanhoe, Victoria 3079 Australia
Telephone +61 3 9490 3848 Facsimile +61 3 9490 3490
mailto:damien.atkinson-buck at ivanhoe.com.au
http://myivanhoe.net<http://myivanhoe.net/>




From: Nate Morris [mailto:N.Morris at kardinia.vic.edu.au]
Sent: Thursday, 22 September 2011 3:39 PM
To: sofdev at edulists.com.au
Subject: [Year 12 SofDev] Past SD exams - pseudocode algorithms with errors - a collection - Updated with answers

Hope this helps, just chucked in all the answers from your website Mark.


Nate Morris
Senior Teacher
[Description: Description: Description: LogoTemplate]

Kardinia International College
PO Box 17, Geelong, Victoria, 3220, Australia
Ph: +61 3 5278 9999          Fax:  +61 3 5278 9529
I n.morris at kardinia.vic.edu.au<mailto:n.morris at kardinia.vic.edu.au> I Click to find KIC<http://maps.google.com.au/maps?hl=en&sll=-25.335448,135.745076&safe=on&ie=UTF8&q=Kardinia+International+College,+2+Kardinia+Drive,+Bell+Post+Hill+Victoria+3215&fb=1&gl=au&hq=Kardinia+International+College,+2+Kardinia+Drive,+Bell+Post+Hill+Victoria+3215&hnear=Kardinia+International+College,+2+Kardinia+Drive,+Bell+Post+Hill+Victoria+3215&view=map&cid=18333593491172431013&ll=-38.109438,144.327704&spn=0.00531,0.011319&t=h&z=17> I www.kardinia.vic.edu.au I





Privacy, Virus and Copyright Warning

The information contained in this electronic message (e-mail), and any files transmitted with it:

* is intended for the named recipients only. If you have received this in error, please advise the sender and delete it and any copies immediately;
* Any personal information in this email must be used in accordance with the Privacy Act 1988 and this always applies even if it has been sent to you in error.
* represents the views of the sender and does not necessarily represent the views or formal advice of Ivanhoe Grammar School;
* may be subject to Copyright, so no further use should be made of it without the author's permission.

The School does not represent or warrant that the email or any files attached do not contain errors or are free from computer viruses or other defects nor does it accept responsibility for any loss or damage resulting directly or indirectly from the use of the email or any attached files.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/f7accc6f/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image008.jpg
Type: image/jpeg
Size: 9302 bytes
Desc: image008.jpg
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/f7accc6f/image008-0001.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image009.jpg
Type: image/jpeg
Size: 18388 bytes
Desc: image009.jpg
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/f7accc6f/image009-0001.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 142623 bytes
Desc: image003.png
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/f7accc6f/image003-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.png
Type: image/png
Size: 64293 bytes
Desc: image005.png
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/f7accc6f/image005-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image007.png
Type: image/png
Size: 97476 bytes
Desc: image007.png
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/f7accc6f/image007-0001.png 


More information about the sofdev mailing list