Question 7(e)(iii) 2015 · October-November · Paper 42 · 32 marks
Question 7
Part (e)
(iii)
Question 7
Question 8
Question 9
Question 3
(i)
Complete the GANTT chart by adding activities M and N.
(ii)
State the earliest completion date.
Week number ...............................................................................................................
Part (b)
There are problems with the progress of the project:
- Activity E showed that the code contained major errors. The senior programmer now
- further module coding will require another 2 weeks
- further module testing will require another 2 weeks
- further integration testing will require another 2 weeks
- The hardware delivery is delayed by 16 weeks.
estimates that:
(i)
Complete the chart in the grid below.
Activity A B C D E F G H J K L M N Week
Question 10
Question 11
Question 12
Question 13
Question 14
Question 15
Question 16
Question 17
Question 18
Question 19
Question 20
Question 21
Question 22
Question 23
Question 24
Question 25
Question 26
Question 27
Question 28
Question 29
number
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
Question 7
Question 8
Question 9
(ii)
State the new estimated completion date.
Week number ................................................................................................................
Question 4
2 A declarative programming language is used to represent the following facts and rules:
01 male(ahmed). 02 male(raul). 03 male(ali). 04 male(philippe). 05 female(aisha). 06 female(gina). 07 female(meena). 08 parent(ahmed, raul). 09 parent(aisha, raul). 10 parent(ahmed, philippe). 11 parent(aisha, philippe). 12 parent(ahmed, gina). 13 parent(aisha, gina). 14 mother(A, B) IF female(A) AND parent(A, B).
These clauses have the following meaning:
Clause Explanation 01 Ahmed is male 05 Aisha is female 08 Ahmed is a parent of Raul 14 A is the mother of B if A is female and A is a parent of B Write the rule to show that X is a brother of Y.
brother(X, Y)
IF .............................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
..............................................................................................................................................
Question 6
3 A college has two types of student: full-time and part-time.
All students have their name and date of birth recorded.
courses a part-time student attends is recorded, along with the total fee and whether or not the fee has been paid.
The college needs a program to process data about its students. The program will use an object- oriented programming language.
Part (a)
Complete the class diagram showing the appropriate properties and methods.
Student
StudentName: STRING
........................................................................
........................................................................
........................................................................
ShowStudentName()
........................................................................
........................................................................
........................................................................
FullTimeStudent PartTimeStudent
Address: STRING ....................................................................... ....................................................................... ....................................................................... ....................................................................... ....................................................................... ....................................................................... .......................................................................
Constructor() ....................................................................... ShowAddress() ....................................................................... ....................................................................... ....................................................................... ....................................................................... .......................................................................
Question 7
Part (b)
Write program code:
(iii)
to create a new instance of FullTimeStudent with:
- identifier: NewStudent
- name: A. Nyone
- date of birth: 12/11/1990
- telephone number: 099111
Programming language .....................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
...........................................................................................................................................
......................................................................................................................................
4 A dictionary Abstract Data Type (ADT) has these associated operations:
- Create dictionary (CreateDictionary)
- Add key-value pair to dictionary (Add)
- Delete key-value pair from dictionary (Delete)
- Lookup value (Lookup)
The dictionary ADT is to be implemented as a two-dimensional array. This stores key-value pairs.
The pseudocode statement
DECLARE Dictionary : Array[1:2000, 1:2] OF STRING
reserves space for 2000 key-value pairs in array Dictionary.
The CreateDictionary operation initialises all elements of Dictionary to the empty string.
Part (a)
The hashing function Hash is to extract the first letter of the key and return the position of this
letter in the alphabet. For example Hash("Action") will return the integer value 1. (Note: The ASCII code for the letter A is 65.)
Complete the pseudocode:
FUNCTION Hash (................................................) RETURNS .............................................
DECLARE Number : INTEGER
Number ← ...........................................................................................................................
............................................................................................................................................
ENDFUNCTION
Question 9
Part (b)
The algorithm for adding a new key-value pair to the dictionary is written, using pseudocode,
as a procedure.
PROCEDURE Add(NewKey : STRING, NewValue : STRING) Index ← Hash(NewKey) Dictionary[Index, 1] ← NewKey // store the key Dictionary[Index, 2] ← NewValue // store the value ENDPROCEDURE
An English-German dictionary of Computing terms is to be set up.
(i)
Dry-run the following procedure calls by writing the keys and values in the correct
elements of Dictionary.
Add("File", "Datei") Add("Disk", "Platte") Add("Error", "Fehler") Add("Computer", "Rechner")
Dictionary Index Key Value
Question 1
Question 2
Question 3
Question 4
Question 5
Question 6
Question 7
Reveal official mark-scheme answer
The answer for this question is in the official mark scheme: open the mark scheme.
Why this question appears here
82% assigned-topic match · Data types and structures › Arrays
Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.
Permanent source page: Educate A Change · From 9608_w15_qp_42.pdf
