[Year 12 SofDev] Programming Instructions
ATKINSON-BUCK, Damien
Damien.ATKINSON-BUCK at ivanhoe.com.au
Wed May 16 09:14:52 EST 2012
I too am confused by their answer, the way I look at it is an instruction is a single line command and a function can consist of multiple lines of code to perform a specific task
I think the examiner might have had their head in IT Apps world when writing this answer and went with the MS Excel version of the term function, but even then they're pre-written lines of code being called.
>From the repository of all that is good and occasionally correct (webopedia)
Instruction: A basic command<http://www.webopedia.com/TERM/C/command.html>. The term instruction is often used to describe the most rudimentary programming<http://www.webopedia.com/TERM/P/program.html> commands. For example, a computer's<http://www.webopedia.com/TERM/C/computer.html> instruction set<http://www.webopedia.com/TERM/I/instruction_set.html> is the list of all the basic commands in the computer's machine language<http://www.webopedia.com/TERM/M/machine_language.html>
Function: (1) In programming<http://www.webopedia.com/TERM/P/program.html>, a named section of a program that performs a specific task. In this sense, a function is a type of procedure<http://www.webopedia.com/TERM/P/procedure.html> or routine<http://www.webopedia.com/TERM/R/routine.html>. Some programming languages<http://www.webopedia.com/TERM/P/programming_language.html> make a distinction between a function, which returns a value, and a procedure, which performs some operation but does not return a value. Most programming languages come with a prewritten set of functions<http://www.webopedia.com/TERM/F/function.html> that are kept in a library<http://www.webopedia.com/TERM/L/library.html>. You can also write your own functions to perform specialized tasks.
Damien Atkinson-Buck
KLA Head - MYP Technology & SYP Info Tech
________________________________
[Description: 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: Adrian Janson [mailto:janson.adrian.a at edumail.vic.gov.au]
Sent: Wednesday, 16 May 2012 8:39 AM
To: 'Year 12 Software Development Teachers' Mailing List'
Subject: Re: [Year 12 SofDev] Programming Instructions
Just catching up on this thread!
I must confess that I am a bit flawed by this answer - if the 'answer' is A - then certainly I would have I answered it incorrectly - and probably missed out on my '50'.... I am not sure how a 'function' is the answer - perhaps it is a typo?
Cheers,
Adrian Janson
From: sofdev-bounces at edulists.com.au<mailto:sofdev-bounces at edulists.com.au> [mailto:sofdev-bounces at edulists.com.au]<mailto:[mailto:sofdev-bounces at edulists.com.au]> On Behalf Of Mark KELLY
Sent: Wednesday, 16 May 2012 8:05 AM
To: Year 12 Software Development Teachers' Mailing List
Subject: Re: [Year 12 SofDev] Programming Instructions
I wonder if the examiners were thinking of inherent functions such as MID, SQRT, COS etc, because I haven't seen single-line functions since the days of Quickbasic.
On 15 May 2012 22:34, Kevork Krozian <kevork at edulists.com.au<mailto:kevork at edulists.com.au>> wrote:
Hi Mark,
I do have to agree with you.
While a function can modify a variable's content it does not have to do so ( BTW , what is "content" ? is it the value it holds ? the data type it holds ? the name of the variable ? ).
You can write a function that does not modify a variable's "content".
By contrast I also accept that you can write an instruction that does not modify a variable by which I am thinking of print a string.
I can't see how instruction can be wrong here and how it isn't the most appropriate answer.
Kevork Krozian
Edulists Creator Administrator
www.edulists.com.au<http://www.edulists.com.au>
tel: 0419 356 034<tel:0419%20356%20034>
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 Michael Wooldridge
Sent: Tuesday, 15 May 2012 3:05 PM
To: 'Year 12 Software Development Teachers' Mailing List'
Subject: Re: [Year 12 SofDev] Programming Instructions
Re question 9. I see your point and, technically, I think you are quite correct.
Perhaps however the answer lies in the word 'modifies'. Is A=0, setting the initial value of the variable, while the function modifies it? I don't know! It's a debate that could rage on for a while.
If it does, I'm siding with you, that an instruction is the most appropriate answer.
[Description: signiture]
"It is the tragedy of the world that no one knows what he doesn't know - and the less a man knows, the more sure he is that he knows everything" Joyce Cary.
Michael Wooldridge
Information Technology Coordinator
Mornington Secondary College
1051 Nepean Highway, Mornington 3931
*: 03 59700250<tel:03%2059700250> 6: 03 59700299<tel:03%2059700299>
mwo at mornsc.vic.edu.au<mailto:mwo at mornsc.vic.edu.au>
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. There, that just about covers everyone's arse but yours, sorry.
From: sofdev-bounces at edulists.com.au<mailto:sofdev-bounces at edulists.com.au> [mailto:sofdev-bounces at edulists.com.au]<mailto:[mailto:sofdev-bounces at edulists.com.au]> On Behalf Of Mark KELLY
Sent: Tuesday, 15 May 2012 2:06 PM
To: Year 12 Software Development Teachers' Mailing List
Subject: [Year 12 SofDev] Programming Instructions
I've put the SD examiners' comments on the 2011 exam into my post mortem
(http://www.vceit.com/postmortems/2011sd/SD2011exam.htm)
In the process I noticed section A, Q9...
In a program, a line of code that modifies a variable's content is best described as a
A. function.
B. procedure.
C. instruction.
D. control structure.
The official answer was A.
I don't know about this one... I acknowledge the word "best" but still wonder why couldn't the answer equally be an instruction?
A common instruction like A=0 modifies a variable's content just as often as a function would... more often, probably.
The study design (U3O2 KK09) says kids need to know "processing features of programming languages, including instructions, procedures, methods, functions and control structures" but instructions are not defined by the glossary, the old Fitzpatrick/Keane text, or Adrian's text (it's not in the index at least).
What do you regard as an instruction? Trying to get a definition from the internet is frustratingly elusive...
--
Mark Kelly
Manager of ICT, Reporting, IT Learning Area
McKinnon Secondary College
McKinnon Rd McKinnon 3204, Victoria, Australia
Direct line / Voicemail: +613 8520 9085<tel:%2B613%208520%209085>, Fax +613 9578 9253<tel:%2B613%209578%209253>
kel at mckinnonsc.vic.edu.au<mailto:kel at mckinnonsc.vic.edu.au> (don't use my Edumail account!)
VCE IT Lecture Notes: http://vceit.com
Moderator: IT Applications Edulist
--
An E-flat, a C, and a G go into a bar. The bartender says, "I'm sorry, but I can't serve minors."
_______________________________________________
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
Manager of ICT, Reporting, IT Learning Area
McKinnon Secondary College
McKinnon Rd McKinnon 3204, Victoria, Australia
Direct line / Voicemail: +613 8520 9085, Fax +613 9578 9253
kel at mckinnonsc.vic.edu.au<mailto:kel at mckinnonsc.vic.edu.au> (don't use my Edumail account!)
VCE IT Lecture Notes: http://vceit.com
Moderator: IT Applications Edulist
--
An E-flat, a C, and a G go into a bar. The bartender says, "I'm sorry, but I can't serve minors."
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.
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/20120515/d60cd529/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 9302 bytes
Desc: image002.jpg
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20120515/d60cd529/image002-0001.jpg
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image003.png
Type: image/png
Size: 7858 bytes
Desc: image003.png
Url : http://www.edulists.com.au/pipermail/sofdev/attachments/20120515/d60cd529/image003-0001.png
More information about the sofdev
mailing list