Prep Right
Questions › CSS › Computer Science › 2018
FPSC · CSS 2018

Computer Science, Paper II

100 marks · 3 hours · 7 questions
This paper Computer Science · all yearsQ. 2 · Briefly describe the functionality of…Q. 3 · Differentiate between hub, bridge, switch…Q. 4 · There are three processes PA,…Q. 5 · Given two relations R and…Q. 6 · Differentiate between image sampling and…Q. 7 · Perform histogram equalization on the…Q. 8 · Elaborate the concept of three…With this paper← 20182019 →
3 hours · questions hide until you reveal them

Not yet checked 3 of 7 questions have not yet been compared with the official paper.

SECTION–A

Q. 2
  1. (a)Briefly describe the functionality of the following CPU special-purpose registers: Instruction Register (IR), Memory Data Register (MDR) and Program Counter (PC). [8]
  2. (b)Differentiate between Address, Data and Control bus. [6]
  3. (c)Discuss instruction pipelining in the context of fetch-decode-execute cycle. [6]
(20)
Q. 3
  1. (a)Differentiate between hub, bridge, switch and router. [8]
  2. (b)Discuss how Network Address Translation (NAT) works and why is it useful? [6]
  3. (c)Elaborate the working of multiplexing/de-multiplexing at the transport layer. [6]
(20)
Q. 4
  1. (a)There are three processes PA, PB and Pc and three resources RA, RB and Rc. Resources RA and RB have one instance each while resource Rc has two instances. PA is holding one instance of Rc and has requested for RA. Process PB is holding RA and has requested for RB. RB is allocated to Pc which has also requested an instance of Rc. Represent the scenario with a resource allocation graph. Discuss whether there is a deadlock or not? If yes, which processes are blocked? [8]
  2. (b)In the context of Paging, consider the case where memory addresses are 32 bits i.e. 20 bits Virtual Page Numbers and 12 bits of offset. How many virtual pages are there and what is the size of each page? Given the virtual address 0x7589, find the virtual page number and offset. If the respective page table entry contains 0x900DF, find the physical address. [6]
  3. (c)In the context of I/O management, differentiate between Pooling and Interrupts. [6]
(20)
Q. 5
  1. (a)Given two relations R and S, where R contains M tuples, S contains N tuples, and M >N > 0, give the minimum and maximum possible sizes (in tuples) for the resulting relation produced by each of the following relational algebra expressions.
  2. (b)Elaborate the concepts of super key, candidate key and foreign key with examples.
  3. (c)Discuss the difference between physical data independence and logical data independence.
Not yet checked
(20)
Q. 6
  1. (a)Differentiate between image sampling and quantization. Discuss how these concepts relate to spatial and intensity resolutions. [8]
  2. (b)In the context of image smoothing, discuss the differences between mean and median filters. [6]
  3. (c)For the image 'X' shown in Figure 1, show the result of applying the given morphological operators. Assume zero padding for border pixels. i. Dilation of X by structuring element [1 1 1]. ii. Erosion of X by structuring element [1 1 1]T iii. Dilation of X by a 3x3 structuring element containing all ones. 0 0 0 0 0 0 0 0 0 1 1 0 0 1 1 0 0 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 0 0 0 0 0 0 0 0 0 0 [6]
Not yet checked
(20)
Q. 7
  1. (a)Perform histogram equalization on the 8-bit image shown in Figure 2. 5 5 5 5 5 10 10 10 10 10 30 30 30 30 30 100 100 100 100 100 100 100 100 100 100 [8]
  2. (b)For the 3x3 image shown in the following, apply the horizontal and vertical Sobel operators and compute the magnitude of gradient at the central pixel with intensity value 50. 5 5 5 5 50 5 5 5 5 [6]
  3. (c)In the context of compression, differentiate between coding, spatial and temporal redundancies. [6]
Not yet checked
(20)
Q. 8
  1. (a)Elaborate the concept of three tier architecture with reference to presentation, business logic and data access layers. [8]
  2. (b)Differentiate between XHTML and XML. [6]
  3. (c)Discuss Agile and Water Fall methodologies in the context of web application development. [6]
(20)

Related papers

Computer Science 2000Computer Science 2002Computer Science 2003Computer Science 2004Computer Science 2005Computer Science 2006Computer Science 2009Computer Science 2010Computer Science 2011Computer Science 2012Computer Science 2013Computer Science 2015Computer Science 2016Computer Science 2017Computer Science 2018Computer Science 2019Computer Science 2019Computer Science 2020Computer Science 2020Computer Science 2021Computer Science 2021Computer Science 2022Computer Science 2022Computer Science 2023Computer Science 2023Computer Science 2024Computer Science 2024Computer Science 2025Computer Science 2025Computer Science 2026Computer Science 2026Accountancy & Auditing 2018Accountancy & Auditing 2018Agriculture & Forestry 2018Anthropology 2018Applied Mathematics 2018Arabic 2018Balochi 2018Botany 2018British History 2018Business Administration 2018Chemistry 2018Comparative Study of Major Religions 2018Computer Science 2018Criminology 2018Current Affairs 2018English Essay 2018English (Précis & Composition) 2018Environmental Sciences 2018European History 2018General Science & Ability 2018Geography 2018Geology 2018Governance & Public Policies 2018History of Pakistan & India 2018International Relations 2018Islamic History & Culture 2018Islamic Studies 2018Journalism & Mass Communication 2018Law 2018Mercantile Law 2018Muslim Law & Jurisprudence 2018Pakistan Affairs 2018Philosophy 2018Physics 2018Physics 2018Political Science 2018Psychology 2018Punjabi 2018Pure Mathematics 2018Statistics 2018Town Planning & Urban Management 2018Urdu Literature 2018Zoology 2018

About this paper

The 2018 CSS Computer Science paper set by the FPSC. Question wording only; questions marked “Not yet checked” have not been compared with the official paper yet.

Disclaimer Prep Right is independent and not affiliated with FPSC.