Federal Public Service Commission
Competitive Examination for Recruitment to Posts in BS-17
Under the Federal Government, 2015
Computer Science
TIME ALLOWED: (PART-I) 30 MINUTES, MAXIMUM MARKS: 20
(PART-II) 2 HOURS & 30 MINUTES MAXIMUM MARKS: 80
NOTE: (i) Part-II is to be attempted on the separate Answer Book.
(ii) Attempt ONLY FOUR questions from PART-II, selecting at least ONE question from EACH SECTION. ALL questions carry EQUAL marks.
(iii) All the parts (if any) of each Question must be attempted at one place instead of at different places.
(iv) Candidate must write Q. No. in the Answer Book in accordance with Q. No. in the Q.Paper.
(v) No Page/Space be left blank between the answers. All the blank pages of Answer Book must be crossed.
(vi) Extra attempt of any question or any part of the attempted question will not be considered.
(vii) Use of Calculator is allowed.
PART-I (MCQs – COMPULSORY)
PART II
SECTION A
Q. 2. (a) Why Registers are used in CPU operations? Define the purposes of MAR, IR and Program Counter.
(b) Give scheme for Deadlock Prevention.
(c) Elaborate the concept of IPV6. Explain its advantages over IPV4.
Q. 3. (a) Explain the functionality of seven layers of OSI reference model and map with TCP/IP protocol suite.
(b) Discuss Instruction Execution Cycle.
(c) Briefly explain Paging and Segmentation with diagrams.
SECTION B
Q. 4. (a) Explain the functionality of Hash Table. By supposing that table size is 100, give steps to insert data 112, 2023, 3001 into Hash Table and then to search 2023 from Hash Table.
(b) What is the difference between Function Overloading and Function Overriding? Explain your answer by giving example syntax for each one.
(c) Write short notes on; the following:
I. USE CASE Diagram
II. Activity Diagram
Q. 5. (a) Write down difference between:
I. Data Hiding and Encapsulation
II. Constructor and Copy Constructor
(b) Build and draw a Binary Search Tree for the following input data 25, 11, 75,69, 115, 50, 72, 17, 200, 60, 35.
(c) Explain Incremental Model of Software Engineering by giving its
advantages over other models.
SECTION C
Q. 6. (a) Write down notes on the following:
I. CRT Display Devices
II. LCD Display Devices
(b) What is CSS? How many ways are there to link CSS and XHTML?
(c) Write note on the followings:
I. 3NF II. BCNF
Q. 7. (a) Differentiate between the following by giving their respective definitions and concepts:
I. Equvi Join II. Outer Join III. Natural Join
(b) What are different web Architectures? Explain their Advantages and Disadvantages.
(c) Write down Incremental Algorithm for Line drawing from
p0(x0,y0) –> p1(x1,y1) where x1 > x0 and |dx| > |dy|