[Year 12 SofDev] SD VITTA exam 2, multichoice #1

Kevork Krozian Kroset at novell1.fhc.vic.edu.au
Fri Oct 12 11:32:53 EST 2007


Hi Mark,

 I have to agree.

Do ...... while ( x < 10 ) - post test.
Do ..... until   ( x  = 10 ) - post test
For  (count = 1; count < 10; count++)  ....... Next     -- pre test.
EOF is only a test that can occur pre or post loop.



 The answer should be C .

Regards
Kevork


>>> Mark Kelly <kel at mckinnonsc.vic.edu.au> 12/10/2007 11:59 am >>>
I'm curious what others think...

"Testing at the 'top of the loop' is performed by which syntax in 
pseudo-code?

A. Do..While
B. Do..Until
C. For..Next
D. EOF"

The suggested answer given is A, with the explanation that 'Do..Until is 
often referred to as testing at the bottom of the loop...'

But surely both do..while and do..until both test at the bottom of the loop.

A While..Wend, on the other hand, tests at the top.

-- 
Mark Kelly
Manager - Information Systems
McKinnon Secondary College
McKinnon Rd McKinnon 3204, Victoria, Australia
Direct line / Voicemail: 8520 9085
School Phone +613 8520 9000
School Fax +613 95789253
kel AT mckinnonsc.vic.edu.au

Webmaster - http://www.mckinnonsc.vic.edu.au 
IT Lecture notes: http://vceit.com 
Moderator: IT Applications Mailing List

You'll know when we are officially a civilised race: our schools have 
all the money they need and the Air Force has to run a chook raffle to 
buy a new bomber.

_______________________________________________
http://www.edulists.com.au 
IT Software Development Mailing List kindly supported by
http://www.vcaa.vic.edu.au - Victorian Curriculum and Assessment Authority and
http://www.vitta.org.au/vce/studies/infotech/softwaredevel3-4.html  - VITTA Victorian Information Technology Teachers Association Inc




More information about the sofdev mailing list