CSS Computer Science Past Paper 2012

PAPER (Subjective) 80 Marks

Attempt ONLY FOUR questions from PART-II, selecting at least ONE question from EACH SECTION. (20×4)

PART-II

SECTION-A

Q.2.
(a) With the help of a diagram, briefly describe the interfacing and role of major programmable ICs that support/help the processor to control the functionality of an Intel-based PC system.
(b) Completely describe the sequence of steps that would be followed in order to print the contents of a file stored on the hard disk. For each step, explicitly tell which component performs the step and which wire it controls.
(c) With the help of a state diagram, depict the instruction cycle with Interrupts. Also, define the term bus arbitration and its various types.

Q.3.
(a) In case of CSMA, what can a station do if there is an access conflict (there are many contending nodes)?
(b) What is the key difference between Frequency Division Multiplexing and Frequency Hopping Spread Spectrum?
(c) Define Framing. Give reasons for its need.
(d) What is the role of the address field in a packet traveling through a virtual circuit network?

SECTION-B

Q.4.
(a) Differentiate between overloading and overriding giving examples.
(b) Define the classes and their relationships as given in the following class diagram. Associate at least three appropriate attributes and two methods with each class. You can use any programming language and you do not need to write the code for the methods, only give the class specifications.

Q.5.
(a) You are given the head of a single linked list. Write code to count the number of nodes in it (any language).
(b) Write the formula to access a particular node of a two-dimensional array in row-major order. Consider the start address of a two-dimensional array A[10][10] to be 200, then compute the address of A[3][5] using your formula, considering each element takes 4 bytes.
(c) Write code to push and to pop elements in a stack.

Q.6.
(a) Give at least five differences between the classical waterfall way of software development and evolutionary development.
(b) Explain the requirement engineering process with proper model diagram.
(c) Write a use case of your choice in expanded form for the Player Information System of Pakistan Cricket Board (PCB).

SECTION-C

Q.7.
(a) “We can have a relation that is in 3NF but not in BCNF,” explain this point by giving an example.
(b) Write six basic properties of a database relation. Which one of these properties is different from those of a mathematical relation?
(c) Create an ER diagram for each of the following descriptions associating two or three attributes with each entity type:
(i) Each company may operate up to four departments, and each department must belong to one company.
(ii) Each department in part (i) employs one or more employees, and each employee works for one or more departments.
(iii) Each of the employees in part (ii) may or may not have one or more dependents, and each dependent belongs to one employee.
(iv) Each employee in part (iii) may or may not have an employment history.
(v) Some of the employees are managers for other employees.
(d) Represent all the ER diagrams described above as a single ER diagram.

Q.8.
Suppose a user votes for their favorite food from a dynamic combo box populated from the database, and the user must be able to make multiple food selections per request. You can use a database of your choice. You are required to implement the following functionality:
(a) Store the favorite foods and the number of votes for each food.
(b) Display all foods and their number of votes in alphabetical order back to the user.
(c) Display the top three foods.