CSC_AL _P2_ 2025_CRM
CSC_AL _P2_ 2025_CRM
A
PAIX – TRAVAIL – PATRIE PEACE – WORK – FATHERLAND
………………….. …………………..
Where an imperative programming language is required to write program code, either standard (ISO) Pascal or the
standard (ANSI C) programming language may be used.
Mantissa Exponent
(i) State the value of 1011 1110 0100 in denary if it represents a two’s complement floating point number. (2 marks)
(ii) This floating-point number is said to be normalised. How does the bit pattern indicate that this number is normalised?
(2 marks)
(b) (i) How many 32K x 1 RAM chips are needed to provide a memory capacity of 256 K bytes? (2 marks)
(ii) A computer memory is composed of 16 chips, each of size 4K x 8.
(iii) Draw a digital circuit diagram for this comparison with r as the output. (2 marks)
(iv) What logic gate is been described here? (1 mark)
2 (i) A computer design company has been asked to produce a design for an elementary computer to be used to teach
students about machine architecture, machine operations and the design of an instruction set. The current instruction register
has a length of 16 bits. The accumulator has a length of 16 bits. The size of each memory location is 16 bits. The current
instruction register is designed to hold one machine instruction at a time. A machine instruction is 16 bits in length. The most
significant eight bits of a machine instruction denote the machine operation. The least significant eight bits denote an operand
or an address of an operand. Main memory stores both instructions and data. The structure of a machine instruction is as
follows:
Bit no. 15 8 7 0
(b) What do you understand by universal logic gate? Give two examples. (3 marks)
(c) Using NAND gates only, give the logic circuit that represents ̅ (2 marks)
(b) What is the "starvation" phenomenon in process scheduling? Which scheduling policies might lead to starvation?
(2 marks)
(c) Consider the following set of processes, assumed to have arrived at time 0 in the order P1, P2, P3, P4, & P5, with the length
of the CPU burst given in milliseconds. The execution of these processes is done using a combination of Round-Robin and
priority scheduling in such a way that the system executes the highest-priority process and runs processes with the same priority
using round-robin scheduling.
Using priority scheduling (a smaller priority number implies a higher priority) with round-robin (time quantum of 2 milliseconds)
for processes with equal priority;
(c) Explain how virtual memory allows multiple applications to run simultaneously on a system with limited physical memory.
(2 marks)
(b) Identify the type of file organization used for product records and provide two advantages of this organization. (3 marks)
(c) Calculate the RecordKey values for the following ProductIDs: 1023, 2048, and 3071. (3 marks)
tblDepartments(departmentId, departmentName)
(a) Provide an SQL DDL definition for the table tblAssignments. (4 marks)
(c) Identify one referential integrity constraint present in the DDL definition. (1 mark)
(d) Present one sample row of data for tblEmployees and two sample rows for tblDepartments and tblAssignments.
(3 marks)
(a) Apply this algorithm to sort the list: [22, 15, 30, 5]. Show all steps. (4 marks)
(b) Count the total number of comparisons and swaps performed. (2 marks)
(b) List two reasons why software testing is critical in development. (2 marks)
(c) Describe three types of test data that should be included in a testing strategy. (3 marks)
(b) Provide examples of an IPv4 address, one from Class C and one from Class D. (2 marks)
(ii) The data byte 11010110 is to be transmitted using synchronous serial data transmission.
(b) Distinguish between parallel and serial data transmission methods. (2 marks)
(c) A parity bit will be appended. Explain its purpose and determine the value if even parity is used. (2 marks)
7. (i) (a) Explain the concept of a pointer in programming. What is a null pointer, and why is it important in programming?
(3 marks)
(b) Why is it important for a program to identify the data type of each variable? (2 marks)
(c) What kind of error arises from failing to declare a variable? (1 mark)
(ii) Study the following flowchart and answer the questions that follow:
a) Give a trace table of the values for the variables X, Y, T and N at the point where N>0 is tested, where N is
initially 8. Hence, determine the output of this algorithm for N=8 (3 marks)
b) From your table in (a) above, deduce the computation that is performed by the above algorithm. Write a mathematical
formula for this computation (2 marks)
c) Give an equivalent pseudocode representation of the flowchart above. (3 marks)
8. You have just taken the job of programmer for GCE Solutions, in a large software development company. The software
company has a project to develop a web application for a school. You are the lead developer for this project.
The school principal has some ideas about the appearance of the web application but is unclear about all the details of the
solution.
i) The principal would like to see an initial version of the web application.
a) Identify a life cycle model that would be appropriate in this case. Give a reasons for your choice. (2 marks)
b) Analysis is one stage of a software development life cycle. Explain one document that may be produced from the analysis
stage of the school web application project. (2 marks)
c) The web application project has progressed to the design stage. Explain two (2) activities that will take place during the design
stage of the software development life cycle. (2 marks)
ii) Modular programming technique was used in the development of this school web application.
a) Define modular programming. (2 marks)
b) Several testing strategies are required when using the above technique during software development. State and explain one (1)
type of testing that could be used during the web application development. (2 marks)
iii) Consider the arithmetic expression F=A-(B*C/D)+E.
a) Draw an expression tree for F. (3 marks)
b) Explain how you can obtain the RPN of F, using the tree in (a) above. (2 marks)
c) Give the RPN of F. (1 mark)
d) State one advantage of using RPN over infix (1 mark)