Computer Science 2015 Past Paper

COMPUTER SCIENCE

                                                          FEDERAL PUBLIC SERVICE COMMISSION 
                                                              COMPETITIVE EXAMINATION FOR
                                                          RECRUITMENT TO POSTS IN BS-17
                                                   UNDER THE FEDERAL GOVERNMENT, 2015
                                                                  COMPUTER SCIENCE 
TIME ALLOWED: THREE HOURS
PART-I(MCQS): MAXIMUM 30 MINUTES

PART-I (MCQS) MAXIMUM MARKS = 20
PART-II 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-II
SECTION-A
Q.No.2. (a) Why Registers are used in CPU operations? Define the purposes of MAR, IR
and Program Counter.(08)
(b) Give scheme for Deadlock Prevention. (06)
(c) Elaborate the concept of IPV6. Explain its advantages over IPV4. (06)
Q.No.3. (a) Explain the functionality of seven layers of OSI reference model and map
with TCP/IP protocol suite.(08)
(b) Discuss Instruction Execution Cycle. (06)
(c) Briefly explain Paging and Segmentation with diagrams. (06)


SECTION-B
Q.No.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.(08)
(b) What is the difference between Function Overloading and Function
Overriding? Explain your answer by giving example syntax for each one.(06)
(c) Write short notes on the following:
I. USECASE Diagram II. Activity Diagram (06)


Q.No.5. (a) Write down difference between:
I. Data Hiding and Encapsulation II. Constructor and Copy Constructor(08)
(b) Build and draw a Binary Search Tree for the following input data 25, 11, 75,
69, 115, 50, 72, 17, 200, 60, 35.(06)
(c) Explain Incremental Model of Software Engineering by giving its
advantages over other models.(06)


SECTION-C
Q.No.6. (a) Write down notes on the following:
I. CRT Display Devices II. LCD Display Devices(08)
(b) What is CSS? How many ways are there to link CSS and XHTML? (06)
(c) Write note on the followings:
I. 3NF II. BCNF(06)


Q.No.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.(06)
(c) Write down Incremental Algorithm for Line drawing from
p0(x0,y0)?p1(x1,y1) where x1>x0 and |dx|>|dy|