[Year 12 SofDev] FW: VITTA practice exam Sample 2 - a few queries

Poultney, Gordon A Poultney.Gordon.A at edumail.vic.gov.au
Mon Oct 17 15:18:11 EST 2011


yep  spot on Kevork, 

i'm just doing that one now and found the same problems.... and have given students a heads up!

Also, Section A q 4 is dubious as  a floating point with sample data in format 9 3/4 ??

Section B 3a would be better worded "... when designing the interface"

Some good questions too

cheers
               Gordon
-----------
Gordon Poultney
Horsham College

________________________________________
From: sofdev-bounces at edulists.com.au [sofdev-bounces at edulists.com.au] on behalf of Kevork Krozian [kevork at edulists.com.au]
Sent: Friday, 14 October 2011 10:39 PM
To: 'Year 12 Software Development Teachers' Mailing List'
Subject: [Year 12 SofDev] FW: VITTA practice exam Sample 2 - a few queries

Hi Friends and Colleagues,

 I am inviting discussion and feedback on my interpretation of the VITTA
practice exam number 2

I have read the following a number of times so unless I have made a
mistake here are my comments for Q6, Section C.

The algorithm question in Q6 Section C has a number of problems:

1. If age CustomerAge is calculated as a real or float it will return a
fraction of a year eg. 60.7 or whatever since Fred Watson born 3/3/51 is
60 years and 7 months for example. This will make the test If CustomerAge
> 60 true and not necessary to be changed to If CustomerAge >=60 since
3/3/11 has passed ( 60 years exactly from the DOB of Fred on 3/3/51 ) .

2. The comments section that the number of trips is being stored in a 2D
array is not correct. CustomerTripInfo[NextCustomerID].NumTrips is a
reference to a field (NumTrips)  in an array of records
(CustomerTripsInfor[NextCustomerInfo] )

3. The counter for NumTrips only adds 1 or increments if a CustomerID is
repeated and not when it appears once:
      If LastCustomerID = NextCustomerID
     CustomerTripInfo[NextCustomerID].NumTrips <-
CustomerTripInfo[NextCustomerID].NumTrips + 1
   Therefore the counter is out by 1.
  This also assumes the initial value of
CustomerTripInfo[NextCustomerID].NumTrips is 0 which is not certain. So, I
get the following for NumTrips :
       CustomerID  NumTrips
                1344      1
                1451      0
                2942      1
                31256     0

  A better way to do this would be
 Repeat
        Read NextCustomerID From AllCustomers
        If LastCustomerID = NextCustomerID
                     CustomerTripInfo[NextCustomerID].NumTrips <-
CustomerTripInfo[NextCustomerID].NumTrips + 1
        Else
             CustomerTripInfo[NextCustomerID].NumTrips = 1
        LastCustomerID <- NextCustomerID
Until NextCustomerID = Blank

4. The error regarding the If CustomerAge <= 16 should be changed to If
CustomerAge < 16 as stated in the solutions.

5. The division by 20 instead of is also another mistake (subsequently
picked up) :
    If CustomerAge > 60
                FareTotal <- FareTotal - FareTotal /20
Should be

            If CustomerAge > 60
                FareTotal <- FareTotal - FareTotal /5    // to get a 20%
discount

6. In the solutions given the expected fare for 1344 is $6.00 whereas it
should be expected to be $4.00 for 2 trips. The actual will be $2 for the
reasons outlined in (1) above.

Also Q4 Section C, shows External Entity E as "Depot" .  I would have
thought "Customer" would have been the external entity supplying
CustomerID, CustomerTrips to the system even though it is being batch
processed at the end of the day from the depot through the wireless link.

Comments ??


Speak soon

Kevork


_______________________________________________
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

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.



More information about the sofdev mailing list