[Year 12 SofDev] compiler question

Matheson, Geoff J matheson.geoff.j at edumail.vic.gov.au
Mon Sep 2 15:44:50 EST 2013


I'd suggest that "types in PIP" relates to creating some kind of test harness for his code, and thus it it part of "testing" but not that the program is running. But it's a badly worded question, because the program crashing would usually mean the program itself actually starts running.

Geoff Matheson

On 2 Sep 2013, at 2:39 pm, "Andrew Pate" <arp at mentonegrammar.net<mailto:arp at mentonegrammar.net>> wrote:

Hi all,
I have purchased the IARTV trial exams and am wondering about one of their multi-choice answers.Your help is, as always, appreciated.

The question asks about a function written which is called “POP”, but “when testing his stack Alan accidentally types in PIP and the program crashes”.
The multi-choice answers has us choose from runtime error or syntax error.

They suggest the answer is syntax error (and explain that a name, expression etc…that the compiler cannot understand causes a syntax error)

Now, if the program IS RUNNING and THEN crashes, does that not imply that it compiled? Therefore, it is a runtime error (where validation of input was not handled) or am I thinking too language specifically?

Thanks


Andrew Pate
Technology Faculty Coordinator

Mentone Grammar
63 Venice Street, Mentone
Victoria, Australia 3194
T +61 3 9584 4211   F +61 3 9581 3290
M  +61 3 0416 228 436
arp at mentonegrammar.net<mailto:arp at mentonegrammar.net>
www.mentonegrammar.net<http://www.mentonegrammar.net/>

<image001.jpg>
Outstanding opportunities
for girls and boys ELC-12



See more about Mentone Grammar<www.mentonegrammar.net>. This email and any attachments to it are confidential. You must not use, disclose or act on the email if you are not the intended recipient. If you have received this email in error, please let us know by contacting the sender and deleting the original email.
_______________________________________________
http://www.edulists.com.au - FAQ, Subscribe, Unsubscribe
IT Software Development Mailing List kindly supported by
http://www.vcaa.vic.edu.au - Victorian Curriculum and Assessment Authority and
http://www.vcaa.vic.edu.au/vce/studies/infotech/softwaredevel3-4.html
http://www.vitta.org.au  - VITTA Victorian Information Technology Teachers Association Inc
http://www.swinburne.edu.au/ict/schools - Swinburne University

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/20130902/c688bb5c/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 5013 bytes
Desc: image001.jpg
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20130902/c688bb5c/image001-0001.jpg 


More information about the sofdev mailing list