Académique Documents
Professionnel Documents
Culture Documents
7. (a) A check digit is an extra digit to validate a code / to check the correctness of a code 1
(b) (i) 2
Values of i just after executing the for loop n sum
0 4 4
1 3 7
2 14 12
3 3 15
All correct for n: 1 mark
All correct for sum: 1 mark
(ii) (1) 28
(2) invalid card number
(d) if ( sum % 10 == 0 ) 1
printf("Calculated check digit is 0\n");
else 1
printf("Calculated check digit is %d\n", 10 - (sum % 10));
OR:
8. #include <stdio.h>
int main()
{
int NUM, COUNT, LOWER, UPPER; 1
10. (a) trackball, touch screen, touch pad, trackpoint, joystick (any two) 1+1
(iii) Data sent across the data line is encrypted (encoded) into 1
unreadable strings of messages. 1
The coded strings of messages are decrypted (decoded) at the receiving end. 1
(e) Once the database in a district computer is updated, messages should be sent to other district computers for 2
synchronizing the copies of the database. (update the databases in the other computers)
(f) Customers will spend more time at the ATM kiosks in waiting the process. (loading) 2
If the district computer C is out of order, all ATM kiosks cannot be operated. (reliability) 2
Effective communications:
Relevance 0 / 1 /2
Language/Style 0/1/2
correct and
appropriate
0/1/2/3/4