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

Computer Science, Paper I

100 marks · 3 hours · 7 questions · official PDF, 2 pages
This paper Computer Science · all yearsQ. 2 · Write a detailed note on…Q. 3 · How does dynamic memory allocation…Q. 4 · What is Polymorphism? Explain Ad-Hoc…Q. 5 · (a) For analyzing an Algorithm…Q. 6 · Discuss the architecture of aspect-oriented…Q. 7 · (a) Design and draw a…Q. 8 · (a) Discuss the role of…With this paperOfficial PDF2 pp← 20222023 →
3 hours · questions hide until you reveal them

Section A

Q. 2
  1. (a)Write a detailed note on any 03 Super Computing Technologies being used in the world. List key characteristics in each case. [8]
  2. (b)What performance metrics are used to analyze the capacity of Super Computers? Discuss. [6]
  3. (c)Discuss the role of Web Crawling, Indexing & Searching operations for a Search Engine. [6]
(20)
Q. 3
  1. (a)How does dynamic memory allocation is managed programmatically in a C++ program? Clarify yours understanding through a viable program. [8]
  2. (b)Write a note on the use of overloaded operators. Discuss with examples. [6]
  3. (c)What is bit twiddling? Give brief description. [6]
(20)
Q. 4
  1. (a)What is Polymorphism? Explain Ad-Hoc Polymorphism, Parametric Polymorphism & Subtyping with suitable coding examples. [8]
  2. (b)Discuss Late Binding with a short program. [6]
  3. (c)Differentiate between Abstraction & Encapsulation. [6]
(20)

Section B

Q. 5

(a) For analyzing an Algorithm theoretically & asymptotically, give a detailed note on Input size, unit of time & order of growth. Support your answer with appropriate mathematical equations.

(b) Briefly describe the four types of analysis we may perform to evaluate the asymptotic behavior of an algorithm.

(c) Evaluate order of growth of the functions given below. Compare & write down which one has higher, same or lower order of growth than the other one:

I. n(n+1)n(n+1) and 2000n22000n^2

II. 100n2100n^2 and 0.01n30.01n^3

III. Log2n\text{Log}^2 n and ln⁡n\ln n

IV. 2n−12^{n-1} and 2n2^n

V. (n−1)!(n-1)! and n!n!

Checked against official paper
(20)
Q. 6
  1. (a)Discuss the architecture of aspect-oriented system. [8]
  2. (b)Briefly discuss the motivation for aspect-oriented programming. [6]
  3. (c)Briefly describe 05 agile software development frameworks. [6]
(20)
Q. 7

(a) Design and draw a finite automaton to recognize the regular language of all strings that contain the string ‘001’ as a substring.

(b) Consider the following state diagram and extract the standard information, i.e., Q, Σ\Sigma, q0q_0, F and δ\delta.

[figure]

(c) How would you optimize a loop? Describe the techniques briefly.

Checked against official paper
(20)
Q. 8

(a) Discuss the role of Syntax Tree in representing formal text structure. Develop a Syntax Tree structure for the following piece of code:

while b ≠\neq 0

if a > b

a = a - b;

else

b = b - a;

return a;

(b) Describe your understanding on Constant Folding using a brief pseudo code.

(c) What is an Optimization problem? What are its 02 general categories? Write down mathematical representation of a standard optimization problem.

Checked against official paper
(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 2018Computer Science 2019Computer Science 2019Computer Science 2020Computer Science 2020Computer Science 2021Computer Science 2021Computer Science 2022Computer Science 2022Computer Science 2023Computer Science 2024Computer Science 2024Computer Science 2025Computer Science 2025Computer Science 2026Computer Science 2026Accountancy & Auditing 2023Accountancy & Auditing 2023Anthropology 2023Applied Mathematics 2023Arabic 2023Balochi 2023Botany 2023British History 2023Business Administration 2023Chemistry 2023Chemistry 2023Comparative Study of Major Religions 2023Computer Science 2023Constitutional Law 2023Current Affairs 2023Economics 2023English Essay 2023English Literature 2023English (Précis & Composition) 2023Gender Studies 2023General Science & Ability 2023Geology 2023Governance & Public Policies 2023International Relations 2023International Relations 2023Islamic History & Culture 2023Islamic Studies 2023Law 2023Muslim Law & Jurisprudence 2023Pakistan Affairs 2023Pashto 2023Physics 2023Physics 2023Political Science 2023Political Science 2023Psychology 2023Public Administration 2023Sociology 2023Statistics 2023Town Planning & Urban Management 2023Zoology 2023

About this paper

The 2023 CSS Computer Science paper set by the Federal Public Service Commission. Question wording only; questions marked “Not yet checked” have not been compared with the official paper yet. Open the official paper beside the questions to check any of them.

Disclaimer Prep Right is independent and not affiliated with FPSC.