VCE Stuff > VCE Computing: Software Development

Try these questions, budding IT:SD candidates :)

<< < (2/2)

flame:
Ooo IT! :P


--- Quote from: Excalibur on October 14, 2008, 10:52:03 am ---2. How many times will the following algorithm execute?

num1 = 10
num2 = 2
DO WHILE (num1 < num2)
     num1 = num1 / 2
     num2 = num2 * num2
END DO

--- End quote ---

Hmm..trick question? It shouldn't execute at all, because 10 is not lower than 2. If I'm completely wrong, let me know :D

Hopefully exam won't be too bad...but if practice exam we did was any indication, not good! Haha well did no study for that and got like 60%, so obviously a lot of cramming to come.

I vote we have some revision sessions on this forum :)

Navigation

[0] Message Index

[*] Previous page

Go to full version