Computer Science & Information Technology (CS) 2018 [Session 2]
Review the key details, then start the test when you are ready. You can also open the full package to see related papers.
Paper pattern & analysis
Available question types, difficulty and classifications for this paper.
Topic distribution
Subtopic distribution
Difficulty distribution
Question type distribution
Practise paper questions
Choose your answer to check it. Log in to view the explanation. For a timed attempt and result, start the exam.
The words that best fill the blanks in the above sentence are
The word that best fills the blank in the above sentence is
What would be the smallest natural number which when divided either by 20 or by 42 or by 76 leaves a remainder of 7 in each case?
2, 12, 60, 240, 720, 1440, ______, 0
In a party, 60% of the invited guests are male and 40% are female. If 80% of the invited guests attended the party and if all the invited female guests attended, what would be the ratio of males to females among the attendees in the party?

A six sided unbiased die with four green faces and two red faces is rolled seven times. Which of the following combinations is the most likely outcome of the experiment?
#include<stdio.h> struct Ournode{ char x, y, z; }; int main(){ struct Ournode p = {'1', '0', 'a'+2}; struct Ournode *q = &p; printf("%c, %c", *((char*)q+1), *((char*)q+2)); return 0; }The output of this program is:
Which one of the following is the time complexity of the most time-efficient implementation of enqueue and dequeue, respectively, for this data structure?

I. Register-to-register arithmetic operations only
II. Fixed-length instruction format
III. Hardwired control unit
Which of the characteristics above are used in the design of a RISC processor?
The set of all recursively enumerable languages is
Which one of the following statements is FALSE?
(P) The processor pushes the process status of \(L\) onto the control stack.
(Q) The processor finishes the execution of the current instruction.
(R) The processor executes the interrupt service routine.
(S) The processor pops the process status of \(L\) from the control stack.
(T) The processor loads the new PC value based on the interrupt.
Which one of the following is the correct order in which the events above occur?
Which one of the following is the correct expression for the page fault rate experienced by the process?
Which one of the following is true about \(R\)?
Book (isbn, bname), Stock (isbn, copies)
| Query 1: | SELECT B.isbn, S.copies FROM Book B INNER JOIN Stock S ON B.isbn = S.isbn; |
|---|---|
| Query 2: | SELECT B.isbn, S.copies FROM Book B LEFT OUTER JOIN Stock S ON B.isbn = S.isbn; |
| Query 3: | SELECT B.isbn, S.copies FROM Book B RIGHT OUTER JOIN Stock S ON B.isbn = S.isbn; |
| Query 4: | SELECT B.isbn, S.copies FROM Book B FULL OUTER JOIN Stock S ON B.isbn = S.isbn; |
Match the following:
| Field | Length in bits |
|---|---|
| P. UDP Header’s Port Number | I. 48 |
| Q. Ethernet MAC Address | II. 8 |
| R. IPv6 Next Header | III. 32 |
| S. TCP Header’s Sequence Number | IV. 16 |
(i) The \(cwnd\) increases by 2 MSS on every successful acknowledgment.
(ii) The \(cwnd\) approximately doubles on every successful acknowledgment.
(iii) The \(cwnd\) increases by 1 MSS every round trip time.
(iv) The \(cwnd\) approximately doubles every round trip time.
Which one of the following is correct?
The chromatic number of the following graph is ____.


Consider a matrix multiplication chain \(F_1F_2F_3F_4F_5\), where matrices \(F_1, F_2, F_3, F_4\) and \(F_5\) are of dimensions \(2 \times 25, 25 \times 3, 3 \times 16, 16 \times 1\) and \(1 \times 1000\), respectively. In the parenthesization of \(F_1F_2F_3F_4F_5\) that minimizes the total number of scalar multiplications, the explicitly computed pairs is/are
unsigned long int fun(unsigned long int n) { unsigned long int i, j = 0, sum = 0; for (i = n; i > 1; i = i/2) j++; for ( ; j > 1; j = j/2) sum++; return(sum); }The value returned when we call fun with the input \(2^{40}\) is
\[ b_7 \, b_6 \, b_5 \, b_4 \, b_3 \, b_2 \, b_1 \, b_0 \]
where the position of the binary point is between \(b_3\) and \(b_2\). Assume \(b_7\) is the most significant bit. Some of the decimal numbers listed below cannot be represented exactly in the above representation:
\[ \begin{array}{llll} \text{(i)} & 31.500 & \text{(ii)} & 0.875 & \text{(iii)} & 12.100 & \text{(iv)} & 3.001 \end{array} \]
Which one of the following statements is true?
I. \(\{a^m b^n c^p d^q \mid m + p = n + q, \text{ where } m, n, p, q \ge 0\}\)
II. \(\{a^m b^n c^p d^q \mid m = n \text{ and } p = q, \text{ where } m, n, p, q \ge 0\}\)
III. \(\{a^m b^n c^p d^q \mid m = n = p \text{ and } p \neq q, \text{ where } m, n, p, q \ge 0\}\)
IV. \(\{a^m b^n c^p d^q \mid mn = p + q, \text{ where } m, n, p, q \ge 0\}\)
Which of the languages above are context-free?
(I) For an unrestricted grammar \(G\) and a string \(w\), whether \(w \in L(G)\)
(II) Given a Turing machine \(M\), whether \(L(M)\) is regular
(III) Given two grammars \(G_1\) and \(G_2\), whether \(L(G_1) = L(G_2)\)
(IV) Given an NFA \(N\), whether there is a deterministic PDA \(P\) such that \(N\) and \(P\) accept the same language.
Which one of the following statements is correct?
\[ \begin{aligned} T_1 &: a?(b|c)^*a \\ T_2 &: b?(a|c)^*b \\ T_3 &: c?(b|a)^*c \end{aligned} \]
Note that 'x?' means 0 or 1 occurrence of the symbol \(x\). Note also that the analyzer outputs the token that matches the longest possible prefix.
If the string \(bbaacabc\) is processed by the analyzer, which one of the following is the sequence of tokens it outputs?
Which one of the following is correct for the given parse tree?

Consider a state of the system with the Allocation matrix as shown below, and in which 3 instances of \(E\) and 3 instances of \(F\) are the only resources available.
| Allocation | E | F | G |
|---|---|---|---|
| \(P_0\) | 1 | 0 | 1 |
| \(P_1\) | 1 | 1 | 2 |
| \(P_2\) | 1 | 0 | 3 |
| \(P_3\) | 2 | 0 | 0 |
| Max | E | F | G |
|---|---|---|---|
| \(P_0\) | 4 | 3 | 1 |
| \(P_1\) | 2 | 1 | 4 |
| \(P_2\) | 1 | 3 | 3 |
| \(P_3\) | 5 | 4 | 1 |
From the perspective of deadlock avoidance, which one of the following is true?
| Producer: | Consumer: |
|---|---|
| do{ wait(P); wait(mutex); //Add item to buffer signal(mutex); signal(Q); }while(1); | do{ wait(R); wait(mutex); //Consume item from buffer signal(mutex); signal(S); }while(1); |
| \( H_D \) | \( M_D \) | \( L_D \) | |
|---|---|---|---|
| \( H_G \) | 0.40 | 0.48 | 0.12 |
| \( M_G \) | 0.10 | 0.65 | 0.25 |
| \( L_G \) | 0.01 | 0.50 | 0.49 |

| Item number | Weight (in Kgs) | Value (in Rupees) |
|---|---|---|
| 1 | 10 | 60 |
| 2 | 7 | 28 |
| 3 | 4 | 20 |
| 4 | 2 | 24 |
The number of clock cycles required for completion of execution of the sequence of instructions is ______.
The maximum value of N is ______.
\[ L^0 = \{\epsilon\} \]
\[ L^i = L^{i-1} \cdot L \text{ for all } i > 0 \]
The order of a language \( L \) is defined as the smallest \( k \) such that \( L^k = L^{k+1} \).
Consider the language \( L_1 \) (over alphabet 0) accepted by the following automaton.
The order of \( L_1 \) is ______.

[120, 72, 2] , [180, 134, 1] , [60, 20, 0] , [212, 86, 3] , [56, 116, 2] , [118, 16, 1]
Currently the head is positioned at sector number 100 of cylinder 80, and is moving towards higher cylinder numbers. The average power dissipation in moving the head over 100 cylinders is 20 milliwatts and for reversing the direction of the head movement once is 15 milliwatts. Power dissipation associated with rotational latency and switching of head between different platters is negligible.
The total power consumption in milliwatts to satisfy all of the above disk requests using the Shortest Seek Time First disk scheduling algorithm is ______.
The fragmentation offset value stored in the third fragment is ______.
Assume that the system has two nodes P and Q, located at a distance \( d \) meters from each other. P starts transmitting a packet at time \( t=0 \) after successfully completing its carrier-sense phase. Node Q has a packet to transmit at time \( t=0 \) and begins to carrier-sense the medium.
The maximum distance \( d \) (in meters, rounded to the closest integer) that allows Q to successfully avoid a collision between its proposed transmission and P’s ongoing transmission is ______.
Showing 5 of 65 questions