Computer Science & Information Technology (CS) 2015 [Session 1]
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.
She enjoyed herself immensely at the party.
If two floors in a certain building are 9 feet apart, how many steps are there in a set of stairs that extends from the first floor to the second floor of the building?
Statements:
(I) Each step is 3/4 foot high.
(II) Each step is 1 foot wide.
The chain snatchers took to their heels when the police party arrived.
Statement:
There has been a significant drop in the water level in the lakes supplying water to the city.
Course of action:
(I) The water supply authority should impose a partial cut in supply to tackle the situation.
(II) The government should appeal to all the residents through mass media for minimal use of water.
(III) The government should ban the water supply in lower areas.

The probabilities that a student passes in Mathematics, Physics and Chemistry are m, p, and c respectively. Of these subjects, the student has 75% chance of passing in at least one, a 50% chance of passing in at least two and a 40% chance of passing in exactly two. Following relations are drawn in m, p, c:
(I) p + m + c = 27/20
(II) p + m + c = 13/20
(III) (p)*(m)*(c) = 1/10
(A) Only relation I is true.
(B) Only relation II is true.
(C) Relations II and III are true.
(D) Relations I and III are true.
| Q No. | Marks | Answered Correctly | Answered Wrongly | Not Attempted |
|---|---|---|---|---|
| 1 | 2 | 21 | 17 | 6 |
| 2 | 3 | 15 | 27 | 2 |
| 3 | 1 | 11 | 29 | 4 |
| 4 | 2 | 23 | 18 | 3 |
| 5 | 5 | 31 | 12 | 1 |
What is the average of the marks obtained by the class in the examination?
(A) 2.290 (B) 2.970 (C) 6.795 (D) 8.795

If \( g(x) = 1 - x \) and \( h(x) = \frac{x}{x-1} \), then \( \frac{g(h(x))}{h(g(x))} \) is:
(A) \( \frac{h(x)}{g(x)} \) (B) \( \frac{-1}{x} \) (C) \( \frac{g(x)}{h(x)} \) (D) \( \frac{x}{(1-x)^2} \)
\( \lim_{x\to\infty} x^{1/x} \) is
(A) \( \infty \) (B) 0 (C) 1 (D) Not defined
(P) Prim's algorithm for minimum spanning tree (i) Backtracking
(Q) Floyd-Warshall algorithm for all pairs shortest paths (ii) Greedy method
(R) Mergesort (iii) Dynamic programming
(S) Hamiltonian circuit (iv) Divide and conquer
(A) P-iii, Q-ii, R-iv, S-i
(B) P-i, Q-ii, R-iv, S-iii
(C) P-ii, Q-iii, R-iv, S-i
(D) P-ii, Q-i, R-iii, S-iv
(A) \( T(n) = 2 T(n/2) + cn \)
(B) \( T(n) = T(n-1) + T(1) + cn \)
(C) \( T(n) = 2T(n-1) + cn \)
(D) \( T(n) = T(n/2) + cn \)
(A) 63 and 6, respectively
(B) 64 and 5, respectively
(C) 32 and 6, respectively
(D) 31 and 5, respectively
(P) Condition coverage (i) Black-box testing
(Q) Equivalence class partitioning (ii) System testing
(R) Volume testing (iii) White-box testing
(S) Alpha testing (iv) Performance testing
(A) P-ii, Q-iii, R-i, S-iv
(B) P-iii, Q-iv, R-ii, S-i
(C) P-iii, Q-i, R-iv, S-ii
(D) P-iii, Q-i, R-ii, S-iv
I. 3, 5, 7, 8, 15, 19, 25
II. 5, 8, 9, 12, 10, 15, 25
III. 2, 7, 10, 8, 14, 16, 20
IV. 4, 6, 7, 9 18, 20, 25
(A) I and IV only
(B) II and III only
(C) II and IV only
(D) II only
(A) Viable prefixes appear only at the bottom of the stack and not inside
(B) Viable prefixes appear only at the top of the stack and not inside
(C) The stack contains only a set of viable prefixes
(D) The stack never contains viable prefixes
Which one of the following fields of an IP header is NOT modified by a typical IP router?
In one of the pairs of protocols given below, both the protocols can use multiple TCP connections between the same client and the server. Which one is that?
I. \(\overline{L_1}\) (complement of \(L_1\)) is recursive
II. \(\overline{L_2}\) (complement of \(L_2\)) is recursive
III. \(\overline{L_1}\) is context-free
IV. \(L_1 \cup L_2\) is recursively enumerable
P1() {
C = B - 1;
B = 2 * C;
}
P2() {
D = 2 * B;
B = D - 1;
}
The number of distinct values that B can possibly take after the execution is_______.
void f1(int a, int b) { int c; c=a; a=b; b=c; } void f2(int *a, int *b) { int c; c=*a; *a=*b; *b=c; } int main() { int a=4, b=5, c=6; f1(a,b); f2(&b,&c); printf("%d",c-a-b); }
What are the worst-case complexities of insertion and deletion of a key in a binary search tree?
Now consider that a value 35 is inserted into this heap. After insertion, the new heap is
while(first {
if (array[middle] first = middle + 1;
else if (array[middle] == search)
found = TRUE;
else last = middle - 1;
middle = (first + last)/2;
}
if (first > last) notPresent = TRUE;
The cyclomatic complexity of the program segment is ________.
| p | q | p $\neq$ q |
|---|---|---|
| 0 | 0 | 0 |
| 0 | 1 | 1 |
| 1 | 0 | 1 |
| 1 | 1 | 0 |





Consider a main memory with five page frames and the following sequence of page references: 3, 8, 2, 3, 9, 1, 6, 3, 8, 9, 3, 6, 2, 1, 3. Which one of the following is true with respect to page replacement policies First In First Out (FIFO) and Least Recently Used (LRU)?
| Roll No | Student_Name |
|---|---|
| 1 | Raj |
| 2 | Rohit |
| 3 | Raj |
| Roll No | Course | Marks |
|---|---|---|
| 1 | Math | 80 |
| 1 | English | 70 |
| 2 | Math | 75 |
| 3 | English | 80 |
| 2 | Physics | 65 |
| 3 | Math | 80 |
Consider the following SQL query.
SELECT S.Student_Name, sum(P.Marks)
FROM Student S, Performance P
WHERE S.Roll_No = P.Roll_No
GROUP BY S.Student_Name
The number of rows that will be returned by the SQL query is __________.
int main () {
unsigned int x[4][3] = {{1,2,3},{4,5,6},{7,8,9},{10,11,12}};
printf("%u, %u, %u", x+3, *(x+3), *(x+2)+3);
}


int fun1 (int n) {
int i, j, k, p, q=0;
for (i=1; i<n; ++i) {
p=0;
for (j=n; j>1; j=j/2)
++p;
for (k=1; k<p; k=k*2)
++q;
}
return q;
}
Which one of the following most closely approximates the return value of the function fun1?
Showing 5 of 65 questions