1. Theory Fundamentals
A section of Computer Science, 9608
Listing 10 of 304 questions
A software company produces software and distributes it under different software licences. Four descriptions of software licences are given. Write the type of software licence that best fits each description. Use a different type of licence for each description. 1. The software can be legally used, only after a fee has been paid. Licence type 2. The source code comes with the software. If the software is modified, the edited source code must be released under the same conditions as the original software. Licence type 3. The software is free for a trial period and then a fee is requested, or expected, if the user wants to continue to use the software. Licence type 4. The source code comes with the software. The software is free to be downloaded, edited, and distributed, possibly without restriction. Licence type The software company stores information about customers and the software licences they have purchased. The company considers a file-based approach for the storage and retrieval of data. Give three limitations of a file-based approach to store the data. The software company decides to use a database to overcome the limitations of a file-based system. Some of these limitations are addressed through the logical schema. Name and describe two levels of the schema of a database. Name 1 Description Name 2 Description The database has the following tables: CUSTOMER(CustomerID, CompanyName) SOFTWARE(SoftwareID, SoftwareName, OperatingSystem, Description) LICENCE( LicenceID, CustomerID, SoftwareID, DateOfPurchase, LicenceType, Cost, ExpiryDate) Identify the type of relationship that exists between the tables CUSTOMER and LICENCE. Describe how the relationship is created between the tables CUSTOMER and LICENCE. The company needs a list of all software licences that have an expiry date on or before 31/12/2019. Write an SQL query to return the fields CustomerID, SoftwareID, LicenceType, Cost and ExpiryDate for all licences that expire on, or before 31/12/2019. Group the output by CustomerID, and in ascending order of cost.
9608_s19_qp_11
THEORY
2019
Paper 1, Variant 1
A teacher uses a relational database, RESULTS, to store data about her students and their test results. Describe the benefits to the teacher of using a relational database instead of a file-based approach. The teacher sets up the RESULTS database using a Database Management System (DBMS). Explain the ways in which the developer interface of a DBMS will help the teacher set up the database. The DBMS creates a data dictionary for the RESULTS database. Identify three items that will be included in the data dictionary. The RESULTS database has the following structure: STUDENT(StudentID, FirstName, LastName, Class, TargetGrade) TEST(TestID, Topic, MaxMarks) STUDENT_TEST(StudentID, TestID, Mark) Complete the following table by giving one example of each database term from the database RESULTS. Give both the field name and the corresponding table name. Database term Field name Table name Primary key Foreign key Attribute Tick (✓) one box to identify whether the database RESULTS is in 1NF, 2NF or 3NF. Justify your choice. 1NF 2NF 3NF Justification: Complete the Data Manipulation Language (DML) script to display the Student ID, mark and maximum marks for all tests with the topic of ‘Programming’. SELECT StudentID, Mark, FROM STUDENT_TEST, Topic = "Programming" AND = ; The teacher wants to implement validation to make sure that all data entered into the database RESULTS are reasonable. Name three different methods of data validation that can be used in the RESULTS database. Describe how each method will limit the data that can be entered in this database. Method 1 Description Method 2 Description Method 3 Description The teacher stores the database on the desktop computer in her classroom. Explain why it is important to keep the database secure. Explain the ways in which the teacher can use data backup and disk mirroring to limit the amount of data lost in the event of hardware failure. Data backup Disk mirroring
9608_w20_qp_12
THEORY
2020
Paper 1, Variant 2
Questions Discovered
304