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

Matheson, Heath A Matheson.Heath.A at edumail.vic.gov.au
Mon Oct 17 14:22:22 EST 2011


Hi Damien,

I think you're all fine except that "Until Ingredient_ID = Num_Ingredients" in the fourth last line. As Num_Ingredients is 3 this means the last pass is IngredientID3 rather than 4.
 Qty1 was set to zero when the array was set up.

Hope this helps
Heath

From: sofdev-bounces at edulists.com.au [mailto:sofdev-bounces at edulists.com.au] On Behalf Of ATKINSON-BUCK, Damien
Sent: Monday, 17 October 2011 12:05 PM
To: Year 12 Software Development Teachers' Mailing List
Subject: Re: [Year 12 SofDev] Past SD exams - pseudocode algorithms with errors - a collection - Updated with answers


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:image001.png at 01CC8CD7.34B3FD10]


[cid:image002.png at 01CC8CD7.34B3FD10]
Examiners report
[cid:image003.png at 01CC8CD7.34B3FD10]




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.

Important - This email and any attachments may be confidential. If received in error, please contact us and delete all copies. Before opening or using attachments check them for viruses and defects. Regardless of any loss, damage or consequence, whether caused by the negligence of the sender or not, resulting directly or indirectly from the use of any attached files our liability is limited to resupplying any affected attachments. Any representations or opinions expressed are those of the individual sender, and not necessarily those of the Department of Education and Early Childhood Development.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/5ba5c52d/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 142623 bytes
Desc: image001.png
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/5ba5c52d/image001-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 64293 bytes
Desc: image002.png
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/5ba5c52d/image002-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 97476 bytes
Desc: image003.png
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/5ba5c52d/image003-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image004.jpg
Type: image/jpeg
Size: 9302 bytes
Desc: image004.jpg
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/5ba5c52d/image004-0001.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image005.jpg
Type: image/jpeg
Size: 18388 bytes
Desc: image005.jpg
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20111017/5ba5c52d/image005-0001.jpg 


More information about the sofdev mailing list