Paper 2 11°
Paper 2 11°
COMPUTER SCIENCE
STANDARD LEVEL
PAPER 2
1 hour
INSTRUCTIONS TO CANDIDATES
14 pages
© International Baccalaureate Organization 2011
–2– SPEC/4/COMSC/SP2/ENG/TZ0/XX
Option A — Databases
A1. A company has a division called Technical Services. This division is organized into departments.
The following chart shows how the various staff are organized.
Director of
Technical
Services
Head of
Head of Head of Head of
Environmental
Administration Engineering Planning
Protection
The Human Resources Department maintains a flat file database to store information about all
the staff members for salary, holiday and promotion purposes. A sample of the stored
information is shown below.
Staff
Surname Forename Job Title Line Manager Salary
Number
948 Kent McKenzie Head of Planning Adrienne Mathis 90875
156 Barker Rae Head of Administration Adrienne Mathis 30465
815 Riddle Kevyn Development Control Officer Kent McKenzie 34768
580 Figueroa Rina Policy Manager Kent McKenzie 45078
871 Mathis Adrienne Director of Technical Services Russell Z. Harrell 45800
457 Neal Paul Head of Environmental Protection Adrienne Mathis 80670
297 Oliver Ralph Principal Engineer Daria Gilmore 50796
51 Gilmore Daria Head of Engineering Adrienne Mathis 90655
(Question A1 continued)
The Human Resources Department is experiencing many errors when compiling reports of
personnel and has been advised that it should change to a relational database.
(ii) Describe the difference between a flat file database and a relational database. [2]
(ii) Outline using examples how data redundancy in this database could lead to errors. [2]
(c) The departments usually have many ongoing projects that occupy their team members. The
Human Resources Department needs to produce lists showing who is involved in current
projects.
(i) Construct an Entity Relationship Diagram to show how a relational database could
be designed to make this possible with the least chance of producing errors caused
by data redundancy. [4]
(ii) Identify the steps to create a query that could be constructed to produce a list of staff
members whose salary is greater than $50 000 who are involved in a project called
“Relocation_2012”. [4]
Turn over
–4– SPEC/4/COMSC/SP2/ENG/TZ0/XX
A2. A bank wants to transfer money from one account to another. Both accounts are
held in the bank’s database management system (DBMS). The account DBMS
carries out a series of separate operations in order to achieve this transaction.
These include removing of money from one account and adding it to the other.
An error may occur if this process is interrupted, for example due to a power
failure. This could compromise the integrity of the account database.
(iii) Explain why the interruption described above could compromise the integrity of the
account database. [2]
(b) Identify the steps that should be taken by the software in order to maintain the integrity of
the account database. [4]
(c) The bank account data is shared between various applications, such as the bank’s
internal accounting systems and the online transaction system. Explain how problems of
concurrency can arise and how they can be avoided. [6]
A3. (a) (i) Identify two functions of a database management system (DBMS). [2]
(b) Database management systems allow data sharing and multiple views. Explain why
these features are important to an organization that uses databases. [4]
(c) Explain why it is important for data to be independent of the application software that
manipulates it. [6]