<?xml version="1.0" encoding="UTF-8"?>        <rss version="2.0"
             xmlns:atom="http://www.w3.org/2005/Atom"
             xmlns:dc="http://purl.org/dc/elements/1.1/"
             xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
             xmlns:admin="http://webns.net/mvcb/"
             xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
             xmlns:content="http://purl.org/rss/1.0/modules/content/">
        <channel>
            <title>
									CSS Computer Science Paper 2016 - Computer Science				            </title>
            <link>https://cssforum.net/group-i-papers-computer-science/css-computer-science-paper-2016/</link>
            <description>CSS Forum Discussion Board</description>
            <language>en-US</language>
            <lastBuildDate>Sat, 15 Aug 2026 10:43:12 +0000</lastBuildDate>
            <generator>wpForo</generator>
            <ttl>60</ttl>
							                    <item>
                        <title>CSS Computer Science Paper 2016</title>
                        <link>https://cssforum.net/group-i-papers-computer-science/css-computer-science-paper-2016/#post-81333</link>
                        <pubDate>Sat, 15 Aug 2026 09:15:34 +0000</pubDate>
                        <description><![CDATA[FEDERAL PUBLIC SERVICE COMMISSIONCOMPETITIVE EXAMINATION FOR RECRUITMENT TO POSTSIN BPS-17 UNDER THE FEDERAL GOVERNMENT, 2016
COMPUTER SCIENCE
 
PART-IISECTION-I
Q. 2. (a) Write a progra...]]></description>
                        <content:encoded><![CDATA[<div style="text-align: center"><span style="font-size: 14pt"><strong>FEDERAL PUBLIC SERVICE COMMISSION</strong></span><br /><span style="font-size: 14pt"><strong>COMPETITIVE EXAMINATION FOR RECRUITMENT TO POSTS</strong></span><br /><span style="font-size: 14pt"><strong>IN BPS-17 UNDER THE FEDERAL GOVERNMENT, 2016</strong></span></div>
<div style="text-align: center"><span style="font-size: 14pt"><strong>COMPUTER SCIENCE</strong></span></div>
<div style="text-align: center"> </div>
<div style="text-align: center"><span style="font-size: 14pt"><strong>PART-II</strong></span><br /><span style="font-size: 14pt"><strong>SECTION-I</strong></span></div>
<div><br /><strong>Q. 2.</strong> (a) Write a program to input choice from user for temperature conversion from Fahrenheit<br />to Celsius or Celsius to Fahre00000000nheit. After the choice, input temperature from<br />user and display the converted answer. Sample execution of the program is given below;<br />1. Fahrenheit to Celsius<br />2. Celsius to Fahrenheit<br />Enter your choice: 1<br />Enter Temperature in Fahrenheit: 98<br />Same Temperature in Celsius: 36.7<br />Press Any Key to Continue....<br />(b) Which type of computer (supercomputers, mainframe computers, minicomputers,<br />microcomputers) will suit an individual? Justify your answer.<br />(c) Suppose you are trying to build a Student Registration System using object oriented<br />approach. Objective of the system is to store information of course registration of<br />students and their course results. In C++ syntax define following classes with suitable<br />attributes each having getdata( ) and showdata( ) member functions along with<br />suitable constructor functions;<br />Person, Teacher, Student, Course, Section, Allocation (containing information about<br />allocation of a course to a teacher in a semester), Registration (containing information<br />about registration of a student in course, this class will also save course result<br />information of the student). You can add more classes which you think suitable for the<br />system.<br />(6)<br />(6)<br />(8)</div>
<div><br /><strong>Q. 3.</strong> (a) Define a function named monthly-profit which will calculate the monthly profit on the<br />given investment amount. Function will take two float arguments, percent profit rate and<br />investment amount and return the monthly profit (float). Write function prototype,<br />function definition and a main program to demonstrate the functionality. Sample<br />execution of the program is given below. Note that monthly profit 4000 has been<br />calculated by the function by doing (8/100) * 50000. User can enter any values therefore<br />write generalized function (user variables, not given values).<br />Enter percent profit rate: 8<br />Enter investment amount: 50000<br />Monthly profit: 4000<br />Press Any Key to Continue....<br />(b) Explain and differentiate between volatile and non-volatile memory, giving examples.<br />(c) Suppose you are trying to build a Library Information System using object oriented<br />approach. System should be able to keep track of books issued and returned. It should be<br />able to calculate fine if a book is late. Currently you are required to design classes i.e. not<br />to write C++ code but describe which class you will define, which data members you<br />will add, which member functions you will include in those classes. Define only suitable<br />classes and suitable attributes (data members) in C++ syntax. Names of some classes are<br />like, Student, Teacher, Book, Issue Book etc. You can (but not required to) extend this<br />list of four classes if you think of some other suitable classes.</div>
<div> </div>
<div><strong>Q. 4</strong>. (a) Define a structure to store records of Persons. We want to store only Name, age and address<br />of Person. Write main program to input record of one person and display ‘Young’ if its age<br />is less than 20 or ‘Old’ if the age is greater than 50 and ‘Middle’ if the age of person is<br />between 21 and 49. Sample execution of the main program is given below:<br />Enter Name = Kashif<br />Enter Age = 19<br />Enter Address = H 120, St: 08, KAR.<br />Person is YOUNG<br />Press Any Key to Continue ......<br />(b) Convert given binary numbers to Decimal, Octal and Hexadecimal.<br />(i) 100(2) (ii) 10100(2) (iii) 100101(2)<br />(c) Suppose you are designing software for a Medical Store, using object oriented<br />techniques. Decide and define classes (like ‘Person’, ‘Customer’, ‘Salesman’, ‘Purchase’<br />etc.) and their attributes in C++ or Java syntax. You are not required to write any<br />member functions and main programme. You must use inheritance where suitable.</div>
<div> </div>
<div style="text-align: center"><strong><span style="font-size: 14pt">SECTION-II</span></strong></div>
<div><br /><strong>Q. 5.</strong> (a) Describe the followings (no description with more than three lines);<br />i. Sibling Nodes ii. Degree of a tree iii. Leaf Node<br />iv. Height/ Depth of a tree v. Binary Tree vi. Full Binary Tree<br />vii. Complete Binary Tree viii. Maximum number of nodes in a Binary Tree at level L.<br />(b) Find the time complexity of Binary search by resolving the recurrence (given below)<br />using iterative substitution method.<br />T(1) = 2 if n =&lt; 1<br />T(n) = 4 + T(n/2) if n&gt;1<br />(c) Draw the given array in the form of binary tree. Then apply ‘Build-Heap’ Algorithm to<br />convert the given tree in the form of Max-Heap (i.e. draw final Max-heap in the form of<br />tree and array). Finally show execution of ‘Heap-sort’ algorithm by rewriting the Heap<br />array after each iteration of the algorithm.<br />A = {8, 14, 2, 26, 10, 12, 16, 28, 20, 7}<br />(8)<br />(6)<br />(6)</div>
<div><br /><strong>Q. 6.</strong> (a) Write Abstract Data Types (ADT) of Stack and Queue. Include the specifications of Add,<br />Delete, IsEmpty, IsFull functions along with their respective functions.<br />(b) For step count expressions n2 + 10 and 2n / 4 find breakeven point i.e. for which value<br />of n (starting from 1,2…) second expression will become greater than value of first<br />expression.<br />(c) In AVL tree balance factor of every node is -1 or 0 or +1. We can calculate the balance<br />factor as Height left-sub-tree – Height right-sub-tree. Construct AVL tree from the given data;<br />A = {8, 14, 2, 26, 10, 12, 16, 28, 20, 7}<br />(8)<br />(6)<br />(6)</div>
<div><br /><strong>Q. 7.</strong> (a) Draw a diagram that illustrates the process of translating a C++ source file into an<br />executable file. Give example of each phase depicted in your diagram of compilation<br />process.<br />(b) Compare and contrast among compiler, interpreter and assembler.<br />(c) Describe Software Development Life Cycle (SDLC). Explain your answer with the help<br />of depicting and describing different phases of pure water fall software life cycle.<br />(d) What is the difference between SRS document and design document? What are the<br />contents we should contain in the SRS document and design document.<br />(5)<br />(5)<br />(5)<br />(5)</div>
<div><br /><strong>Q. 8.</strong> (a) What are the purposes of Data Flow diagrams, Entity-Relationship diagrams? Give an<br />example diagram of each.<br />(b) Explain five properties of language using the example of English. Explain why a<br />software language like MiniJava meets these properties as well.<br />(c) Lexical analysis: Consider the following regular expression<br />r1 = (A | …. | Z) * (0 | …. | 9)*<br />Describe the language defined by r1 in English. Turn r1 into an equivalent finite<br />automaton. Remove ɛ-moves from the finite automation.<br />(d) What do you mean by Context Free Grammar (CFG)? Illustrate your answer with<br />examples.</div>
<div> </div>
<div style="text-align: center"><span style="font-size: 14pt"><strong>PART-II</strong></span><br /><span style="font-size: 14pt"><strong>SECTION-A</strong></span></div>
<div> </div>
<div><br /><strong>Q. 2.</strong> (a) Suppose you add two new devices to an existing five-device network. If you have a fully<br />connected mesh topology, how many new cable lines are needed? If, however, the<br />devices are arranged in a ring, how many new cable lines are needed?<br />(b) Transmission media are not perfect because of imperfections and impairments in the<br />signal sent through the medium. Signals at the beginning and at the end of the<br />medium are not the same. Discuss in detail the impairments in the transmission medium.<br />(c) Whenever multiple devices are used in a network, the problem arises that how to<br />connect them to make one-on-one communication possible. Switching is the best solution<br />for this kind of problem. A switched network consists of a series of inter-linked nodes<br />called switches. Explain briefly the methods of switching used by computer networks.<br />(6)<br />(7)<br />(7)</div>
<div><br /><strong>Q. 3.</strong> (a) RAID is a physical disk drives viewed by the operating system as a single logical drive,<br />where data are distributed across the physical drives of an array. Explain different levels<br />of RAID? Elaborate your answer with suitable diagrams.<br />(b) The basic function performed by a computer is execution of a program, which<br />consists of set of instructions stored in memory. The processor required for a single<br />instruction is called an instruction cycle. Elaborate basic instruction cycle used by<br />modern computer systems. Also add diagrams for explanation.<br />(c) Differentiate between Reduced Instruction Set Computers (RISC) and Complex<br />Instruction Set Computers (CISC) architectures.<br />(8)<br />(6)<br />(6)</div>
<div><br /><strong>Q. 4.</strong> (a) Deadlock prevention algorithms prevents deadlock by restraining how requests can be<br />made, the restrain ensure that at least one of the necessary conditions for deadlock<br />cannot occur and hence, that deadlock cannot hold. Explain the Banker’s Algorithm for<br />deadlock avoidance.<br />(b) Central Processing Unit (CPU) scheduling deal with the problem of deciding which of<br />the processes in the ready queue is to be allocated to the CPU. What are the pros and<br />cons of Multilevel Queue Scheduling and Multilevel Feedback Queue Scheduling?<br />(c) What do you know about Process Control Block? Discuss its components in detail.<br />(8)<br />(6)<br />(6)</div>
<div><br /><strong>Q. 5.</strong> (a) A complete SELECT statement embedded within another SELECT statement. The<br />results of this inner SELECT statement (or subselect) are used in the outer statement to<br />help determine the contents of the final result. Differentiate among following nested<br />sub-queries operators “IN”, “ANY” and “ALL”.<br />(b) Explain how Pattern match search condition (LIKE/NOT LIKE) can be used in<br />SELECT statement part of SQL in database management system.<br />(c) Differentiate between Data Manipulation Language (DML) and Data Definition<br />Language (DDL) of structured query language (SQL) in database management system<br />(DBMS).</div>
<div> </div>
<div><strong>Q. 6.</strong> (a) A transaction is a unit of program execution that accesses and possibly updates various<br />data items. Usually, a transaction is initiated by a user program written in a data<br />manipulation language. Explain the ACID property of transaction processing.<br />(b) Distinguish among functional dependency, Fully functional dependency and Transitive<br />dependency.<br />(c) A trigger is a statement that the system executes automatically as a side effect of a<br />modification to the database. What are the different forms of triggers and how they are<br />defined?<br />(8)<br />(6)<br />(6)</div>
<div><br /><strong>Q. 7.</strong> (a) Write down a short note on Array versus Matrix Operations<br />(b) Differentiate between CMY and CMYK Colour Models used in digital image<br />processing.<br />(c) Explain the Boundary Extraction Algorithm used for basic morphology.<br />(6)<br />(6)<br />(8)</div>
<div><br /><strong>Q. 8.</strong> (a) Explain the principals of requirement engineering of web applications.<br />(b) Elaborate the term E-Commerce. Discuss in detail about the effects of<br />E-Commerce in Islamic Banking in Pakistan.<br />(c) What are the components of Generic web application architecture?</div>
<div><hr /><strong><span style="font-size: 14pt"><a href="https://hostnezt.com/cssfiles/csspastpapers/computer/Computer%20Science%202016.pdf" target="_blank" rel="noopener">DOWNLOAD NOW </a></span></strong></div>]]></content:encoded>
						                            <category domain="https://cssforum.net/group-i-papers-computer-science/">Computer Science</category>                        <dc:creator>zarnishayat</dc:creator>
                        <guid isPermaLink="true">https://cssforum.net/group-i-papers-computer-science/css-computer-science-paper-2016/#post-81333</guid>
                    </item>
							        </channel>
        </rss>
		