Computer Science & Information Technology (CS) 2009
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.
A CPU generally handles an interrupt by executing an interrupt service routine
The essential content(s) in each entry of a page table is/are
The language generated by the above grammar over the alphabet {a, b} is the set of
P. Always finds a negative weighted cycle, if one exists.
Q. Finds whether any negative weighted cycle is reachable from the source.
Match all items in Group 1 with correct options from those given in Group 2.
| Group 1 | Group 2 |
|---|---|
| P. Regular expression | 1. Syntax analysis |
| Q. Pushdown automata | 2. Code generation |
| R. Dataflow analysis | 3. Lexical analysis |
| S. Register allocation | 4. Code optimization |
#include <stdio.h> int fun(int n, int *f_p) { int t, f; if (n <= 1) { *f_p = 1; return 1; } t = fun(n-1, f_p); f = t + *f_p; *f_p = t; return f; } int main() { int x = 15; printf("%d\n", fun(5, &x)); return 0; }The value printed is :
I. Content coupling
II. Common coupling
III. Control coupling
IV. Stamp coupling
V. Data coupling
Coupling between modules can be ranked in the order of strongest (least desirable) to weakest (most desirable) as follows :
<table border=1> <tr> <td rowspan=2> ab </td> <td colspan=2> cd </td> </tr> <tr> <td> ef </td> <td rowspan=2> gh </td> </tr> <tr> <td colspan=2> ik </td> </tr> </table>The number of rows in each column and the number of columns in each row are :
If the probability that the face is even given that it is greater than 3 is 0.75, which one of the following options is closest to the probability that the face value exceeds 3 ?
| * | a | b | c | d |
|---|---|---|---|---|
| a | a | b | c | d |
| b | b | a | d | c |
| c | c | d | a | b |
| d | d | c | a | b |
“Gold and silver ornaments are precious”
The following notations are used :
G(x): x is a gold ornament
S(x): x is a silver ornament
P(x): x is precious
| P | Q | P □ Q |
|---|---|---|
| T | T | T |
| T | F | T |
| F | T | F |
| F | F | T |
I. ¬∀x(P(x))
II. ¬∃x(P(x))
III. ¬∃x(¬P(x))
IV. ∃x(¬P(x))
Which of the above are equivalent ?
| Present State A | Present State B | Input | Next State A | Next State B | Output |
|---|---|---|---|---|---|
| 0 | 0 | 0 | 0 | 0 | 1 |
| 0 | 1 | 0 | 1 | 0 | 0 |
| 1 | 0 | 0 | 0 | 1 | 0 |
| 1 | 1 | 0 | 1 | 0 | 0 |
| 0 | 0 | 1 | 0 | 1 | 0 |
| 0 | 1 | 1 | 0 | 0 | 1 |
| 1 | 0 | 1 | 0 | 0 | 1 |
| 1 | 1 | 1 | 0 | 0 | 0 |
| S1 | S2 | S3 | S4 | |
|---|---|---|---|---|
| I1 | 2 | 1 | 1 | 1 |
| I2 | 1 | 3 | 2 | 2 |
| I3 | 2 | 1 | 1 | 3 |
| I4 | 1 | 2 | 2 | 2 |
for (i = 1 to 2) {I1; I2; I3; I4;}
0, 255, 1, 4, 3, 8, 133, 159, 216, 129, 63, 8, 48, 32, 73, 92, 155.
Which one of the following memory block will NOT be in cache if LRU replacement policy is used ?
| Process P1: | Process P2: | Process P3: |
|---|---|---|
| t=0: requests 2 units of R2 t=1: requests 1 unit of R3 t=3: requests 2 units of R1 t=5: releases 1 unit of R2 and 1 unit of R1 t=7: releases 1 unit of R3 t=8: requests 2 units of R4 t=10: Finishes | t=0: requests 2 units of R3 t=2: requests 1 unit of R4 t=4: requests 1 unit of R1 t=6: releases 1 unit of R3 t=8: Finishes | t=0: requests 1 unit of R4 t=2: requests 2 units of R1 t=5: releases 2 units of R1 t=7: requests 1 unit of R2 t=8: requests 1 unit of R3 t=9: Finishes |
4, 34, 10, 7, 19, 73, 2, 15, 6, 20,
Assuming that the head is currently at cylinder 50, what is the time taken to satisfy all requests if it takes 1 ms to move from one cylinder to adjacent one and shortest seek time first policy is used ?
Now consider the following statements :
I. If a process makes a transition D, it would result in another process making transition A immediately.
II. A process P2 in blocked state can make transition E while another process P1 is in running state.
III. The OS uses preemptive scheduling.
IV. The OS uses non-preemptive scheduling.
Which of the above statements are TRUE ?

void enter_CS(X)
{
while (test-and-set(X));
}
void leave_CS(X)
{
X=0;
}
In the above solution, X is a memory location associated with the CS and is initialized to 0. Now consider the following statements :
I. The above solution to CS problem is deadlock-free.
II. The solution is starvation free.
III. The processes enter CS in FIFO order.
IV. More than one process can enter CS at the same time.
Which of the above statements are TRUE ?
A multilevel page table is preferred in comparison to a single level page table for translating virtual address to physical address because
\[ T(n) = \begin{cases} n & n \le 3 \\ T(\frac{n}{3}) + cn & \text{otherwise} \end{cases} \]
Which one of the following represents the time complexity of the algorithm ?
| (A) | (B) | (C) | (D) |
|---|---|---|---|
| 0 1 2 2 3 23 4 5 15 6 7 8 18 9 | 0 1 2 12 3 13 4 5 5 6 7 8 18 9 | 0 1 2 12 3 13 4 2 5 3 6 23 7 5 8 18 9 15 | 0 1 2 12, 2 3 13, 3, 23 4 5 5, 15 6 7 8 18 9 |
Which one of the following is NOT the sequence of edges added to the minimum spanning tree using Kruskal's algorithm ?

L1 = {ambmcnanbn | m, n ≥ 0}
L2 = {aibjck | i, j, k ≥ 0}
Then L is

I. There exist parsing algorithms for some programming languages whose complexities are less than O(n3).
II. A programming language which allows recursion can be implemented with static storage allocation.
III. No L-attributed definition can be evaluated in the framework of bottom-up parsing.
IV. Code improving transformations can be performed at both source language and intermediate code level.
T1 : R1[x] W1[x] W1[y]
T2 : R2[x] R2[y] W2[y]
S1 : R1[x] R2[x] R2[y] W1[x] W1[y] W2[y]
S2 : R1[x] R2[x] R2[y] W1[x] W2[y] W1[y]
S3 : R1[x] W1[x] R2[x] W1[y] R2[y] W2[y]
S4 : R2[x] R2[y] R1[x] W1[x] W1[y] W2[y]
Which of the above schedules are conflict-serializable ?
10, 3, 6, 8, 4, 2, 1
The maximum number of times leaf nodes would get split up as a result of these insertions is
I. πR−S(r) − πR−S(πR−S(r) × s − πR−S,S(r))
II. { t | t ∈ πR−S(r) ∧ ∀ u ∈ s (∃ v ∈ r (u = v[S] ∧ t = v[R−S])) }
III. { t | t ∈ πR−S(r) ∧ ∀ v ∈ r (∃ u ∈ s (u = v[S] ∧ t = v[R−S])) }
IV. Select R.a, R.b
from R, S
where R.c = S.c
Which of the above queries are equivalent ?
M = (M')d mod n
II. ed ≡ 1 mod n
III. ed ≡ 1 mod φ(n)
IV. M' = Me mod φ(n)
M = (M')d mod φ(n)
Which of the above equations correctly represent RSA cryptosystem ?
Which one of the choices given below is closest to the minimum permissible rate at which sequence numbers used for packets of a connection can increase ?
I. The context diagram should depict the system as a single bubble.
II. External entities should be identified clearly at all levels of DFDs.
III. Control information should not be represented in a DFD.
IV. A data store can be connected either to another data store or to an external entity.
I. The cyclomatic complexity of a module is equal to the maximum number of linearly independent circuits in the graph.
II. The cyclomatic complexity of a module is the number of decisions in the module plus one, where a decision is effectively any conditional statement in the module.
III. The cyclomatic complexity can also be used as a number of linearly independent paths that should be tested during path coverage testing.
The address ⟨400,16,29⟩ corresponds to sector number:
The address of 1039th sector is
We wish to find the length of the longest common sub-sequence (LCS) of X[m] and Y[n] as l(m, n), where an incomplete recursive definition for the function l(i, j) to compute the length of the LCS of X[m] and Y[n] is given below:
l(i, j) = 0, if either i = 0 or j = 0
= expr1, if i, j > 0 and X[i−1] = Y[j−1]
= expr2, if i, j > 0 and X[i−1] ≠ Y[j−1]
Which one of the following options is correct ?
Which one of the following statements would be TRUE regarding the dynamic programming solution for the recursive definition of l(i, j) ?
SELECT S.sname
FROM Suppliers S
WHERE S.sid NOT IN ( SELECT C.sid
FROM Catalog C
WHERE C.pid NOT IN ( SELECT P.pid
FROM Parts P
WHERE P.color <> 'blue'))
Assume that relations corresponding to the above schema are not empty. Which one of the following is the correct interpretation of the above query ?
Showing 5 of 60 questions