Computer Science 2210 · 9

Databases

109 questions. Open a question to solve it and check the official answer.

2022 October-November · Paper 22 · Q7(a)(ii)

Databases · 1 mark

(ii) State one reason why the Candidates field could not be of the Boolean data type. .............................................................................................…

2022 October-November · Paper 22 · Q7(b)

Databases · 3 marks · official answer ready

(b) Show the output given by the query-by-example grid. Field: SubjectName Practicals Candidates Table: ASSESS ASSESS ASSESS Sort: Ascending Show: 3 3 Criteria:

2022 October-November · Paper 22 · Q7(c)

Databases · 3 marks · official answer ready

(c) Complete the query-by-example grid to output the subjects with fewer than 150 candidates. Display only the SubjectCode, SubjectName and Candidates fields in order of the numbe…

2022 October-November · Paper 23 · Q5(a)

Databases · 2 marks · official answer ready

(a) Identify which field you would choose for the primary key. State a reason for your choice. Field ..............................................................................…

2022 October-November · Paper 23 · Q5(b)

Databases · 3 marks · official answer ready

(b) Complete the query-by-example grid to display only the description and the country of origin for those items not in store. Field: Table: Sort: Show: Criteria: or: [3] 15 16 re…

2022 May-June · Paper 12 · Q2(b)

Databases · 2 marks · official answer ready

(b) HTML colour codes and Media Access Control (MAC) addresses are two examples of where hexadecimal is used in Computer Science. Give two other examples of where hexadecimal can …

2022 May-June · Paper 21 · Q6(a)

Databases · 1 mark

(a) State the number of fields that are in the table GAMES. .......................................................................................................................…

2022 May-June · Paper 21 · Q6(b)

Databases · 1 mark

(b) State one important fact that must be true for a field to be a primary key. ...................................................................................................…

2022 May-June · Paper 21 · Q6(c)

Databases · 3 marks · official answer ready

(c) Complete the query-by-example grid to output all the games that have no stock and that are on order with the supplier. Display only the GameID, GameName and GamePrice fields i…

2022 May-June · Paper 22 · Q5(a)

Databases · 4 marks · official answer ready

(a) Complete this query-by-example grid to display only the item number and the description of single use items, where the stock level is below the reorder level. Field: Table: So…

2022 May-June · Paper 22 · Q5(b)

Databases · 1 mark · official answer ready

(b) Give a reason why the field SingleUse is not required in the table NURSE. .....................................................................................................…

2021 October-November · Paper 12 · Q8

Databases · 7 marks · official answer ready

8 An electronic game has three square mats that are coloured red, green and blue. The player will see a colour displayed on a screen and has 1 second to hit the mat that matches t…

2021 October-November · Paper 22 · Q22(a)(ii)

Databases · 1 mark

22 UNTIL Continue = 0 (ii) Identify the field that should be used as the primary key. .............................................................................................…

2021 May-June · Paper 21 · Q6(a)

Databases · 1 mark

(a) State the reason ID could be used as a primary key in the table GENRE. ........................................................................................................…

2021 May-June · Paper 21 · Q6(b)

Databases · 1 mark

(b) State the number of records in the table GENRE. ...............................................................................................................................…

2021 May-June · Paper 21 · Q6(c)

Databases · 4 marks · official answer ready

(c) Complete the query-by-example grid to display any genres with overdue books. Only display the ID, GenreName and Overdue fields in order of the number of books overdue from lar…

2021 May-June · Paper 22 · Q6

Databases · 5 marks · official answer ready

6 A database table, PLANT, is used to keep a record of plants sold by a nursery. The table has these fields: • NAME – name of plant • FLOWER – whether the plant flowers (True) or …

2020 October-November · Paper 13 · Q11

Databases · 6 marks · official answer ready

11 A theme park has a game where a player tries to run from the start to the finish without getting wet. The system for the game uses sensors and a microprocessor to spray water a…

2020 October-November · Paper 22 · Q7(b)

Databases · 2 marks · official answer ready

(b) Identify the field that is most suitable to be a primary key and give a reason for your choice. Fieldname .....................................................................…

2020 October-November · Paper 22 · Q7(c)

Databases · 4 marks · official answer ready

(c) Complete the query-by-example grid to show the items where the quantity in stock is fewer than 10. Show all the fields from the database table in descending order of cost. Fie…