SlideShare uma empresa Scribd logo
1 de 8
Baixar para ler offline
UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS
                             General Certificate of Education
                      Advanced Subsidiary Level and Advanced Level

         COMPUTING
         Paper 2: Practical Tasks

                                                                      October/November 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.

© UCLES 2004                                                                                  [Turn over
2

                                           Answer all questions.

Task 1 [29 Marks]

This is a software development task and an implementation task.

A small company, that supplies motor components, wishes to keep details of components bought by
customers. A customer may buy many components and many customers may buy a component.

A database consisting of the tables Customer, Component and CustComp is to be created. The
CustComp 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

 CustomerID                                               Numeric type

 ComponentID                                              Numeric type

 Purchase Date                                            Date type

The key is a compound key formed from CustomerID and ComponentID.
    (a) Create a table called Customer to hold details of all the customers.
         (i) Describe the
                     • purpose of each attribute,
                     • data type of each attribute.                                                  [8]
        (ii) Identify the key.                                                                       [1]
    (b) Create a table called Component to hold the details of the components.
         (i) Describe the
                     • purpose of each attribute,
                     • data type of each attribute.                                                  [6]
        (ii) Identify the key.                                                                       [1]
    (c) Create data for the three tables. You should have at least 20 customers and 15 components.
        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 component's ID. A report, showing
    •    a list of the customers who have bought that component,
    •    the dates on which each customer bought the component,
         should then be automatically printed.          Provide hard copy evidence that the report is
         produced.                                                                                [3]
    (e) Create an interface that allows a user to input a customer's ID. A report, showing
    •    a list of the components the customer has bought,
    •    the dates on which each component was bought,
         should then be automatically printed.          Provide hard copy evidence that the report is
         produced.                                                                                [3]




© UCLES 2004                                     9691/2/O/N/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 7 elements numbered from 1 to 7. The contents
of the three arrays are shown in Fig. 2.1.


         Index      L             Index      R                Index          Data
               1    3                 1      2                    1          email
               2    0                 2      4                    2            is
               3    0                 3      7                    3            a
               4    6                 4      5                    4          quick
               5    0                 5      0                    5          way
               6    0                 6      0                    6           of
               7    0                 7      0                    7     communicating

                                            Fig. 2.1

In these arrays, L(4) contains the number 6, R(3) contains the number 7 and Data(1) contains the
data email.

Read the following algorithm.

    T=1
    S(T) = 1
    WHILE T > 0 DO
        P = S(T)
        T=T–1
        WHILE P <> 0 DO
             OUTPUT Data(P)
             IF R(P) <> 0 THEN
                 T=T+1
                 S(T) = R(P)
             END IF
             P = L(P)
        END WHILE
    END WHILE
    EXIT

                                                           Task 2 is continued on page 4 overleaf.




© UCLES 2004                               9691/2/O/N/04                                [Turn over
4

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


                          T          P          S(1)        S(2)    Output
                          1                      1
                                     1




                                              Fig 2.2

                                                                                               [10]




© UCLES 2004                                9691/2/O/N/04
5

Task 3 [21 Marks]

This is a software development task and an implementation task.

A manufacturer wishes to make a new calculator, for use by young children, with the following
facilities.

    •    User is able to enter positive and negative decimal numbers.
    •    The numbers appear in a display on the calculator.
    •    User can enter the operations add, subtract, multiply and divide.
    •    User can clear the display, which then shows the number zero.
    •    When an operation is entered, the display shows the result of the previous calculation.
    •    When a new number is entered, the display clears the previous contents and shows the new
         number.
    •    When an equals sign is pressed, the display shows the result of the previous calculation.

You are advised to familiarise yourself with displays on a calculator.

The manufacturer wishes to use a simulation of the new 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]




© UCLES 2004                                   9691/2/O/N/04
6

BLANK PAGE




 9691/2/O/N/04
7

BLANK PAGE




 9691/2/O/N/04
8

                                                                  BLANK PAGE




Copyright Acknowledgements:

Every reasonable effort has been made to trace all copyright holders. The publishers would be pleased to hear from anyone whose rights we have unwittingly
infringed.

University of Cambridge International Examinations is part of the University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department
of the University of Cambridge.

                                                                     9691/2/O/N/04

Mais conteúdo relacionado

Destaque

News stories review
News stories reviewNews stories review
News stories reviewMattRogero
 
Focus groups
Focus groupsFocus groups
Focus groupsmike tait
 
Thriller pitch 123
Thriller pitch 123Thriller pitch 123
Thriller pitch 123Jaypinches
 
Anatomia y fisiologia del corazon
Anatomia y fisiologia del corazonAnatomia y fisiologia del corazon
Anatomia y fisiologia del corazonnatorabet
 
Shot preparation
Shot preparationShot preparation
Shot preparationMattRogero
 
Seminario EOI "Presentación eficaz plan de negocio"
  Seminario EOI "Presentación eficaz plan de negocio"  Seminario EOI "Presentación eficaz plan de negocio"
Seminario EOI "Presentación eficaz plan de negocio"Ayuntamiento Benissa
 
Main task
Main taskMain task
Main task261094
 
June 10 P13
June 10 P13June 10 P13
June 10 P13Samimvez
 
Governancaemtic
GovernancaemticGovernancaemtic
Governancaemticgueste8f73
 
Me as a music consumer
Me as a music consumerMe as a music consumer
Me as a music consumergiacomo94
 
Booking sheet for voice over artist
Booking sheet for voice over artistBooking sheet for voice over artist
Booking sheet for voice over artistMattRogero
 
2010 evaluation questions
2010 evaluation questions2010 evaluation questions
2010 evaluation questionsSarah mediafilm
 
Nov 08 MS1
Nov 08 MS1Nov 08 MS1
Nov 08 MS1Samimvez
 
Similar magazines
Similar magazinesSimilar magazines
Similar magazineslottie1995
 
June 03 MS2
June 03 MS2June 03 MS2
June 03 MS2Samimvez
 

Destaque (20)

News stories review
News stories reviewNews stories review
News stories review
 
Focus groups
Focus groupsFocus groups
Focus groups
 
Front cover ideas
Front cover ideasFront cover ideas
Front cover ideas
 
Thriller pitch 123
Thriller pitch 123Thriller pitch 123
Thriller pitch 123
 
Anatomia y fisiologia del corazon
Anatomia y fisiologia del corazonAnatomia y fisiologia del corazon
Anatomia y fisiologia del corazon
 
Shot preparation
Shot preparationShot preparation
Shot preparation
 
Seminario EOI "Presentación eficaz plan de negocio"
  Seminario EOI "Presentación eficaz plan de negocio"  Seminario EOI "Presentación eficaz plan de negocio"
Seminario EOI "Presentación eficaz plan de negocio"
 
Main task
Main taskMain task
Main task
 
Distributor
DistributorDistributor
Distributor
 
Double page final
Double page finalDouble page final
Double page final
 
Fullet activitats 9 octubre 2014
Fullet activitats 9 octubre 2014Fullet activitats 9 octubre 2014
Fullet activitats 9 octubre 2014
 
June 10 P13
June 10 P13June 10 P13
June 10 P13
 
Governancaemtic
GovernancaemticGovernancaemtic
Governancaemtic
 
The crowd
The crowdThe crowd
The crowd
 
Me as a music consumer
Me as a music consumerMe as a music consumer
Me as a music consumer
 
Booking sheet for voice over artist
Booking sheet for voice over artistBooking sheet for voice over artist
Booking sheet for voice over artist
 
2010 evaluation questions
2010 evaluation questions2010 evaluation questions
2010 evaluation questions
 
Nov 08 MS1
Nov 08 MS1Nov 08 MS1
Nov 08 MS1
 
Similar magazines
Similar magazinesSimilar magazines
Similar magazines
 
June 03 MS2
June 03 MS2June 03 MS2
June 03 MS2
 

Semelhante a 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...Alpro
 
June 09 P3
June 09 P3June 09 P3
June 09 P3Samimvez
 
Computing paper 1 may june 2008 computers cambridge test paper zimsec zimbabw...
Computing paper 1 may june 2008 computers cambridge test paper zimsec zimbabw...Computing paper 1 may june 2008 computers cambridge test paper zimsec zimbabw...
Computing paper 1 may june 2008 computers cambridge test paper zimsec zimbabw...Alpro
 
Computing paper 1 9691 may june 2004 computers general certificate of educati...
Computing paper 1 9691 may june 2004 computers general certificate of educati...Computing paper 1 9691 may june 2004 computers general certificate of educati...
Computing paper 1 9691 may june 2004 computers general certificate of educati...Alpro
 
Nov 09 P32
Nov 09 P32Nov 09 P32
Nov 09 P32Samimvez
 
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
 
Computing 9691 Test Paper Paper 3 for May / June 2007 Cambridge
Computing 9691 Test Paper Paper 3 for May / June 2007 CambridgeComputing 9691 Test Paper Paper 3 for May / June 2007 Cambridge
Computing 9691 Test Paper Paper 3 for May / June 2007 CambridgeAlpro
 
Computing 9195 Zimbabwe Zimsec syllabus Cambridge Computers may June 2007 pap...
Computing 9195 Zimbabwe Zimsec syllabus Cambridge Computers may June 2007 pap...Computing 9195 Zimbabwe Zimsec syllabus Cambridge Computers may June 2007 pap...
Computing 9195 Zimbabwe Zimsec syllabus Cambridge Computers may June 2007 pap...Alpro
 
June 10 P33
June 10 P33June 10 P33
June 10 P33Samimvez
 
Assemblers: Ch03
Assemblers: Ch03Assemblers: Ch03
Assemblers: Ch03desta_gebre
 
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
 
Question 1Using Powerpoint, Word, Visio or any other graphical e.docx
Question 1Using Powerpoint, Word, Visio or any other graphical e.docxQuestion 1Using Powerpoint, Word, Visio or any other graphical e.docx
Question 1Using Powerpoint, Word, Visio or any other graphical e.docxIRESH3
 
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
 
June 08 P1
June 08 P1June 08 P1
June 08 P1Samimvez
 
June 10 P31
June 10 P31June 10 P31
June 10 P31Samimvez
 
June 07 P3
June 07 P3June 07 P3
June 07 P3Samimvez
 

Semelhante a Nov 04 P2 (20)

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...
 
Nov 05 P2
Nov 05 P2Nov 05 P2
Nov 05 P2
 
June 09 P3
June 09 P3June 09 P3
June 09 P3
 
Computing paper 1 may june 2008 computers cambridge test paper zimsec zimbabw...
Computing paper 1 may june 2008 computers cambridge test paper zimsec zimbabw...Computing paper 1 may june 2008 computers cambridge test paper zimsec zimbabw...
Computing paper 1 may june 2008 computers cambridge test paper zimsec zimbabw...
 
Computing paper 1 9691 may june 2004 computers general certificate of educati...
Computing paper 1 9691 may june 2004 computers general certificate of educati...Computing paper 1 9691 may june 2004 computers general certificate of educati...
Computing paper 1 9691 may june 2004 computers general certificate of educati...
 
Nov 09 P32
Nov 09 P32Nov 09 P32
Nov 09 P32
 
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
 
Computing 9691 Test Paper Paper 3 for May / June 2007 Cambridge
Computing 9691 Test Paper Paper 3 for May / June 2007 CambridgeComputing 9691 Test Paper Paper 3 for May / June 2007 Cambridge
Computing 9691 Test Paper Paper 3 for May / June 2007 Cambridge
 
Computing 9195 Zimbabwe Zimsec syllabus Cambridge Computers may June 2007 pap...
Computing 9195 Zimbabwe Zimsec syllabus Cambridge Computers may June 2007 pap...Computing 9195 Zimbabwe Zimsec syllabus Cambridge Computers may June 2007 pap...
Computing 9195 Zimbabwe Zimsec syllabus Cambridge Computers may June 2007 pap...
 
June 10 P33
June 10 P33June 10 P33
June 10 P33
 
Nov 08 P1
Nov 08 P1Nov 08 P1
Nov 08 P1
 
Assemblers: Ch03
Assemblers: Ch03Assemblers: Ch03
Assemblers: Ch03
 
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...
 
C++
C++C++
C++
 
Question 1Using Powerpoint, Word, Visio or any other graphical e.docx
Question 1Using Powerpoint, Word, Visio or any other graphical e.docxQuestion 1Using Powerpoint, Word, Visio or any other graphical e.docx
Question 1Using Powerpoint, Word, Visio or any other graphical e.docx
 
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
 
Nov 02 P1
Nov 02 P1Nov 02 P1
Nov 02 P1
 
June 08 P1
June 08 P1June 08 P1
June 08 P1
 
June 10 P31
June 10 P31June 10 P31
June 10 P31
 
June 07 P3
June 07 P3June 07 P3
June 07 P3
 

Mais de Samimvez

Mais 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

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slidespraypatel2
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationSafe Software
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking MenDelhi Call girls
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhisoniya singh
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountPuma Security, LLC
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationRadu Cotescu
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptxHampshireHUG
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAndikSusilo4
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdfhans926745
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationSafe Software
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking MenDelhi Call girls
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsMemoori
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024BookNet Canada
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure servicePooja Nehwal
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...HostedbyConfluent
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesSinan KOZAK
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 

Último (20)

Slack Application Development 101 Slides
Slack Application Development 101 SlidesSlack Application Development 101 Slides
Slack Application Development 101 Slides
 
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time AutomationFrom Event to Action: Accelerate Your Decision Making with Real-Time Automation
From Event to Action: Accelerate Your Decision Making with Real-Time Automation
 
08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men08448380779 Call Girls In Friends Colony Women Seeking Men
08448380779 Call Girls In Friends Colony Women Seeking Men
 
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | DelhiFULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
FULL ENJOY 🔝 8264348440 🔝 Call Girls in Diplomatic Enclave | Delhi
 
Breaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path MountBreaking the Kubernetes Kill Chain: Host Path Mount
Breaking the Kubernetes Kill Chain: Host Path Mount
 
Scaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organizationScaling API-first – The story of a global engineering organization
Scaling API-first – The story of a global engineering organization
 
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
04-2024-HHUG-Sales-and-Marketing-Alignment.pptx
 
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & ApplicationAzure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
 
[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf[2024]Digital Global Overview Report 2024 Meltwater.pdf
[2024]Digital Global Overview Report 2024 Meltwater.pdf
 
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry InnovationBeyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
Beyond Boundaries: Leveraging No-Code Solutions for Industry Innovation
 
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
AI as an Interface for Commercial Buildings
AI as an Interface for Commercial BuildingsAI as an Interface for Commercial Buildings
AI as an Interface for Commercial Buildings
 
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
 
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure serviceWhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
 
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
Transforming Data Streams with Kafka Connect: An Introduction to Single Messa...
 
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen FramesUnblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 

Nov 04 P2

  • 1. UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Advanced Subsidiary Level and Advanced Level COMPUTING Paper 2: Practical Tasks October/November 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. © UCLES 2004 [Turn over
  • 2. 2 Answer all questions. Task 1 [29 Marks] This is a software development task and an implementation task. A small company, that supplies motor components, wishes to keep details of components bought by customers. A customer may buy many components and many customers may buy a component. A database consisting of the tables Customer, Component and CustComp is to be created. The CustComp 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 CustomerID Numeric type ComponentID Numeric type Purchase Date Date type The key is a compound key formed from CustomerID and ComponentID. (a) Create a table called Customer to hold details of all the customers. (i) Describe the • purpose of each attribute, • data type of each attribute. [8] (ii) Identify the key. [1] (b) Create a table called Component to hold the details of the components. (i) Describe the • purpose of each attribute, • data type of each attribute. [6] (ii) Identify the key. [1] (c) Create data for the three tables. You should have at least 20 customers and 15 components. 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 component's ID. A report, showing • a list of the customers who have bought that component, • the dates on which each customer bought the component, should then be automatically printed. Provide hard copy evidence that the report is produced. [3] (e) Create an interface that allows a user to input a customer's ID. A report, showing • a list of the components the customer has bought, • the dates on which each component was bought, should then be automatically printed. Provide hard copy evidence that the report is produced. [3] © UCLES 2004 9691/2/O/N/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 7 elements numbered from 1 to 7. The contents of the three arrays are shown in Fig. 2.1. Index L Index R Index Data 1 3 1 2 1 email 2 0 2 4 2 is 3 0 3 7 3 a 4 6 4 5 4 quick 5 0 5 0 5 way 6 0 6 0 6 of 7 0 7 0 7 communicating Fig. 2.1 In these arrays, L(4) contains the number 6, R(3) contains the number 7 and Data(1) contains the data email. Read the following algorithm. T=1 S(T) = 1 WHILE T > 0 DO P = S(T) T=T–1 WHILE P <> 0 DO OUTPUT Data(P) IF R(P) <> 0 THEN T=T+1 S(T) = R(P) END IF P = L(P) END WHILE END WHILE EXIT Task 2 is continued on page 4 overleaf. © UCLES 2004 9691/2/O/N/04 [Turn over
  • 4. 4 Complete the trace table shown in Fig. 2.2. It is only necessary to enter numbers in the table when they change value. You should work from left to right and top to bottom. The first two lines are completed for you. T P S(1) S(2) Output 1 1 1 Fig 2.2 [10] © UCLES 2004 9691/2/O/N/04
  • 5. 5 Task 3 [21 Marks] This is a software development task and an implementation task. A manufacturer wishes to make a new calculator, for use by young children, with the following facilities. • User is able to enter positive and negative decimal numbers. • The numbers appear in a display on the calculator. • User can enter the operations add, subtract, multiply and divide. • User can clear the display, which then shows the number zero. • When an operation is entered, the display shows the result of the previous calculation. • When a new number is entered, the display clears the previous contents and shows the new number. • When an equals sign is pressed, the display shows the result of the previous calculation. You are advised to familiarise yourself with displays on a calculator. The manufacturer wishes to use a simulation of the new 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] © UCLES 2004 9691/2/O/N/04
  • 8. 8 BLANK PAGE Copyright Acknowledgements: Every reasonable effort has been made to trace all copyright holders. The publishers would be pleased to hear from anyone whose rights we have unwittingly infringed. University of Cambridge International Examinations is part of the University of Cambridge Local Examinations Syndicate (UCLES), which is itself a department of the University of Cambridge. 9691/2/O/N/04