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

Computer Science, Paper I

100 marks · 3 hours · 7 questions
This paper Computer Science · all yearsQ. 2 · Give a detailed note on…Q. 3 · See the following C++ program…Q. 4 · How do the OOP paradigm…Q. 5 · Discuss the security issues associated…Q. 6 · Discuss the limitations of genetic…Q. 7 · Discuss the architecture of aspect-oriented…Q. 8 · Write down the major steps…With this paper← 20182019 →
3 hours · questions hide until you reveal them

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

SECTION–I

Q. 2
  1. (a)Give a detailed note on a revised BSD 3-clause license. Also name 5 softwares using this license. [10]
  2. (b)How do artificial intelligence may facilitate us in improving cyber security? [5]
  3. (c)What are the main parts and phases of a computer virus program? [5]
(20)
Q. 3
  1. (a)See the following C++ program to declare whether an input number is a prime number or not. Identify the logical errors in the given program (if any). Give your correct statement(s) exactly at the same line number. n, i; bool isPrime = false; cout << "Enter a positive integer: "; cin >> n; for(i = 1; i < n / 2; ++i) { if(n / i == 0) { isPrime = false; break; }} if (isPrime) cout << "This is a prime number"; else cout << "This is not a prime number"; [10]
  2. (b)What is the difference between call by value and call by reference? [5]
  3. (c)What is the role of preprocessor directives? Give three examples in C++. [5]
Not yet checked
(20)
Q. 4
  1. (a)How do the OOP paradigm can be associated with the real-world problems? Explain. [10]
  2. (b)Discuss critical reasons given by the professionals for not supporting the OOP paradigm. [10]
(20)
Q. 5
  1. (a)Discuss the security issues associated with the cloud computing. [10]
  2. (b)What is bit twiddling? Give brief description. [5]
  3. (c)An image is a representation of some information. Discuss how does a computer represents an image internally? Name different algorithms used to extract features from images. [5]
(20)

Section B

Q. 6
  1. (a)Discuss the limitations of genetic algorithms. [10]
  2. (b)What is AVL tree? Under what condition, a binary tree becomes AVL tree? [5]
  3. (c)Consider the following graph. Find out the sequence of edges added to the minimum spanning tree using Kruskal's algorithm. [See image: A graph with nodes labeled a, b, c, d, e, f, g and edges with weights: (a,b)=5, (a,c)=4, (a,d)=3, (b,e)=2, (c,f)=6, (d,g)=6, (e,f)=5, (e,g)=5, (f,g)=6] [5]
(20)
Q. 7
  1. (a)Discuss the architecture of aspect-oriented system. [10]
  2. (b)Briefly discuss the motivation for aspect-oriented programming. [5]
  3. (c)What is the significance of quantification and obliviousness? [5]
(20)
Q. 8
  1. (a)Write down the major steps involved in code generation. [10]
  2. (b)How would you optimize a loop? Describe the techniques briefly. [5]
  3. (c)Differentiate machine-dependent optimization and machine-independent optimization. [5]
(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 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 2019Accountancy & Auditing 2019Agriculture & Forestry 2019Anthropology 2019Applied Mathematics 2019Arabic 2019Botany 2019British History 2019Business Administration 2019Chemistry 2019Chemistry 2019Comparative Study of Major Religions 2019Computer Science 2019Constitutional Law 2019Current Affairs 2019Economics 2019Economics 2019English Essay 2019English Literature 2019English (Précis & Composition) 2019European History 2019General Science & Ability 2019Geography 2019Geology 2019History of Pakistan & India 2019International Relations 2019International Relations 2019Islamic History & Culture 2019Islamic Studies 2019Journalism & Mass Communication 2019Law 2019Mercantile Law 2019Muslim Law & Jurisprudence 2019Pakistan Affairs 2019Philosophy 2019Physics 2019Physics 2019Political Science 2019Political Science 2019Punjabi 2019Pure Mathematics 2019Sociology 2019Statistics 2019Town Planning & Urban Management 2019Urdu Literature 2019Zoology 2019

About this paper

The 2019 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.