Chapter 7,8
Chapter 7,8
1. (a) A software developer is pressured to release a product with known security flaws. Explain why
acting ethically is important in this situation, including one potential impact of acting unethically.
[6 marks]
(b) Describe the role of a professional ethical body, such as the British Computer Society
(BCS), in supporting computing professionals.
[4 marks]
[6 marks]
(b) Explain the purpose of copyright legislation in protecting software and one limitation it
faces in the digital age.
[4 marks]
[6 marks]
(b) Define the terms "candidate key" and "foreign key," and explain how they contribute to a
relational database’s structure.
[4 marks]
[6 marks]
b) Explain the purpose of indexing in a relational database and one potential drawback of using it.
[4 marks]
[6 marks]
(b) Write an SQL Data Definition Language (DDL) statement to create the Programs table with:
• ProgramID (INTEGER, primary key)
• ProgramName (VARCHAR(40))
• Duration (INTEGER)
[4 marks]
[3 marks]
6. Using the tables from Question 5:
(a) Write an SQL query to display the FirstName, LastName, and ProgramName for all students
enrolled in programs with a Duration of 3 years, sorted by LastName in ascending order. Use an
INNER JOIN.
[6 marks]
[3 marks]
c) Write an SQL query to display the ProgramName and the number of students enrolled in
each program (using COUNT), grouped by ProgramName and sorted by the count in descending order.
[6 marks]
[6 marks]
(b) A Database Management System (DBMS) manages the college database. Explain how the
DBMS ensures data integrity and data security, giving one specific feature for each.
[4 marks]