9608_s19_qp_11
A paper of Computer Science, 9608
Questions:
6
Year:
2019
Paper:
1
Variant:
1

Login to start this paper & get access to powerful tools

1
2
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.
3
4
5
A simple program written in assembly language is translated using a two-pass assembler. The table contains some of the tasks performed by a two-pass assembler. Tick (✓) one box in each row to indicate whether the task is performed at the first or second pass. The first row has been completed for you. Task First pass Second pass Creation of symbol table ✓ Expansion of macros Generation of object code Removal of comments The processor’s instruction set can be grouped according to their function. For example, one group is modes of addressing. Identify two other groups of instructions. The table shows assembly language instructions for a processor which has one general purpose register, the Accumulator (ACC), and an Index Register (. Instruction Explanation Op code Operand LDM #n Immediate addressing. Load the denary number n to ACC. LDD Direct addressing. Load the contents of the location at the given address to ACC. LDX Indexed addressing. Form the address from + the contents of the Index Register. Copy the contents of this calculated address to ACC. LDR #n Immediate addressing. Load the denary number n to IX. STO Store contents of ACC at the given address. ADD Add the contents of the given address to ACC. INC Add 1 to the contents of the register (ACC or . CMP #n Compare contents of ACC with denary number n. JPE Following a compare instruction, jump to if the compare was True. JPN Following a compare instruction, jump to if the compare was False. JMP Jump to the given address. OUT Output to screen the character whose ASCII value is stored in ACC. END Return control to the operating system. The current contents of the main memory, Index Register (and selected values from the ASCII character set are: Address Instruction LDM #0 STO 300 CMP #0 JPE 28 LDX 100 ADD 301 OUT JMP 30 LDX 100 OUT LDD 300 INC ACC STO 300 INC IX CMP #2 JPN 22 END … … IX ASCII code table (Selected codes only) ASCII Code Character A B C D E a b c d e
6