SlideShare a Scribd company logo
1 of 8
Download to read offline
UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS
General Certificate of Education
Advanced Subsidiary Level and Advanced Level
COMPUTING
Paper 2: Practical Tasks
May/June 2005
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 6 printed pages and 2 blank pages.
IB05 06_9691_02/FP
 UCLES 2005 [Turn over
2
© UCLES 2005 9691/02/M/J/05
Answer all questions
Task 1 [22 marks]
This is a design and implementation task
At a university a lecturer may teach many modules and a module may be taught by many lecturers.
Lecturers have an office and a telephone number. Several lecturers, who may have to share a
telephone, may use an office. An office is identified by a 5-character code consisting of two
uppercase letters followed by three digits such as AB123. The telephone number consists of four
digits such as 0362. The lecturer’s name is the only personal data to be stored.
Modules have a module code consisting of two letters and four digits such as IT1002. Each module
has a title such as Information Technology.
(a) Design a database, consisting of three tables, to store the data. You should include
evidence showing the attributes of the tables together with their data types and any validation
rules you have used. Screen dumps are acceptable for this purpose. [11]
Create sufficient data to complete the rest of this task. Provide copies of your completed tables.
Screen dumps are acceptable for this purpose.
(b) (i) Create a form that will allow the user to add a lecturer to the appropriate table.
(ii) Create a form that will allow the user to add a module to the appropriate table.
(iii) Create a form that will allow a user to link a lecturer to a module. The form should allow
the user to choose a lecturer from a list and to choose a module from a list. [6]
(c) Create a query that, when run, requests a user to select a lecturer and then lists all the
modules taught by that lecturer. Include evidence that your query works correctly. [2]
(d) Create a report that lists the lecturers for each module. The report should group the
information on module code and have appropriate headings. Include evidence that your
report is correct. [3]
3
© UCLES 2005 9691/02/M/J/05 [Turn over
Task 2 [18 marks]
This is a white box test task. No implementation is required.
Read the following algorithm for a procedure, called Validate, in which each step has been numbered.
Validate(aString)
1 Length = Len(aString)
2 If Length = 0 Then
3 Output "Empty string is not allowed"
4 Else
5 OK = TRUE
6 DP = FALSE
7 Count = 1
8 Ch = 1st character of aString
9 IF Ch < "0" OR Ch > "9" THEN
10 OK = FALSE
11 ELSE
12 WHILE Count < Length AND OK DO
13 Count = Count + 1
14 Ch = next character in aString
15 IF Ch = "." THEN
16 IF DP THEN
17 OK = FALSE
18 ELSE
19 DP = TRUE
20 ENDIF
21 ELSE
22 IF Ch < "0" OR Ch > "9" THEN
23 OK = FALSE
24 ENDIF
25 ENDIF
26 ENDWHILE
27 ENDIF
28 IF OK THEN
29 Output "Valid string"
30 ELSE
31 Output "Invalid string"
32 ENDIF
33 ENDIF
34 END PROCEDURE Validate
The function Len(aString) returns the number of characters in aString. For example, if aString =
"Computer", Len(aString) = 8.
4
© UCLES 2005 9691/02/M/J/05
When the procedure is called with
Validate("58")
the lines
1, 2, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 21, 22, 24, 25, 26,12, 26, 27,
28, 29, 30, 32, 33, 34
are executed and the output is
Valid string.
The example test above can be described as shown in Table 2.1.
Path Test Data Expected Output
1, 2, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 21, 22,
24, 25, 26,12, 26, 27, 28, 29, 30, 32, 33, 34
58 Valid string.
Table 2.1
Using a table similar to Table 2.1, write down the lines that are executed and the output when the
procedure is called with
(i) Validate(".376"); [4]
(ii) Validate("4.9"); [7]
(iii) Validate("6.2.7"). [7]
5
© UCLES 2005 9691/02/M/J/05 [Turn over
Task 3 [20 marks]
This is a design and implementation task
You are to design and create a very simple binary calculator using a high-level language of your
choice. A binary calculator can only use the digits 0 and 1. This calculator will allow the user to enter
two unsigned binary numbers and will then allow the user to add, subtract, multiply or divide these
numbers. In the case of division, the result should be truncated to a whole number. This is
equivalent to integer division. The result is to be displayed in binary.
To do this you are advised to follow these steps.
(a) Design an interface that will allow the user to input two unsigned binary numbers and will
display them in two boxes. The user should then be able to choose addition, subtraction,
multiplication or division. There should be a box to show the result of the calculation. The
user should also be able to clear all the boxes. (No processing is required at this stage.) [4]
(b) Create a function, called BinaryToDecimal, that will accept a binary number as a parameter
and will return its decimal equivalent. For example,
BinaryToDecimal(101101) will return the decimal value 45.
You may use the following algorithm to do this.
Input the binary number as a string
Total = 0
For each binary digit in the string, starting on the left,
Total = Total * 2 + value of digit
Return Total
You should clearly annotate your code and use meaningful names for variables and other
objects such as buttons and text boxes (if you use them). You should include a copy of your
code as evidence. [4]
(c) Create a function, called DecimalToBinary, that will accept a decimal number as a parameter
and will return its binary equivalent. For example,
DecimalToBinary (47) will return the binary value 101111.
You may use the following algorithm to do this.
Input the decimal number called Number
Binary = "" 'Empty string
Repeat
Remainder = remainder after Number is divided by 2
Number = Whole part of Number divided by 2
Binary = String value of Remainder & Binary
Until Number = 0
& means concatenation. For example
"1010" & "1" = "10101"
You should clearly annotate your code and use meaningful names for variables and other
objects such as buttons. You should include a copy of your code as evidence. [4]
6
© UCLES 2005 9691/02/M/J/05
(d) Create code for each of the operations of addition, subtraction, multiplication and division.
You are advised to change the binary numbers input by the user to decimal, do the operation
and then convert the result back to binary before displaying it. You should include a copy of
your code as evidence. [3]
(e) Create a set of test data that shows that the operations of addition, subtraction, multiplication
and division work and provide evidence that you have used this data. Screen dumps are
acceptable but must show the data entered and the result of the operation. [5]
7
9691/02/M/J/05
BLANK PAGE
8
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/02/M/J/05
BLANK PAGE

More Related Content

What's hot

BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etc
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etcBOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etc
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etcAbhishek Rajpoot
 
Lesson 33: The Assignment Problem
Lesson 33: The Assignment  ProblemLesson 33: The Assignment  Problem
Lesson 33: The Assignment ProblemMatthew Leingang
 
operation research
operation researchoperation research
operation researchujal70
 
Finite word lenth effects
Finite word lenth effectsFinite word lenth effects
Finite word lenth effectstamil arasan
 
Arithmetic for Computers
Arithmetic for ComputersArithmetic for Computers
Arithmetic for ComputersMD. ABU TALHA
 
Ap for b.tech. (mechanical) Assignment Problem
Ap for b.tech. (mechanical) Assignment Problem Ap for b.tech. (mechanical) Assignment Problem
Ap for b.tech. (mechanical) Assignment Problem Prashant Khandelwal
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentIJERD Editor
 
Assignment problem ppt
Assignment problem ppt Assignment problem ppt
Assignment problem ppt Babasab Patil
 
Floating point arithmetic operations (1)
Floating point arithmetic operations (1)Floating point arithmetic operations (1)
Floating point arithmetic operations (1)cs19club
 
Assignment problem
Assignment problemAssignment problem
Assignment problemAbu Bashar
 
Operations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentationOperations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentationPankaj Kumar
 

What's hot (20)

Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Arithmetic circuits
Arithmetic circuitsArithmetic circuits
Arithmetic circuits
 
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etc
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etcBOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etc
BOOTH ALGO, DIVISION(RESTORING _ NON RESTORING) etc etc
 
Lesson 33: The Assignment Problem
Lesson 33: The Assignment  ProblemLesson 33: The Assignment  Problem
Lesson 33: The Assignment Problem
 
Arithmetic
ArithmeticArithmetic
Arithmetic
 
Assignment model
Assignment modelAssignment model
Assignment model
 
operation research
operation researchoperation research
operation research
 
Finite word lenth effects
Finite word lenth effectsFinite word lenth effects
Finite word lenth effects
 
Arithmetic for Computers
Arithmetic for ComputersArithmetic for Computers
Arithmetic for Computers
 
09 Arithmetic
09  Arithmetic09  Arithmetic
09 Arithmetic
 
Ap for b.tech. (mechanical) Assignment Problem
Ap for b.tech. (mechanical) Assignment Problem Ap for b.tech. (mechanical) Assignment Problem
Ap for b.tech. (mechanical) Assignment Problem
 
International Journal of Engineering Research and Development
International Journal of Engineering Research and DevelopmentInternational Journal of Engineering Research and Development
International Journal of Engineering Research and Development
 
Assignment problem ppt
Assignment problem ppt Assignment problem ppt
Assignment problem ppt
 
Assignment Problem
Assignment ProblemAssignment Problem
Assignment Problem
 
Assignment problems
Assignment problemsAssignment problems
Assignment problems
 
Floating point arithmetic operations (1)
Floating point arithmetic operations (1)Floating point arithmetic operations (1)
Floating point arithmetic operations (1)
 
Assignment problem
Assignment problemAssignment problem
Assignment problem
 
Mississauga Interlocking Paver Estimate Worksheet
Mississauga Interlocking Paver Estimate WorksheetMississauga Interlocking Paver Estimate Worksheet
Mississauga Interlocking Paver Estimate Worksheet
 
Operations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentationOperations research : Assignment problem (One's method) presentation
Operations research : Assignment problem (One's method) presentation
 

Similar to Computer paper 3 may june 2004 9691 cambridge General Certificate of education advanced level zimsec zimbabwe computers

Mid term sem 2 1415 sol
Mid term sem 2 1415 solMid term sem 2 1415 sol
Mid term sem 2 1415 solIIUM
 
M150 A Fall2010 T01
M150 A Fall2010 T01M150 A Fall2010 T01
M150 A Fall2010 T01abdalodainat
 
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
 
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxAASTHA76
 
Monte Carlo Simulation for project estimates v1.0
Monte Carlo Simulation for project estimates v1.0Monte Carlo Simulation for project estimates v1.0
Monte Carlo Simulation for project estimates v1.0PMILebanonChapter
 
#include iostream#includectimeusing namespace std;void.docx
#include iostream#includectimeusing namespace std;void.docx#include iostream#includectimeusing namespace std;void.docx
#include iostream#includectimeusing namespace std;void.docxmayank272369
 
CMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docx
CMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docxCMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docx
CMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docxclarebernice
 
Chapter 16-spreadsheet1 questions and answer
Chapter 16-spreadsheet1  questions and answerChapter 16-spreadsheet1  questions and answer
Chapter 16-spreadsheet1 questions and answerRaajTech
 
Bis 311 final examination answers
Bis 311 final examination answersBis 311 final examination answers
Bis 311 final examination answersRandalHoffman
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01Drjilesh
 
Chapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxChapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxtiffanyd4
 
Cmis 102 Effective Communication / snaptutorial.com
Cmis 102  Effective Communication / snaptutorial.comCmis 102  Effective Communication / snaptutorial.com
Cmis 102 Effective Communication / snaptutorial.comHarrisGeorg12
 
Cmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.comCmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.comStephenson22
 
Cmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comCmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comWilliamsTaylorza48
 
Visual Basic Review - ICA
Visual Basic Review - ICAVisual Basic Review - ICA
Visual Basic Review - ICAemtrajano
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newLast7693
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newscottbrownnn
 

Similar to Computer paper 3 may june 2004 9691 cambridge General Certificate of education advanced level zimsec zimbabwe computers (20)

Nov 05 P2
Nov 05 P2Nov 05 P2
Nov 05 P2
 
Mid term sem 2 1415 sol
Mid term sem 2 1415 solMid term sem 2 1415 sol
Mid term sem 2 1415 sol
 
M150 A Fall2010 T01
M150 A Fall2010 T01M150 A Fall2010 T01
M150 A Fall2010 T01
 
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...
 
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docxBottom of FormCreate your own FunctionFunctionsFor eac.docx
Bottom of FormCreate your own FunctionFunctionsFor eac.docx
 
Monte Carlo Simulation for project estimates v1.0
Monte Carlo Simulation for project estimates v1.0Monte Carlo Simulation for project estimates v1.0
Monte Carlo Simulation for project estimates v1.0
 
Mmt 001
Mmt 001Mmt 001
Mmt 001
 
#include iostream#includectimeusing namespace std;void.docx
#include iostream#includectimeusing namespace std;void.docx#include iostream#includectimeusing namespace std;void.docx
#include iostream#includectimeusing namespace std;void.docx
 
CMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docx
CMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docxCMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docx
CMIS 102 Hands-On LabWeek 6OverviewThis hands-on lab .docx
 
Chapter 16-spreadsheet1 questions and answer
Chapter 16-spreadsheet1  questions and answerChapter 16-spreadsheet1  questions and answer
Chapter 16-spreadsheet1 questions and answer
 
Bis 311 final examination answers
Bis 311 final examination answersBis 311 final examination answers
Bis 311 final examination answers
 
Oop lab assignment 01
Oop lab assignment 01Oop lab assignment 01
Oop lab assignment 01
 
Chapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docxChapter 8Exercise1.Design an application that accept.docx
Chapter 8Exercise1.Design an application that accept.docx
 
Cmis 102 Effective Communication / snaptutorial.com
Cmis 102  Effective Communication / snaptutorial.comCmis 102  Effective Communication / snaptutorial.com
Cmis 102 Effective Communication / snaptutorial.com
 
Cmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.comCmis 102 Enthusiastic Study / snaptutorial.com
Cmis 102 Enthusiastic Study / snaptutorial.com
 
Cmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.comCmis 102 Success Begins / snaptutorial.com
Cmis 102 Success Begins / snaptutorial.com
 
Visual Basic Review - ICA
Visual Basic Review - ICAVisual Basic Review - ICA
Visual Basic Review - ICA
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
 
Md university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab newMd university cmis 102 week 4 hands on lab new
Md university cmis 102 week 4 hands on lab new
 
LMmanual.pdf
LMmanual.pdfLMmanual.pdf
LMmanual.pdf
 

More from Alpro

Accounting 970602 paper 2 structured questions october november 2008
Accounting 970602 paper 2 structured questions october november 2008 Accounting 970602 paper 2 structured questions october november 2008
Accounting 970602 paper 2 structured questions october november 2008 Alpro
 
Accounting 970602 paper 2 structured questions october november 2007
Accounting 970602 paper 2 structured questions october november 2007 Accounting 970602 paper 2 structured questions october november 2007
Accounting 970602 paper 2 structured questions october november 2007 Alpro
 
Accounting 970602 paper 2 structured questions october november 2006
Accounting 970602 paper 2 structured questions october november 2006 Accounting 970602 paper 2 structured questions october november 2006
Accounting 970602 paper 2 structured questions october november 2006 Alpro
 
Accounting 970602 paper 2 structured questions for examination from 2016 spec...
Accounting 970602 paper 2 structured questions for examination from 2016 spec...Accounting 970602 paper 2 structured questions for examination from 2016 spec...
Accounting 970602 paper 2 structured questions for examination from 2016 spec...Alpro
 
Accounting 970602 paper 2 core topics for examination from 2010 specimen paper
Accounting 970602 paper 2 core topics for examination from 2010 specimen paperAccounting 970602 paper 2 core topics for examination from 2010 specimen paper
Accounting 970602 paper 2 core topics for examination from 2010 specimen paperAlpro
 
Accounting 970602 paper 2 core topics for examination from 2010 specimen mark...
Accounting 970602 paper 2 core topics for examination from 2010 specimen mark...Accounting 970602 paper 2 core topics for examination from 2010 specimen mark...
Accounting 970602 paper 2 core topics for examination from 2010 specimen mark...Alpro
 
Accounting 970601 paper 1 multiple choice october november 2008
Accounting 970601 paper 1 multiple choice october november 2008 Accounting 970601 paper 1 multiple choice october november 2008
Accounting 970601 paper 1 multiple choice october november 2008 Alpro
 
Accounting 970601 paper 1 multiple choice october november 2007
Accounting 970601 paper 1 multiple choice october november 2007 Accounting 970601 paper 1 multiple choice october november 2007
Accounting 970601 paper 1 multiple choice october november 2007 Alpro
 
Accounting 970601 paper 1 multiple choice october november 2006
Accounting 970601 paper 1 multiple choice october november 2006 Accounting 970601 paper 1 multiple choice october november 2006
Accounting 970601 paper 1 multiple choice october november 2006 Alpro
 
Accounting 970601 paper 1 multiple choice for examination from 2016 specimen ...
Accounting 970601 paper 1 multiple choice for examination from 2016 specimen ...Accounting 970601 paper 1 multiple choice for examination from 2016 specimen ...
Accounting 970601 paper 1 multiple choice for examination from 2016 specimen ...Alpro
 
Accounting 97064 paper 4 problem solving (extension topics) may june session ...
Accounting 97064 paper 4 problem solving (extension topics) may june session ...Accounting 97064 paper 4 problem solving (extension topics) may june session ...
Accounting 97064 paper 4 problem solving (extension topics) may june session ...Alpro
 
Accounting 97062 paper 2 structured questions may june session 2002
Accounting 97062 paper 2 structured questions may june session 2002 Accounting 97062 paper 2 structured questions may june session 2002
Accounting 97062 paper 2 structured questions may june session 2002 Alpro
 
Accounting 97061 paper 1 multiple choice october november 201
Accounting 97061 paper 1 multiple choice october november 201 Accounting 97061 paper 1 multiple choice october november 201
Accounting 97061 paper 1 multiple choice october november 201 Alpro
 
Accounting 97061 paper 1 multiple choice may june session 2002
Accounting 97061 paper 1 multiple choice may june session 2002 Accounting 97061 paper 1 multiple choice may june session 2002
Accounting 97061 paper 1 multiple choice may june session 2002 Alpro
 
Accounting 9706 41 paper 4 problem solving (supplementary topics) october nov...
Accounting 9706 41 paper 4 problem solving (supplementary topics) october nov...Accounting 9706 41 paper 4 problem solving (supplementary topics) october nov...
Accounting 9706 41 paper 4 problem solving (supplementary topics) october nov...Alpro
 
Accounting 9706 31 paper 3 multiple choice october november 2013
Accounting 9706 31 paper 3 multiple choice october november 2013 Accounting 9706 31 paper 3 multiple choice october november 2013
Accounting 9706 31 paper 3 multiple choice october november 2013 Alpro
 
Accounting 9706 11 paper 1 multiple choice october november 2014
Accounting 9706 11 paper 1 multiple choice october november 2014Accounting 9706 11 paper 1 multiple choice october november 2014
Accounting 9706 11 paper 1 multiple choice october november 2014Alpro
 
9706 accounting november 2012 principal examiner report for teachers 2012 ac...
9706 accounting november 2012 principal examiner report for teachers  2012 ac...9706 accounting november 2012 principal examiner report for teachers  2012 ac...
9706 accounting november 2012 principal examiner report for teachers 2012 ac...Alpro
 
9706 accounting november 2011 principal examiner report for teachers 2011 ac...
9706 accounting november 2011 principal examiner report for teachers  2011 ac...9706 accounting november 2011 principal examiner report for teachers  2011 ac...
9706 accounting november 2011 principal examiner report for teachers 2011 ac...Alpro
 
9706 accounting november 2011 grade thresholds university of cambridge intern...
9706 accounting november 2011 grade thresholds university of cambridge intern...9706 accounting november 2011 grade thresholds university of cambridge intern...
9706 accounting november 2011 grade thresholds university of cambridge intern...Alpro
 

More from Alpro (20)

Accounting 970602 paper 2 structured questions october november 2008
Accounting 970602 paper 2 structured questions october november 2008 Accounting 970602 paper 2 structured questions october november 2008
Accounting 970602 paper 2 structured questions october november 2008
 
Accounting 970602 paper 2 structured questions october november 2007
Accounting 970602 paper 2 structured questions october november 2007 Accounting 970602 paper 2 structured questions october november 2007
Accounting 970602 paper 2 structured questions october november 2007
 
Accounting 970602 paper 2 structured questions october november 2006
Accounting 970602 paper 2 structured questions october november 2006 Accounting 970602 paper 2 structured questions october november 2006
Accounting 970602 paper 2 structured questions october november 2006
 
Accounting 970602 paper 2 structured questions for examination from 2016 spec...
Accounting 970602 paper 2 structured questions for examination from 2016 spec...Accounting 970602 paper 2 structured questions for examination from 2016 spec...
Accounting 970602 paper 2 structured questions for examination from 2016 spec...
 
Accounting 970602 paper 2 core topics for examination from 2010 specimen paper
Accounting 970602 paper 2 core topics for examination from 2010 specimen paperAccounting 970602 paper 2 core topics for examination from 2010 specimen paper
Accounting 970602 paper 2 core topics for examination from 2010 specimen paper
 
Accounting 970602 paper 2 core topics for examination from 2010 specimen mark...
Accounting 970602 paper 2 core topics for examination from 2010 specimen mark...Accounting 970602 paper 2 core topics for examination from 2010 specimen mark...
Accounting 970602 paper 2 core topics for examination from 2010 specimen mark...
 
Accounting 970601 paper 1 multiple choice october november 2008
Accounting 970601 paper 1 multiple choice october november 2008 Accounting 970601 paper 1 multiple choice october november 2008
Accounting 970601 paper 1 multiple choice october november 2008
 
Accounting 970601 paper 1 multiple choice october november 2007
Accounting 970601 paper 1 multiple choice october november 2007 Accounting 970601 paper 1 multiple choice october november 2007
Accounting 970601 paper 1 multiple choice october november 2007
 
Accounting 970601 paper 1 multiple choice october november 2006
Accounting 970601 paper 1 multiple choice october november 2006 Accounting 970601 paper 1 multiple choice october november 2006
Accounting 970601 paper 1 multiple choice october november 2006
 
Accounting 970601 paper 1 multiple choice for examination from 2016 specimen ...
Accounting 970601 paper 1 multiple choice for examination from 2016 specimen ...Accounting 970601 paper 1 multiple choice for examination from 2016 specimen ...
Accounting 970601 paper 1 multiple choice for examination from 2016 specimen ...
 
Accounting 97064 paper 4 problem solving (extension topics) may june session ...
Accounting 97064 paper 4 problem solving (extension topics) may june session ...Accounting 97064 paper 4 problem solving (extension topics) may june session ...
Accounting 97064 paper 4 problem solving (extension topics) may june session ...
 
Accounting 97062 paper 2 structured questions may june session 2002
Accounting 97062 paper 2 structured questions may june session 2002 Accounting 97062 paper 2 structured questions may june session 2002
Accounting 97062 paper 2 structured questions may june session 2002
 
Accounting 97061 paper 1 multiple choice october november 201
Accounting 97061 paper 1 multiple choice october november 201 Accounting 97061 paper 1 multiple choice october november 201
Accounting 97061 paper 1 multiple choice october november 201
 
Accounting 97061 paper 1 multiple choice may june session 2002
Accounting 97061 paper 1 multiple choice may june session 2002 Accounting 97061 paper 1 multiple choice may june session 2002
Accounting 97061 paper 1 multiple choice may june session 2002
 
Accounting 9706 41 paper 4 problem solving (supplementary topics) october nov...
Accounting 9706 41 paper 4 problem solving (supplementary topics) october nov...Accounting 9706 41 paper 4 problem solving (supplementary topics) october nov...
Accounting 9706 41 paper 4 problem solving (supplementary topics) october nov...
 
Accounting 9706 31 paper 3 multiple choice october november 2013
Accounting 9706 31 paper 3 multiple choice october november 2013 Accounting 9706 31 paper 3 multiple choice october november 2013
Accounting 9706 31 paper 3 multiple choice october november 2013
 
Accounting 9706 11 paper 1 multiple choice october november 2014
Accounting 9706 11 paper 1 multiple choice october november 2014Accounting 9706 11 paper 1 multiple choice october november 2014
Accounting 9706 11 paper 1 multiple choice october november 2014
 
9706 accounting november 2012 principal examiner report for teachers 2012 ac...
9706 accounting november 2012 principal examiner report for teachers  2012 ac...9706 accounting november 2012 principal examiner report for teachers  2012 ac...
9706 accounting november 2012 principal examiner report for teachers 2012 ac...
 
9706 accounting november 2011 principal examiner report for teachers 2011 ac...
9706 accounting november 2011 principal examiner report for teachers  2011 ac...9706 accounting november 2011 principal examiner report for teachers  2011 ac...
9706 accounting november 2011 principal examiner report for teachers 2011 ac...
 
9706 accounting november 2011 grade thresholds university of cambridge intern...
9706 accounting november 2011 grade thresholds university of cambridge intern...9706 accounting november 2011 grade thresholds university of cambridge intern...
9706 accounting november 2011 grade thresholds university of cambridge intern...
 

Recently uploaded

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatYousafMalik24
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfMahmoud M. Sallam
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxmanuelaromero2013
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfMr Bounab Samir
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitolTechU
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxabhijeetpadhi001
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxJiesonDelaCerna
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Celine George
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxUnboundStockton
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxNirmalaLoungPoorunde1
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupJonathanParaisoCruz
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...Marc Dusseiller Dusjagr
 

Recently uploaded (20)

Earth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice greatEarth Day Presentation wow hello nice great
Earth Day Presentation wow hello nice great
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Pharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdfPharmacognosy Flower 3. Compositae 2023.pdf
Pharmacognosy Flower 3. Compositae 2023.pdf
 
How to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptxHow to Make a Pirate ship Primary Education.pptx
How to Make a Pirate ship Primary Education.pptx
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)ESSENTIAL of (CS/IT/IS) class 06 (database)
ESSENTIAL of (CS/IT/IS) class 06 (database)
 
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdfLike-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
Like-prefer-love -hate+verb+ing & silent letters & citizenship text.pdf
 
Capitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptxCapitol Tech U Doctoral Presentation - April 2024.pptx
Capitol Tech U Doctoral Presentation - April 2024.pptx
 
MICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptxMICROBIOLOGY biochemical test detailed.pptx
MICROBIOLOGY biochemical test detailed.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
CELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptxCELL CYCLE Division Science 8 quarter IV.pptx
CELL CYCLE Division Science 8 quarter IV.pptx
 
Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17Difference Between Search & Browse Methods in Odoo 17
Difference Between Search & Browse Methods in Odoo 17
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Blooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docxBlooming Together_ Growing a Community Garden Worksheet.docx
Blooming Together_ Growing a Community Garden Worksheet.docx
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Employee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptxEmployee wellbeing at the workplace.pptx
Employee wellbeing at the workplace.pptx
 
MARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized GroupMARGINALIZATION (Different learners in Marginalized Group
MARGINALIZATION (Different learners in Marginalized Group
 
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
“Oh GOSH! Reflecting on Hackteria's Collaborative Practices in a Global Do-It...
 

Computer paper 3 may june 2004 9691 cambridge General Certificate of education advanced level zimsec zimbabwe computers

  • 1. UNIVERSITY OF CAMBRIDGE INTERNATIONAL EXAMINATIONS General Certificate of Education Advanced Subsidiary Level and Advanced Level COMPUTING Paper 2: Practical Tasks May/June 2005 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 6 printed pages and 2 blank pages. IB05 06_9691_02/FP  UCLES 2005 [Turn over
  • 2. 2 © UCLES 2005 9691/02/M/J/05 Answer all questions Task 1 [22 marks] This is a design and implementation task At a university a lecturer may teach many modules and a module may be taught by many lecturers. Lecturers have an office and a telephone number. Several lecturers, who may have to share a telephone, may use an office. An office is identified by a 5-character code consisting of two uppercase letters followed by three digits such as AB123. The telephone number consists of four digits such as 0362. The lecturer’s name is the only personal data to be stored. Modules have a module code consisting of two letters and four digits such as IT1002. Each module has a title such as Information Technology. (a) Design a database, consisting of three tables, to store the data. You should include evidence showing the attributes of the tables together with their data types and any validation rules you have used. Screen dumps are acceptable for this purpose. [11] Create sufficient data to complete the rest of this task. Provide copies of your completed tables. Screen dumps are acceptable for this purpose. (b) (i) Create a form that will allow the user to add a lecturer to the appropriate table. (ii) Create a form that will allow the user to add a module to the appropriate table. (iii) Create a form that will allow a user to link a lecturer to a module. The form should allow the user to choose a lecturer from a list and to choose a module from a list. [6] (c) Create a query that, when run, requests a user to select a lecturer and then lists all the modules taught by that lecturer. Include evidence that your query works correctly. [2] (d) Create a report that lists the lecturers for each module. The report should group the information on module code and have appropriate headings. Include evidence that your report is correct. [3]
  • 3. 3 © UCLES 2005 9691/02/M/J/05 [Turn over Task 2 [18 marks] This is a white box test task. No implementation is required. Read the following algorithm for a procedure, called Validate, in which each step has been numbered. Validate(aString) 1 Length = Len(aString) 2 If Length = 0 Then 3 Output "Empty string is not allowed" 4 Else 5 OK = TRUE 6 DP = FALSE 7 Count = 1 8 Ch = 1st character of aString 9 IF Ch < "0" OR Ch > "9" THEN 10 OK = FALSE 11 ELSE 12 WHILE Count < Length AND OK DO 13 Count = Count + 1 14 Ch = next character in aString 15 IF Ch = "." THEN 16 IF DP THEN 17 OK = FALSE 18 ELSE 19 DP = TRUE 20 ENDIF 21 ELSE 22 IF Ch < "0" OR Ch > "9" THEN 23 OK = FALSE 24 ENDIF 25 ENDIF 26 ENDWHILE 27 ENDIF 28 IF OK THEN 29 Output "Valid string" 30 ELSE 31 Output "Invalid string" 32 ENDIF 33 ENDIF 34 END PROCEDURE Validate The function Len(aString) returns the number of characters in aString. For example, if aString = "Computer", Len(aString) = 8.
  • 4. 4 © UCLES 2005 9691/02/M/J/05 When the procedure is called with Validate("58") the lines 1, 2, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 21, 22, 24, 25, 26,12, 26, 27, 28, 29, 30, 32, 33, 34 are executed and the output is Valid string. The example test above can be described as shown in Table 2.1. Path Test Data Expected Output 1, 2, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 21, 22, 24, 25, 26,12, 26, 27, 28, 29, 30, 32, 33, 34 58 Valid string. Table 2.1 Using a table similar to Table 2.1, write down the lines that are executed and the output when the procedure is called with (i) Validate(".376"); [4] (ii) Validate("4.9"); [7] (iii) Validate("6.2.7"). [7]
  • 5. 5 © UCLES 2005 9691/02/M/J/05 [Turn over Task 3 [20 marks] This is a design and implementation task You are to design and create a very simple binary calculator using a high-level language of your choice. A binary calculator can only use the digits 0 and 1. This calculator will allow the user to enter two unsigned binary numbers and will then allow the user to add, subtract, multiply or divide these numbers. In the case of division, the result should be truncated to a whole number. This is equivalent to integer division. The result is to be displayed in binary. To do this you are advised to follow these steps. (a) Design an interface that will allow the user to input two unsigned binary numbers and will display them in two boxes. The user should then be able to choose addition, subtraction, multiplication or division. There should be a box to show the result of the calculation. The user should also be able to clear all the boxes. (No processing is required at this stage.) [4] (b) Create a function, called BinaryToDecimal, that will accept a binary number as a parameter and will return its decimal equivalent. For example, BinaryToDecimal(101101) will return the decimal value 45. You may use the following algorithm to do this. Input the binary number as a string Total = 0 For each binary digit in the string, starting on the left, Total = Total * 2 + value of digit Return Total You should clearly annotate your code and use meaningful names for variables and other objects such as buttons and text boxes (if you use them). You should include a copy of your code as evidence. [4] (c) Create a function, called DecimalToBinary, that will accept a decimal number as a parameter and will return its binary equivalent. For example, DecimalToBinary (47) will return the binary value 101111. You may use the following algorithm to do this. Input the decimal number called Number Binary = "" 'Empty string Repeat Remainder = remainder after Number is divided by 2 Number = Whole part of Number divided by 2 Binary = String value of Remainder & Binary Until Number = 0 & means concatenation. For example "1010" & "1" = "10101" You should clearly annotate your code and use meaningful names for variables and other objects such as buttons. You should include a copy of your code as evidence. [4]
  • 6. 6 © UCLES 2005 9691/02/M/J/05 (d) Create code for each of the operations of addition, subtraction, multiplication and division. You are advised to change the binary numbers input by the user to decimal, do the operation and then convert the result back to binary before displaying it. You should include a copy of your code as evidence. [3] (e) Create a set of test data that shows that the operations of addition, subtraction, multiplication and division work and provide evidence that you have used this data. Screen dumps are acceptable but must show the data entered and the result of the operation. [5]
  • 8. 8 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/02/M/J/05 BLANK PAGE