CSS Computer Science Past Paper 2013

PAPER (Objective) 20 Marks

Multiple Choice Questions. (20×1)

1. Which of the following best describes “virtual memory?”
(A) A portion of the hard disk considered as RAM
(B) Extended memory on the secondary storage that is used whenever physical memory is full
(C) The abstraction of separating logical memory–memory as seen by the process–from physical memory–memory as seen by the processor
(D) It is the page file in Windows folder
(E) None of these

2. The ‘cmp’ instruction modifies the:
(A) Instruction register
(B) Flags register
(C) Segment register
(D) None of these

3. Consider the following page reference string: 1, 2, 3, 4, 2, 1, 5, 6, 2, 1, 2, 3, 7, 6, 3, 2, 1 Assuming there are 4 page frames available and that all frames are initially empty, what is the total number of page faults that would occur for the page reference string above if the least-recently-used (LRU) replacement policy is used?
(A) 6
(B) 9
(C) 10
(D) 11
(E) None of these

4. The Banker’s algorithm is used to ____________.
(A) Rectify deadlock
(B) Detect deadlock
(C) Prevent deadlock
(D) Avoid deadlock
(E) None of these

5. The necessary conditions needed before deadlock can occur are ______.
(A) No Mutual Exclusion, Hold and wait, Preemption, Circular Wait
(B) Mutual Exclusion, No Hold and wait, Preemption, Circular Wait
(C) Mutual Exclusion, Hold and wait, No Preemption, Circular Wait
(D) Mutual Exclusion, Hold and wait, Preemption, No Circular Wait
(E) None of these

6. Difference between data link layer and transport layer error detection is that:
(A) Data link detects transmission errors while transport layer detects segmentation faults
(B) Data link detects node‐to‐node errors while transport layer detects end‐to‐end errors
(C) Data link detects end‐to‐end errors while transport layer detects node‐to‐node errors
(D) Data link detects segmentation errors while transport layer detects bit error
(E) None of these

7. Phase shift keying (PSK.) method is used to modulate digital signals at 9600 bps using 16 levels. The line signals speed (i.e. modulation rate) will be:
(A) 1200 bands
(B) 2400 bands
(C) 4800 bands
(D) 9600 bands
(E) None of these

8. Exception handling is a powerful technique that separates error-handling code from ______ code.
(A) Buggy
(B) Faulty
(C) Normal
(D) Exceptional
(E) None of these

9. When a subroutine is called, the address of the instruction following the CALL instruction is stored in/on the:
(A) Stack pointer
(B) Accumulator
(C) Program counter
(D) Stack
(E) None of these

10. Binary tree “preorder” traversal is defined recursively as follows:
(A) Traverse left subtree, visit the root, traverse right subtree
(B) Traverse right subtree, visit the root, traverse left subtree
(C) Visit the root, traverse left subtree, traverse right subtree
(D) Traverse left subtree, traverse right subtree, visit the root
(E) None of these

11. What value will return to the operating system upon the successful completion of a program?
(A) -1
(B) 1
(C) 0
(D) None of these

12. Which of the following is TRUE about the given UML diagram?


(A) Checking Account is a generalization of Saving Account
(B) Bank Account is a composition of Checking Account and Saving Account
(C) Saving Account can process Check
(D) Checking Account has a balance
(E) None of these

13. The advantages of creating a prototype are:
(A) It allows developers to experiment with a number of different design options
(B) It can serve as a means of communication between developers and customers
(C) It is better than the waterfall model
(D) Both (A) and (B)
(E) None of these

14. Choose the correct statement.
(A) Testing can show the presence of bugs but never their absence
(B) Testing can always find all the bugs
(C) Testing can always be exhaustive
(D) If we test enough then we can find all of the bugs
(E) None of these

15. Which of the following operations need the participating relations to be union compatible?
(A) UNION
(B) INTERSECTION
(C) DIFFERENCE
(D) All of these
(E) None of these

16. The language used in application programs to request data from the DBMS is referred to as the:
(A) DML
(B) DDL
(C) VDL
(D) SDL
(E) None of these

17. What is the correct XHTML for a paragraph?
(A)
(B)
(C)
(D)
(E) None of these

18. Which of the following HTML form methods is suitable when you need to send larger form submissions?
(A) Get
(B) Post
(C) Both Get and Post
(D) Ajax
(E) None of these

19. (2,4) is a point on a circle that has its center at the origin. Which of the following points are also on the circle?
(A) (2,-4)
(B) (-2,4)
(C) (4,-2)
(D) All of the above
(E) None of these

20. In Bresenham’s algorithm, while generating a circle, it is easy to generate?
(A) One octant first and the other by successive reflection
(B) One octant first and the other by successive rotation
(C) One octant first and the other by successive translation
(D) All octants
(E) None of these

PAPER (Subjective) 80 Marks

Attempt ONLY FOUR questions from PART-II, selecting at least ONE question from EACH SECTION. (20×4)

PART-II

SECTION-A

Q. No. 2
(a) Define latency, transfer, and seek time with respect to disk I/O. Compare the given disk scheduling algorithm for cylinder requests in order 11, 1, 36, 16, 34, 9, 12:

  • First-come, first served (FCFS)
  • Shortest-seek-time-first (SSTF)
  • SCAN and C-SCAN
  • LOOK and C-LOOK

(b) Write short notes on the following:

  • Semaphore
  • Belady’s Anomaly
  • Thrashing

Q. No. 3
(a) What is the significance of the OSI model in the communication paradigm? Compare layers of OSI with TCP/IP protocol stack.
(b) Compare IEEE 802.3, IEEE 802.4, and IEEE 802.5? Also mention their problems and applications.
(c) Differentiate between Link State and Distance Vector routing protocols.

SECTION-B

Q. No. 4
(a) What is the concept of inheritance in the OOP paradigm? How can we achieve inheritance in JAVA?
(b) Why is a B+ tree a better structure than an AVL tree for implementation of an indexed sequential file? Explain this with an example.
(c) Convert the expression ((A + B) * C – (D – E) ^ (F + G)) to equivalent Prefix and Postfix notations.

Q. No. 5
(a) Describe the spiral model of software development with its application.
(b) Write a note on the following:

  • Software Quality Assurance
  • Smoke Testing
  • Extreme Programming

SECTION-C

Q. No. 6
(a) What are the main features of the Relational data model? Why is it more useful than the Hierarchical data model?
(b) What is 2PL? Give a schedule of two complete transactions that are not allowed by ‘strict 2PL’ scheduler but are accepted by basic 2PL scheduler.
(c) Write a note on any ONE of the following:

  • ERD
  • Normalization

Q. No. 7
(a) What is the significance of JavaScript in web development? Why is input validation done on the client side?
(b) Explain any THREE of the following:

  • Affiliate Marketing
  • Web Services
  • Server-Side Scripting
  • SEO