Create a Database Structure (Cambridge (CIE) IGCSE ICT): Exam Questions

40 mins9 questions
11 mark

A book has an ISBN which is 330247204X

Choose the most appropriate data type for the ISBN.

  • Numeric: integer

  • Text

  • Boolean

  • Date

Did this page help you?

21 mark

The manager of a medical centre keeps the doctor’s stock records in a database. The stock for any item is not allowed to fall below 15 items and the manager keeps a maximum of 100 items in stock.

The table shows examples of the stock.

Name_of_item

Serial_number

Number_in_stock

Name_of_supplier

Shelf_number

Medihoney

3081043612211

15

Capimed

0126

Sodium fusidate

1437210227870

60

Brooks Medical

0112

Crepe bandage

2541233164353

100

Capimed

0064

Crepe bandage

2834954736849

89

Cams Meds

0064

As data is entered it needs to be verified and validated.

Name the most appropriate field from the table that could be used as a primary key in the database.

Did this page help you?

3a1 mark

A library system has two tables; one for borrowers and one for books. Extracts from these tables are shown.

Borrower_ID

Borrower_name

Contact_telephone

Contact_email

5404

Susan Stranks

01632 960321

[email protected]

9867

Fei Hong Zhao

07700 900222

[email protected]

Borrowers table

Book_ID

ISBN

Name_of_book

Author_of_book

Date_published

Borrower_ID

Date_due_back

1

0859550153

Bird of Prey

David James

1977

5404

27/10/2021

34

3301028345

The Fifth Man

Colin Turner

1998

9324

05/10/2021

35

4237681321

A View of the Temple

Yu Yan Zhang

2017

8854

07/10/2021

54

4237681321

A View of the Temple

Yu Yan Zhang

2017

5404

27/10/2021

Books table

For the books table, name the most appropriate field that could be used as a primary key

3b1 mark

The librarian has created a relationship between the books table and the borrowers table.

For the books table, name the most appropriate foreign key field that would be used to create the relationship.

Did this page help you?

42 marks

Two types of database are relational and flat file.

Give, using an example, one reason why flat file databases are used in certain applications rather than relational databases.

Did this page help you?

52 marks

A student is creating a spreadsheet of airports for a project.

Spreadsheet listing airport codes, names, and countries. Includes London Heathrow, Rome, Paris, Milan, Shannon, Stockholm, Leeds and Bradford, and Geneva.

The formula in G2 is:

=VLOOKUP(F2,A2:B9,2,0)

The completed file could have been created using a database.

Describe two reasons why databases are used in certain applications rather than spreadsheets.

Did this page help you?

6a3 marks

A systems analyst has created a new computer system to keep records in a medical centre. She has created a relational database to store the medical records of patients.

The database uses primary and foreign keys.

Describe what is meant by a relational database.

6b4 marks

Explain the difference between a primary key and a foreign key.

6c4 marks

A dentist works at the medical centre. The dentist stores the medical records of his patients

Describe four other uses of the database software that the dentist can use to help him in his work.

Did this page help you?

7a4 marks

Petr has set up a database for a science project on planets in the solar system. Part of the database is shown.

ID

Name_of_planet

Number_of_moons

Orbital_period

Rings

Gravity

Type_of_planet

First_observed

4

Mars

2

1.88

N

0.38

Regular

1610

5

Ceres

0

4.61

N

0.27

Dwarf

1801

7

Saturn

62

29

Y

1.16

Gas Giant

1610

9

Neptune

14

165

Y

1.21

Gas Giant

1846

10

Pluto

5

248

N

0.62

Dwarf

1930

11

Haumea

1

309

N

0.401

Dwarf

2004

When Petr was designing his database, he had to set the data types for each field.

Complete the design table below by filling in the data types for each named field. Use the most appropriate data type.

Each data type must be different. For any numeric field, specify the type of number.

Field name

Data type

Number_of_moons

Orbital_period

Rings

Name_of_planet

7b2 marks

Write down the names of the planets that are not gas giants but have at least one moon and were first observed after 1800.

Did this page help you?

88 marks

Two types of database are relational and flat file.

Compare and contrast relational databases and flat file databases.

Your answer must include similarities and differences.

Did this page help you?

97 marks

Petr has set up a database for a science project on planets in the solar system. Part of the database is shown.

ID

Name_of_planet

Number_of_moons

Orbital_period

Rings

Gravity

Type_of_planet

First_observed

4

Mars

2

1.88

N

0.38

Regular

1610

5

Ceres

0

4.61

N

0.27

Dwarf

1801

7

Saturn

62

29

Y

1.16

Gas Giant

1610

9

Neptune

14

165

Y

1.21

Gas Giant

1846

10

Pluto

5

248

N

0.62

Dwarf

1930

11

Haumea

1

309

N

0.401

Dwarf

2004

Operators such as AND, OR, NOT, LIKE, >, >=, <, <=, =, <> can be used to search Petr’s planet database. The search criteria for all the gas giant planets with more than 20 moons would look like this:

Type_of_planet = "Gas Giant" AND Number_of_moons > 20

Write down the search criteria that will produce a list of planets that are not gas giants but have at least one moon and were first observed after 1800.

Did this page help you?