Computer Science Paper I Past Paper 2019

The Computer Science Paper I Past Paper 2019 tests licences, code and systems. Q.2 covers a BSD licence, AI in cyber security and virus phases. Q.3 covers a prime-number program, call by value and preprocessor directives. Q.4 covers object orientation and its critics. Q.5 covers cloud security, bit twiddling and image representation. Q.6 covers genetic algorithms, AVL trees and Kruskal’s algorithm. Q.7 covers aspect-oriented systems and quantification. Q.8 closes with code generation, loop optimization and machine optimization. This file holds the Part-II sheet only.

What this paper contains

  • This file carries Part-II (the descriptive part) of the paper.
  • Part-II — attempt ONLY FOUR questions, TWO from EACH of two sections; each question carries 20 marks (Part-I holds the 20 MCQs, per the printed header)

Part-II questions

SECTION-I

Q.2 — (a) Give a detailed note on a revised BSD 3-clause license. Also name 5 softwares using this license. (10)
(b) How do artificial intelligence may facilitate us in improving cyber security? (5)
(c) What are the main parts and phases of a computer virus program? (5) (20)

Q.3 — (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. (10)
1. n, i;
2. bool is Prime = false;
3. cout<< “Enter a positive integer: “;
4. cin>> n;
5. for(i = 1; i< n / 2; ++i)
6. {
7. if(n /i == 0)
8. {
9. is Prime = false;
10. break;
11. }
12. }
13. if (is Prime)
14. cout<< “This is a prime number”;
15. else
16. cout<< “This is not a prime number”;
(b) What is the difference between call by value and call by reference? (5)
(c) What is the role of preprocessor directives? Give three examples in C++. (5) (20)

Q.4 — (a) How do the OOP paradigm can be associated with the real-world problems? Explain. (10)
(b) Discuss critical reasons given by the professionals for not supporting the OOP paradigm. (10) (20)

Q.5 — (a) Discuss the security issues associated with the cloud computing. (10)
(b) What is bit twiddling? Give brief description. (5)
(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-II

Q.6 — (a) Discuss the limitations of genetic algorithms. (10)
(b) What is AVL tree? Under what condition, a binary tree becomes AVL tree? (5)
(c) Consider the following graph. Find out the sequence of edges added to the minimum spanning tree using Kruskal’s algorithm. (5)
(Graph as printed on the sheet.) (20)

Q.7 — (a) Discuss the architecture of aspect-oriented system. (10)
(b) Briefly discuss the motivation for aspect-oriented programming. (5)
(c) What is the significance of quantification and obliviousness? (5) (20)

Q.8 — (a) Write down the major steps involved in code generation. (10)
(b) How would you optimize a loop? Describe the techniques briefly. (5)
(c) Differentiate machine-dependent optimization and machine-independent optimization. (5) (20)

Computer Science Paper I Past Paper 2020 · All Computer Science Past Papers · Computer Science Paper I Past Paper 2018