SlideShare una empresa de Scribd logo
1 de 8
Descargar para leer sin conexión
CAMBRIDGE INTERNATIONAL EXAMINATIONS
                                 General Certificate of Education
                          Advanced Subsidiary Level and Advanced Level

             COMPUTING                                                                9691/02
             Paper 2: Practical Tasks

                                                                                  May/June 2004




  READ THESE INSTRUCTIONS FIRST

  Write your Centre number, candidate number and name on all the work you hand in.
  Write in dark blue or black pen on both sides of the paper.
  Do not use staples, paper clips, highlighters, glue or correction fluid.

  Answer all questions.
  The number of marks is given in brackets [ ] at the end of each question or part question.




                        This document consists of 5 printed pages and 3 blank pages.

Ó CIE 2004                                                                                     [Turn over
2

                                           Answer all questions.

Task 1 [29 marks]

This is a software development task and an implementation task.

An English department in a college expects students to read a number of books which the
Department keeps in its library. The Department wishes to keep details of books borrowed by
students to ensure that the students read the books set by the tutors. A student borrows many books
and a book is borrowed by many students.

A database consisting of the tables Student, Book and StudentBook is to be created. The
StudentBook table is used to link the other two tables and has the following attributes (fields), each
with the specified data type.

 Attribute (field)                                                Data Type

 StudentID                                                        Numeric type

 BookID                                                           Numeric type

 Date Borrowed                                                    Date type

The key is a compound key formed from StudentID and BookID.

    (a) Create a table called Student to hold details of all the students.

          (i) Describe the

                     · purpose of each attribute,
                     · data type of each attribute.                                                   [6]

        (ii) Identify the key.                                                                        [1]

    (b) Create a table called Book to hold the details of the books.

          (i) Describe the

                     · purpose of each attribute,
                     · data type of each attribute.                                                   [8]

        (ii) Identify the key.                                                                        [1]

    (c) Create data for the three tables. You should have at least 20 students and 15 books. The
        data should be suitable for testing the tables. Include a print-out of your tables in your
        documentation.                                                                          [7]

    (d) Create an interface that allows a user to input a book's ID and prints a report showing a list of
        the students who have borrowed that book and the dates on which each student borrowed
        the book. Provide hard copy evidence that the report is produced.                             [3]

    (e) Create an interface that allows a user to input a student's ID and prints a report showing a list
        of the books the student has borrowed and the dates on which each book was borrowed.
        Provide hard copy evidence that the report is produced.                                      [3]



                                                  9691/2/M/J/04
3

Task 2 [10 Marks]

This is an algorithm trace task. No implementation is required.

L, R and Data are one-dimensional arrays, each with 5 elements numbered from 1 to 5. The contents
of the three arrays are shown in Fig. 2.1.


        Index       L             Index     R                  Index          Data
             1      2                 1      3                     1          DOG
             2      0                 2      4                     2         BEAR
             3      5                 3      0                     3         HORSE
             4      0                 4      0                     4          CAT
             5      0                 5      0                     5        GIRAFFE

                                            Fig. 2.1

In these arrays, L(3) contains the number 5, R(2) contains the number 4 and Data(1) contains the
data DOG.

Read the following algorithm.

    T=0
    P=1
    REPEAT
        WHILE P <> 0 DO
             T=T+1
             S(T) = P
             P = L(P)
        END WHILE
        IF T > 0 THEN
             Finished = FALSE
             P = S(T)
             T=T–1
             OUTPUT Data(P)
             P = R(P)
        ELSE
             Finished = TRUE
        END IF
    UNTIL Finished
    EXIT

                                                            Task 2 is continued on page 4 overleaf.




                                            9691/2/M/J/04                               [Turn over
4

Complete the trace table shown in Fig. 2.2. It is only necessary to enter values in the table when they
change. You should work from left to right and top to bottom. The first six lines are completed for
you.

                     T           P         S(1)              S(2)    Finished   Output
                     0           1
                     1                       1
                                 2
                     2                                           2
                                 0                                   FALSE
                                 2



                                                  Fig 2.2
                                                                                                   [10]




                                                 9691/2/M/J/04
5

Task 3 [21 Marks]

This is a software development task and an implementation task.

Roman numerals are still used for certain limited purposes such as copyright dates. The symbols
used are I =1, V = 5, X = 10, L = 50, C = 100, D = 500 and M =1000.

One definition of Roman numbers is

    ·    the letters must be in descending order of value,
    ·    the value of the number is the sum of all the letters,
    ·    each letter must be used a minimum number of times.

This is known as the additive rule and is the only rule to be used in this question.

For example

    MCX = 1000 + 100 + 10 = 1110;
    MXC is invalid because of wrong order;
    IIII = 1 + 1 + 1 + 1 =4;
    IIIII is invalid because it can be replaced with V.

A manufacturer wishes to make a new calculator that allows a user to input a number using Roman
numerals and displays the number in both Roman and Arabic forms.

The calculator must

    ·    allow a user to enter the Roman numerals up to a value of 7000 (MMMMMMM),
    ·    prevent the user entering an invalid numeral,
    ·    display the number entered using Roman numerals,
    ·    update this display as each Roman numeral is entered,
    ·    display the number entered using Arabic numerals,
    ·    update this display as each Roman numeral is entered,
    ·    allow the user to clear both displays, the Roman number and the Arabic number.

The manufacturer wishes to use a simulation of this calculator so that the user interface can be
tested.

    (a) Design a user interface that can be used to test the above facilities. Provide hard copy
        showing this design. (A screen dump is acceptable.)                                   [5]


    (b) Using a high-level language of your choice, implement and test your design to show that all
        the above facilities work correctly.

         (i) Provide hard copy of your annotated program, stating the language and version used. [5]

        (ii) Provide a table showing your test data and the expected and actual results.         [6]

        (iii) Supply hard copy evidence of testing your solution. (Screen dumps are acceptable, but
              must show the data entered and the results.)                                      [5]




                                                 9691/2/M/J/04
6

BLANK PAGE




  9691/2/M/J/04
7

BLANK PAGE




  9691/2/M/J/04
8

BLANK PAGE




  9691/2/M/J/04

Más contenido relacionado

Similar a June 04 P32

Computing Paper 2 Practical Tests may june 2004 general certificate of educat...
Computing Paper 2 Practical Tests may june 2004 general certificate of educat...Computing Paper 2 Practical Tests may june 2004 general certificate of educat...
Computing Paper 2 Practical Tests may june 2004 general certificate of educat...Alpro
 
June 05 P2
June 05 P2June 05 P2
June 05 P2Samimvez
 
Nov 04 MS2
Nov 04 MS2Nov 04 MS2
Nov 04 MS2Samimvez
 
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12chinthala Vijaya Kumar
 
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...Alpro
 
CODING-DAY-2-INTRODUCTION TO C PROGRAMMING.ppt
CODING-DAY-2-INTRODUCTION TO C PROGRAMMING.pptCODING-DAY-2-INTRODUCTION TO C PROGRAMMING.ppt
CODING-DAY-2-INTRODUCTION TO C PROGRAMMING.pptadamjackson818417
 
Bca(rev syll ii-sem) assignment for july 2012 and jan 2013 sessionn
Bca(rev syll ii-sem) assignment for july 2012 and jan 2013 sessionnBca(rev syll ii-sem) assignment for july 2012 and jan 2013 sessionn
Bca(rev syll ii-sem) assignment for july 2012 and jan 2013 sessionnShripad Tawade
 
June 05 MS2
June 05 MS2June 05 MS2
June 05 MS2Samimvez
 
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21chinthala Vijaya Kumar
 
Smu bscit sem 2 fall 2014 assignments
Smu bscit sem 2 fall 2014 assignmentsSmu bscit sem 2 fall 2014 assignments
Smu bscit sem 2 fall 2014 assignmentssmumbahelp
 
June 04 P3
June 04 P3June 04 P3
June 04 P3Samimvez
 
Module wise format oops questions
Module wise format oops questionsModule wise format oops questions
Module wise format oops questionsSANTOSH RATH
 
Sem 1 bca summer 2014 solved assignments
Sem 1 bca summer 2014  solved assignmentsSem 1 bca summer 2014  solved assignments
Sem 1 bca summer 2014 solved assignmentssmumbahelp
 

Similar a June 04 P32 (20)

Nov 04 P2
Nov 04 P2Nov 04 P2
Nov 04 P2
 
Computing Paper 2 Practical Tests may june 2004 general certificate of educat...
Computing Paper 2 Practical Tests may june 2004 general certificate of educat...Computing Paper 2 Practical Tests may june 2004 general certificate of educat...
Computing Paper 2 Practical Tests may june 2004 general certificate of educat...
 
June 05 P2
June 05 P2June 05 P2
June 05 P2
 
Nov 05 P2
Nov 05 P2Nov 05 P2
Nov 05 P2
 
Nov 02 P2
Nov 02 P2Nov 02 P2
Nov 02 P2
 
Nov 04 MS2
Nov 04 MS2Nov 04 MS2
Nov 04 MS2
 
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
Computer Science(083) Python Pre Board Exam 1 Sample Paper Class 12
 
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
Computer paper 3 may june 2004 9691 cambridge General Certificate of educatio...
 
Nov 08 P3
Nov 08 P3Nov 08 P3
Nov 08 P3
 
CODING-DAY-2-INTRODUCTION TO C PROGRAMMING.ppt
CODING-DAY-2-INTRODUCTION TO C PROGRAMMING.pptCODING-DAY-2-INTRODUCTION TO C PROGRAMMING.ppt
CODING-DAY-2-INTRODUCTION TO C PROGRAMMING.ppt
 
Rpt mt yr2 dlp [2017]
Rpt mt yr2 dlp [2017]Rpt mt yr2 dlp [2017]
Rpt mt yr2 dlp [2017]
 
Bca(rev syll ii-sem) assignment for july 2012 and jan 2013 sessionn
Bca(rev syll ii-sem) assignment for july 2012 and jan 2013 sessionnBca(rev syll ii-sem) assignment for july 2012 and jan 2013 sessionn
Bca(rev syll ii-sem) assignment for july 2012 and jan 2013 sessionn
 
June 05 MS2
June 05 MS2June 05 MS2
June 05 MS2
 
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
CBSE Class 12 Computer Science(083) Sample Question Paper 2020-21
 
Smu bscit sem 2 fall 2014 assignments
Smu bscit sem 2 fall 2014 assignmentsSmu bscit sem 2 fall 2014 assignments
Smu bscit sem 2 fall 2014 assignments
 
June 04 P3
June 04 P3June 04 P3
June 04 P3
 
Module wise format oops questions
Module wise format oops questionsModule wise format oops questions
Module wise format oops questions
 
C++
C++C++
C++
 
Sem 1 bca summer 2014 solved assignments
Sem 1 bca summer 2014  solved assignmentsSem 1 bca summer 2014  solved assignments
Sem 1 bca summer 2014 solved assignments
 
CS_PQMS.pdf
CS_PQMS.pdfCS_PQMS.pdf
CS_PQMS.pdf
 

Más de Samimvez

Más de Samimvez (20)

Sql installation tutorial
Sql installation tutorialSql installation tutorial
Sql installation tutorial
 
Example3
Example3Example3
Example3
 
Coms1010 exam paper - nov10
Coms1010   exam paper - nov10Coms1010   exam paper - nov10
Coms1010 exam paper - nov10
 
Coms1010 exam paper - may 08
Coms1010   exam paper - may 08Coms1010   exam paper - may 08
Coms1010 exam paper - may 08
 
Example2
Example2Example2
Example2
 
Labsheet 3
Labsheet 3Labsheet 3
Labsheet 3
 
Labsheet 3,5
Labsheet 3,5Labsheet 3,5
Labsheet 3,5
 
EQ V3x
EQ V3xEQ V3x
EQ V3x
 
Eq v2
Eq v2Eq v2
Eq v2
 
3.6
3.63.6
3.6
 
3.2
3.23.2
3.2
 
3.10
3.103.10
3.10
 
3.1
3.13.1
3.1
 
3.3
3.33.3
3.3
 
3.8
3.83.8
3.8
 
3.4
3.43.4
3.4
 
3.7
3.73.7
3.7
 
3.5
3.53.5
3.5
 
3.9
3.93.9
3.9
 
Nov 05 P3
Nov 05 P3Nov 05 P3
Nov 05 P3
 

Último

👙 Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service
👙  Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service👙  Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service
👙 Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Serviceanamikaraghav4
 
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...Riya Pathan
 
Almora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment BookingAlmora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment BookingNitya salvi
 
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser... Shivani Pandey
 
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...ritikasharma
 
👙 Kolkata Call Girls Shyam Bazar 💫💫7001035870 Model escorts Service
👙  Kolkata Call Girls Shyam Bazar 💫💫7001035870 Model escorts Service👙  Kolkata Call Girls Shyam Bazar 💫💫7001035870 Model escorts Service
👙 Kolkata Call Girls Shyam Bazar 💫💫7001035870 Model escorts Serviceanamikaraghav4
 
Book Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near Me
Book Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near MeBook Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near Me
Book Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near Meanamikaraghav4
 
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...anamikaraghav4
 
VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130
VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130
VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130Suhani Kapoor
 
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...noor ahmed
 
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...ritikasharma
 
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...noor ahmed
 
Call Girl Nashik Saloni 7001305949 Independent Escort Service Nashik
Call Girl Nashik Saloni 7001305949 Independent Escort Service NashikCall Girl Nashik Saloni 7001305949 Independent Escort Service Nashik
Call Girl Nashik Saloni 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 
↑Top Model (Kolkata) Call Girls Howrah ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Howrah ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Howrah ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Howrah ⟟ 8250192130 ⟟ High Class Call Girl In...noor ahmed
 
Call Girls In Goa 9316020077 Goa Call Girl By Indian Call Girls Goa
Call Girls In Goa  9316020077 Goa  Call Girl By Indian Call Girls GoaCall Girls In Goa  9316020077 Goa  Call Girl By Indian Call Girls Goa
Call Girls In Goa 9316020077 Goa Call Girl By Indian Call Girls Goasexy call girls service in goa
 
Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...
Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...
Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...aamir
 

Último (20)

👙 Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service
👙  Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service👙  Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service
👙 Kolkata Call Girls Sonagachi 💫💫7001035870 Model escorts Service
 
Call Girls New Ashok Nagar Delhi WhatsApp Number 9711199171
Call Girls New Ashok Nagar Delhi WhatsApp Number 9711199171Call Girls New Ashok Nagar Delhi WhatsApp Number 9711199171
Call Girls New Ashok Nagar Delhi WhatsApp Number 9711199171
 
Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171
Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171
Call Girls Chirag Delhi Delhi WhatsApp Number 9711199171
 
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
Independent Hatiara Escorts ✔ 8250192130 ✔ Full Night With Room Online Bookin...
 
Almora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment BookingAlmora call girls 📞 8617697112 At Low Cost Cash Payment Booking
Almora call girls 📞 8617697112 At Low Cost Cash Payment Booking
 
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur EscortsCall Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
Call Girl Nagpur Roshni Call 7001035870 Meet With Nagpur Escorts
 
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
Model Call Girls In Pazhavanthangal WhatsApp Booking 7427069034 call girl ser...
 
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
Behala ( Call Girls ) Kolkata ✔ 6297143586 ✔ Hot Model With Sexy Bhabi Ready ...
 
👙 Kolkata Call Girls Shyam Bazar 💫💫7001035870 Model escorts Service
👙  Kolkata Call Girls Shyam Bazar 💫💫7001035870 Model escorts Service👙  Kolkata Call Girls Shyam Bazar 💫💫7001035870 Model escorts Service
👙 Kolkata Call Girls Shyam Bazar 💫💫7001035870 Model escorts Service
 
Book Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near Me
Book Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near MeBook Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near Me
Book Call Girls in Panchpota - 8250192130 | 24x7 Service Available Near Me
 
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
Russian Call Girl South End Park - Call 8250192130 Rs-3500 with A/C Room Cash...
 
VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130
VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130
VIP Call Girls Service Banjara Hills Hyderabad Call +91-8250192130
 
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Behala ⟟ 8250192130 ⟟ High Class Call Girl In...
 
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
Top Rated Kolkata Call Girls Khardah ⟟ 6297143586 ⟟ Call Me For Genuine Sex S...
 
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
↑Top Model (Kolkata) Call Girls Sonagachi ⟟ 8250192130 ⟟ High Class Call Girl...
 
Call Girl Nashik Saloni 7001305949 Independent Escort Service Nashik
Call Girl Nashik Saloni 7001305949 Independent Escort Service NashikCall Girl Nashik Saloni 7001305949 Independent Escort Service Nashik
Call Girl Nashik Saloni 7001305949 Independent Escort Service Nashik
 
↑Top Model (Kolkata) Call Girls Howrah ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Howrah ⟟ 8250192130 ⟟ High Class Call Girl In...↑Top Model (Kolkata) Call Girls Howrah ⟟ 8250192130 ⟟ High Class Call Girl In...
↑Top Model (Kolkata) Call Girls Howrah ⟟ 8250192130 ⟟ High Class Call Girl In...
 
Desi Bhabhi Call Girls In Goa 💃 730 02 72 001💃desi Bhabhi Escort Goa
Desi Bhabhi Call Girls  In Goa  💃 730 02 72 001💃desi Bhabhi Escort GoaDesi Bhabhi Call Girls  In Goa  💃 730 02 72 001💃desi Bhabhi Escort Goa
Desi Bhabhi Call Girls In Goa 💃 730 02 72 001💃desi Bhabhi Escort Goa
 
Call Girls In Goa 9316020077 Goa Call Girl By Indian Call Girls Goa
Call Girls In Goa  9316020077 Goa  Call Girl By Indian Call Girls GoaCall Girls In Goa  9316020077 Goa  Call Girl By Indian Call Girls Goa
Call Girls In Goa 9316020077 Goa Call Girl By Indian Call Girls Goa
 
Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...
Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...
Nayabad Call Girls ✔ 8005736733 ✔ Hot Model With Sexy Bhabi Ready For Sex At ...
 

June 04 P32

  • 1. CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Advanced Subsidiary Level and Advanced Level COMPUTING 9691/02 Paper 2: Practical Tasks May/June 2004 READ THESE INSTRUCTIONS FIRST Write your Centre number, candidate number and name on all the work you hand in. Write in dark blue or black pen on both sides of the paper. Do not use staples, paper clips, highlighters, glue or correction fluid. Answer all questions. The number of marks is given in brackets [ ] at the end of each question or part question. This document consists of 5 printed pages and 3 blank pages. Ó CIE 2004 [Turn over
  • 2. 2 Answer all questions. Task 1 [29 marks] This is a software development task and an implementation task. An English department in a college expects students to read a number of books which the Department keeps in its library. The Department wishes to keep details of books borrowed by students to ensure that the students read the books set by the tutors. A student borrows many books and a book is borrowed by many students. A database consisting of the tables Student, Book and StudentBook is to be created. The StudentBook table is used to link the other two tables and has the following attributes (fields), each with the specified data type. Attribute (field) Data Type StudentID Numeric type BookID Numeric type Date Borrowed Date type The key is a compound key formed from StudentID and BookID. (a) Create a table called Student to hold details of all the students. (i) Describe the · purpose of each attribute, · data type of each attribute. [6] (ii) Identify the key. [1] (b) Create a table called Book to hold the details of the books. (i) Describe the · purpose of each attribute, · data type of each attribute. [8] (ii) Identify the key. [1] (c) Create data for the three tables. You should have at least 20 students and 15 books. The data should be suitable for testing the tables. Include a print-out of your tables in your documentation. [7] (d) Create an interface that allows a user to input a book's ID and prints a report showing a list of the students who have borrowed that book and the dates on which each student borrowed the book. Provide hard copy evidence that the report is produced. [3] (e) Create an interface that allows a user to input a student's ID and prints a report showing a list of the books the student has borrowed and the dates on which each book was borrowed. Provide hard copy evidence that the report is produced. [3] 9691/2/M/J/04
  • 3. 3 Task 2 [10 Marks] This is an algorithm trace task. No implementation is required. L, R and Data are one-dimensional arrays, each with 5 elements numbered from 1 to 5. The contents of the three arrays are shown in Fig. 2.1. Index L Index R Index Data 1 2 1 3 1 DOG 2 0 2 4 2 BEAR 3 5 3 0 3 HORSE 4 0 4 0 4 CAT 5 0 5 0 5 GIRAFFE Fig. 2.1 In these arrays, L(3) contains the number 5, R(2) contains the number 4 and Data(1) contains the data DOG. Read the following algorithm. T=0 P=1 REPEAT WHILE P <> 0 DO T=T+1 S(T) = P P = L(P) END WHILE IF T > 0 THEN Finished = FALSE P = S(T) T=T–1 OUTPUT Data(P) P = R(P) ELSE Finished = TRUE END IF UNTIL Finished EXIT Task 2 is continued on page 4 overleaf. 9691/2/M/J/04 [Turn over
  • 4. 4 Complete the trace table shown in Fig. 2.2. It is only necessary to enter values in the table when they change. You should work from left to right and top to bottom. The first six lines are completed for you. T P S(1) S(2) Finished Output 0 1 1 1 2 2 2 0 FALSE 2 Fig 2.2 [10] 9691/2/M/J/04
  • 5. 5 Task 3 [21 Marks] This is a software development task and an implementation task. Roman numerals are still used for certain limited purposes such as copyright dates. The symbols used are I =1, V = 5, X = 10, L = 50, C = 100, D = 500 and M =1000. One definition of Roman numbers is · the letters must be in descending order of value, · the value of the number is the sum of all the letters, · each letter must be used a minimum number of times. This is known as the additive rule and is the only rule to be used in this question. For example MCX = 1000 + 100 + 10 = 1110; MXC is invalid because of wrong order; IIII = 1 + 1 + 1 + 1 =4; IIIII is invalid because it can be replaced with V. A manufacturer wishes to make a new calculator that allows a user to input a number using Roman numerals and displays the number in both Roman and Arabic forms. The calculator must · allow a user to enter the Roman numerals up to a value of 7000 (MMMMMMM), · prevent the user entering an invalid numeral, · display the number entered using Roman numerals, · update this display as each Roman numeral is entered, · display the number entered using Arabic numerals, · update this display as each Roman numeral is entered, · allow the user to clear both displays, the Roman number and the Arabic number. The manufacturer wishes to use a simulation of this calculator so that the user interface can be tested. (a) Design a user interface that can be used to test the above facilities. Provide hard copy showing this design. (A screen dump is acceptable.) [5] (b) Using a high-level language of your choice, implement and test your design to show that all the above facilities work correctly. (i) Provide hard copy of your annotated program, stating the language and version used. [5] (ii) Provide a table showing your test data and the expected and actual results. [6] (iii) Supply hard copy evidence of testing your solution. (Screen dumps are acceptable, but must show the data entered and the results.) [5] 9691/2/M/J/04
  • 6. 6 BLANK PAGE 9691/2/M/J/04
  • 7. 7 BLANK PAGE 9691/2/M/J/04
  • 8. 8 BLANK PAGE 9691/2/M/J/04