[Year 12 SofDev] compiler question

ATKINSON-BUCK, Damien Damien.ATKINSON-BUCK at ivanhoe.com.au
Tue Sep 3 15:51:08 EST 2013


Hi all,
My 1.8 cents worth;
It’s a runtime error. If it was a syntax error, then it would be when Alan was typing in the actual code itself. Given he’s typing while the program is running, I would assume that it’s a runtime error because it’s looking for a function that does not exist.
Either way, it’s bad coding and a badly written question
Cheers
Damien

Damien Atkinson-Buck
Head of Learning Area: Technology/Arts

[cid:image002.png at 01CEA8BC.F93F0D20]

p: +61 3 9490 3848

e: damien.atkinson-buck at ivanhoe.com.au<mailto:damien.atkinson-buck at ivanhoe.com.au>

f: +61 3 9490 3490

w: www.ivanhoe.com.au<http://www.ivanhoe.com.au/>



From: Mark [mailto:mark at vceit.com]
Sent: Tuesday, 3 September 2013 11:21 AM
To: Year 12 Software Development Teachers' Mailing List
Subject: Re: [Year 12 SofDev] compiler question

Hi David.
The software's syntax consisted of only 'PUSH' and 'POP', so the entry of an unknown command 'PIP' would be a syntax error from the software's point of view.

Cheers
Mark
On 3 September 2013 08:41, David Dawson <David.Dawson at wesleycollege.net<mailto:David.Dawson at wesleycollege.net>> wrote:
Oh – see this
http://en.wikipedia.org/wiki/Syntax_error


David Dawson
Head of Design and Technology Learning Area, Head of Learning Technologies
St Kilda Rd Campus, Wesley College
577 St Kilda Rd Melbourne 3004 Bus Ph 8102 6340
This email is intended only for the use of the individual or entity named above and may contain information that is confidential and privileged. If you are not the intended recipient, you are hereby notified that any dissemination, distribution or copying of this email is strictly prohibited. If you have received this email in error, please email a reply to Wesley College and destroy the original message.

From: sofdev-bounces at edulists.com.au<mailto:sofdev-bounces at edulists.com.au> [mailto:sofdev-bounces at edulists.com.au<mailto:sofdev-bounces at edulists.com.au>] On Behalf Of Mark
Sent: Monday, 2 September 2013 11:19 PM
To: Year 12 Software Development Teachers' Mailing List
Subject: Re: [Year 12 SofDev] compiler question

But the trigger of the crash was incorrect syntax of the input into the program (which is acting as a compiler/interpreter)...

On 2 September 2013 21:54, Calum Munro <munrocs at aquinas.vic.edu.au<mailto:munrocs at aquinas.vic.edu.au>> wrote:
Hi Andrew,

I'm with you. The program runs, so no syntax error. The program crashes when given an incorrect input, that's a run time error for me.

Calum

On 02/09/2013, at 2:37 PM, "Andrew Pate" <arp at mentonegrammar.net<mailto:arp at mentonegrammar.net><mailto: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<tel:%2B61%203%209584%204211>   F +61 3 9581 3290<tel:%2B61%203%209581%203290>
M  +61 3 0416 228 436
arp at mentonegrammar.net<mailto:arp at mentonegrammar.net><mailto:arp at mentonegrammar.net<mailto:arp at mentonegrammar.net>>
www.mentonegrammar.net<http://www.mentonegrammar.net><http://www.mentonegrammar.net/>

--
Mark Kelly
mark AT vceit DOT com
http://vceit.com

Day 19, I have successfully conditioned my master to smile and write in his book every time I drool.- Pavlov's Dog




____________________________________________________________________________

Sapere Aude - Dare To Be Wise

Wesley College Melbourne is a world class coeducational independent school developing
the whole person through timeless principles of learning:
- to know
- to do
- to live with
- to be
with innovation and wisdom

ABN 38 994 068 473  CRICOS00354G
____________________________________________________________________________

This email is intended only for the use of the individual or entity named above and may
contain information that is confidential and privileged. If you are not the intended recipient,
you are hereby notified that any dissemination,  distribution or copying of this email is
strictly prohibited. If you have received this email in error, please email a reply to
Wesley College and destroy the original message.

_______________________________________________
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



--
--
Mark Kelly
mark AT vceit DOT com
http://vceit.com

Day 19, I have successfully conditioned my master to smile and write in his book every time I drool.- Pavlov's Dog





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/20130903/c6801a50/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.png
Type: image/png
Size: 1024 bytes
Desc: image001.png
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20130903/c6801a50/image001-0001.png 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.png
Type: image/png
Size: 3779 bytes
Desc: image002.png
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20130903/c6801a50/image002-0001.png 


More information about the sofdev mailing list