Computer Science & Information Technology (CS) 2010
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.
What is the possible number of reflexive relations on a set of 5 elements?
A main memory unit with a capacity of 4 megabytes is built using 1M × 1-bit DRAM chips. Each DRAM chip has 1K rows of cells with 1K cells in each row. The time taken for a single refresh operation is 100 nanoseconds. The time required to perform one refresh operation on all the cells in the memory unit is

Which data structure in a compiler is used for managing information about variables and their attributes?
Which languages necessarily need heap allocation in the runtime environment?
One of the header fields in an IP datagram is the Time-to-Live (TTL) field. Which of the following statements best explains the need for this field?
Which one of the following is not a client-server application?
Let L1 be a recursive language. Let L2 and L3 be languages that are recursively enumerable but not recursive. Which of the following statements is not necessarily true?
Passenger(pid, pname, age)
Reservation(pid, class, tid)
Table: Passenger
| pid | pname | Age |
|---|---|---|
| 0 | 'Sachin' | 65 |
| 1 | 'Rahul' | 66 |
| 2 | 'Sourav' | 67 |
| 3 | 'Anil' | 69 |
Table: Reservation
| pid | class | tid |
|---|---|---|
| 0 | 'AC' | 8200 |
| 1 | 'AC' | 8201 |
| 2 | 'SC' | 8201 |
| 3 | 'AC' | 8203 |
| 1 | 'SC' | 8204 |
| 3 | 'AC' | 8202 |
What pids are returned by the following SQL query for the above instance of the tables?
SELECT pid FROM Reservation WHERE class = 'AC' AND EXISTS (SELECT * FROM Passenger WHERE age > 65 AND Passenger.pid = Reservation.pid)
I. 2-phase locking
II. Time-stamp ordering
The cyclomatic complexity of each of the modules A and B shown below is 10. What is the cyclomatic complexity of the sequential integration shown on the right hand side?

What is the appropriate pairing of items in the two columns listing various activities encountered in a software life cycle?
| P. Requirements Capture | 1. Module Development and Integration |
|---|---|
| Q. Design | 2. Domain Analysis |
| R. Implementation | 3. Structural and Behavioral Modeling |
| S. Maintenance | 4. Performance Tuning |
| Method used by P1 | Method used by P2 |
|---|---|
| while (S1 == S2); Critical Section S1 = S2; | while (S1 != S2); Critical Section S2 = not(S1); |
Which one of the following statements describes the properties achieved?
A system uses FIFO policy for page replacement. It has 4 page frames with no pages loaded to begin with. The system first accesses 100 distinct pages in some order and then accesses the same 100 pages but now in the reverse order. How many page faults will occur?
I. Shortest remaining time first scheduling may cause starvation
II. Preemptive scheduling may cause starvation
III. Round robin is better than FCFS in terms of response time
I. 7, 6, 5, 4, 4, 3, 2, 1
II. 6, 6, 6, 6, 3, 3, 2, 2
III. 7, 6, 6, 4, 4, 3, 2, 2
IV. 8, 7, 7, 6, 4, 2, 1, 1
\[ A = \begin{bmatrix} 2 & 3 \\ x & y \end{bmatrix} \]
If the eigenvalues of A are 4 and 8, then
What is the boolean expression for the output f of the combinational logic circuit of NOR gates given below?

In the sequential circuit shown below, if the initial value of the output Q1Q0 is 00, what are the next four values of Q1Q0?

| Instruction | Meaning of instruction |
|---|---|
| I0: MUL R2, R0, R1 | R2 |
| I1: DIV R5, R3, R4 | R5 |
| I2: ADD R2, R5, R2 | R2 |
| I3: SUB R5, R2, R4 | R5 |
#include <stdio.h> int f(int *a, int n) { if (n <= 0) return 0; else if (*a % 2 == 0) return *a + f(a+1, n-1); else return *a - f(a+1, n-1); } int main() { int a[] = {12, 7, 13, 4, 11, 6}; printf("%d", f(a, 6)); return 0; }
typedef struct node {
int value;
struct node *next;
} Node;
Node *move_to_front(Node *head) {
Node *p, *q;
if ((head == NULL || (head->next == NULL)) return head;
q = NULL; p = head;
while (p->next != NULL) {
q = p;
p = p->next;
}
_______________________________
return head;
}
Choose the correct alternative to replace the blank line.
a = 1
b = 10
c = 20
d = a + b
e = c + d
f = c + e
b = c + e
e = b + f
d = 5 + e
return d + f
Assuming that all operations take their operands from registers, what is the minimum number of registers needed to execute this program without spilling?
| T1 | T2 | T3 |
|---|---|---|
| Read(X) | ||
| Read(Y) | ||
| Read(Y) | ||
| Write(Y) | ||
| Write(X) | ||
| Write(X) | ||
| Read(X) | ||
| Write(X) |
Which one of the schedules below is the correct serialization of the above?
\(B \to A\),
\(A \to C\)
The relation R contains 200 tuples and the relation S contains 100 tuples. What is the maximum number of tuples possible in the natural join \(R \bowtie S\)?
begin
if (a == b) {S1; exit;}
else if (c == d) {S2;}
else {S3; exit;}
S4;
end
The test cases T1, T2, T3 and T4 given below are expressed in terms of the properties satisfied by the values of variables a, b, c and d. The exact values are not given.
T1: a, b, c and d are all equal
T2: a, b, c and d are all distinct
T3: a == b and c != d
T4: a != b and c == d
Which of the test suites given below ensures coverage of statements S1, S2, S3 and S4?
| Process P0 | Process P1 | Process P2 |
|---|---|---|
| while (true) { wait (S0); print '0'; release (S1); release (S2); } | wait (S1); release (S0); | wait (S2); release (S0); |
How many times will process P0 print '0'?
if (i % 2 == 0) {
if (i if (i+2 }
else {
if (i if (i+2 }
In which one of the following situations is a deadlock possible?

When there is a miss in both L1 cache and L2 cache, first a block is transferred from main memory to L2 cache, and then a block is transferred from L2 cache to L1 cache. What is the total time taken for these transfers?

How many different insertion sequences of the key values using the same hash function and linear probing will result in the hash table shown above?

Suppose the weights of all unused links in the previous question are changed to 2 and the distance vector algorithm is used again until all routing tables stabilize. How many links will now remain unused?
His rather casual remarks on politics ________ his lack of seriousness about the subject.
Which of the following options is the closest in meaning to the word below: Circuitous
Choose the most appropriate word from the options given below to complete the following sentence: If we manage to ________ our natural resources, we would leave a better planet for our children.
25 persons are in a room. 15 of them play hockey, 17 of them play football and 10 of them play both hockey and football. Then the number of persons playing neither hockey nor football is:
The question below consists of a pair of related words followed by four pairs of words. Select the pair that best expresses the relation in the original pair. Unemployed : Worker
i. Hari's age + Gita's age > Irfan's age + Saira's age.
ii. The age difference between Gita and Saira is 1 year. However, Gita is not the oldest and Saira is not the youngest.
iii. There are no twins.
In what order were they born (oldest first)?
Which of the following statements best sums up the meaning of the above passage:
5 skilled workers can build a wall in 20 days; 8 semi-skilled workers can build a wall in 25 days; 10 unskilled workers can build a wall in 30 days. If a team has 2 skilled, 6 semi-skilled and 5 unskilled workers, how long will it take to build the wall?
Given digits 2, 2, 3, 3, 3, 4, 4, 4, 4 how many distinct 4 digit numbers greater than 3000 can be formed?
Showing 5 of 65 questions