Computer Science & Information Technology (CS) 2019 [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.
P says “Q committed the crime.”
Q says “S committed the crime.”
R says “I did not do it.”
S says “What Q said about me is false.”
Assume only one of the arrested four committed the crime and only one of the statements made above is true. Who committed the crime?

Which one of the following statements can be inferred from the given passage?
Request by X: Due to pollen allergy, I want to avoid a wing next to the garden.
Request by Y: I want to live as far from the washrooms as possible, since I am very sensitive to smell.
Request by Z: I believe in Vaastu and so want to stay in the South-west wing.
The shaded rooms are already occupied. WR is washroom.

The chip select logic for a certain DRAM chip in a memory system design is shown below. Assume that the memory system has 16 address lines denoted by A15 to A0. What is the range of addresses (in hexadecimal) of the memory system that can get enabled by the chip select (CS) signal?

Which one of the following kinds of derivation is used by LR parsers?
I. \(|A| = n2^{n-1}\)
II. \(|A| = \sum_{k=1}^{n} k \binom{n}{k}\)
Which of the above statements is/are TRUE?
Which one of the following is NOT a valid identity?
I. \( X \) is invertible.
II. Determinant of \( X \) is non-zero.
Which one of the following is TRUE?
\( R_1: \forall a, b \in G, \ a R_1 b \text{ if and only if } \exists g \in G \text{ such that } a = g^{-1}bg \)
\( R_2: \forall a, b \in G, \ a R_2 b \text{ if and only if } a = b^{-1} \)
Which of the above is/are equivalence relation/relations?
I. Strict two-phase locking protocol generates conflict serializable schedules that are also recoverable.
II. Timestamp-ordering concurrency control protocol with Thomas' Write Rule can generate view serializable schedules that are not conflict serializable.
Which of the above statements is/are TRUE?
Which one of the following statements is NOT correct about the B+ tree data structure used for creating an index of a relational database table?
Which of the following protocol pairs can be used to send and retrieve e-mails (in that order)?
#include <unistd.h> int main() { int i; for (i=0; i<10; i++) if (i%2 == 0) fork(); return 0; }
The total number of child processes created is __________.
#include <stdio.h> int jumble(int x, int y){ x = 2*x+y; return x; } int main(){ int x=2, y=5; y=jumble(y,x); x=jumble(y,x); printf("%d \n", x); return 0; }
The value printed by the program is __________.
\( S \to Aa \)
\( A \to BD \)
\( B \to b \mid \epsilon \)
\( D \to d \mid \epsilon \)
Let \( a, b, d \), and \( \$ \) be indexed as follows:
| a | b | d | $ |
|---|---|---|---|
| 3 | 2 | 1 | 0 |
Compute the FOLLOW set of the non-terminal B and write the index values for the symbols in the FOLLOW set in the descending order. (For example, if the FOLLOW set is {a, b, d, $}, then the answer should be 3210)
Answer: __________.
| P1 | P2 | P3 |
|---|---|---|
| D = D + 20 | D = D - 50 | D = D + 10 |
The processes are executed on a uniprocessor system running a time-shared operating system. If the minimum and maximum possible values of D after the three processes have completed execution are X and Y respectively, then the value of Y - X is __________.
#include <stdio.h> int main() { int arr[] = {1, 2, 3, 4, 5, 6, 7, 8, 9, 0, 1, 2, 5}, *ip = arr + 4; printf("%d\n", ip[1]); return 0; }
The number that will be displayed on execution of the program is __________.
Answer: ______
void convert(int n) {
if(n<0)
printf("%d", n);
else {
convert(n/2);
printf("%d", n%2);
}
}Which one of the following will happen when the function convert is called with any positive integer n as argument?
#include <stdio.h>
int r() {
static int num=7;
return num--;
}
int main() {
for (r();r();r())
printf("%d",r());
return 0;
}Which one of the following values will be displayed on execution of the programs?
Consider three machines M, N, and P with IP addresses 100.10.5.2, 100.10.5.5, and 100.10.5.6 respectively. The subnet mask is set to 255.255.255.252 for all the three machines. Which one of the following is true?
Suppose that in an IP-over-Ethernet network, a machine X wishes to find the MAC address of another machine Y in its subnet. Which one of the following techniques can be used for this?
For the following circuit with one AND gate and one XOR gate, the output function f can be expressed as:

Consider the two statements given below.
I. Both Y and Z are in BCNF
II. Decomposition of X into Y and Z is dependency preserving and lossless
Which of the above statements is/are correct?
Assume that in a certain computer, the virtual addresses are 64 bits long and the physical addresses are 48 bits long. The memory is word addressable. The page size is 8 kB and the word size is 4 bytes. The Translation Look-aside Buffer (TLB) in the address translation path has 128 valid entries. At most how many distinct virtual addresses can be translated without any TLB miss?
S1. Set of all recursively enumerable languages over the alphabet {0,1}
S2. Set of all syntactically valid C programs
S3. Set of all languages over the alphabet {0,1}
S4. Set of all non-regular languages over the alphabet {0,1}
Which of the above sets are uncountable?
∀x [ (∀z z|x ⇒ ((z=x) ∨ (z=1))) ⇒ ∃w (w > x) ∧ (∀z z|w ⇒ ((w=z) ∨ (z=1))) ]
Here 'a|b' denotes that 'a divides b', where a and b are integers. Consider the following sets:
S1. {1, 2, 3, ..., 100}
S2. Set of all positive integers
S3. Set of all integers
Which of the above sets satisfy φ?
| Production rule | Semantic action |
|---|---|
| D → T L | X1.type = X2.type |
| T → int | T.type = int |
| T → float | T.type = float |
| L → L1 , id | X3.type = X4.type addType(id.entry, X5.type) |
| L → id | addType(id.entry, X6.type) |
There are n unsorted arrays: A1, A2, ..., An. Assume that n is odd. Each of A1, A2, ..., An contains n distinct elements. There are no common elements between any two arrays. The worst-case time complexity of computing the median of the medians of A1, A2, ..., An is
I. G has a unique minimum spanning tree, if no two edges of G have the same weight.
II. G has a unique minimum spanning tree, if, for every cut of G, there is a unique minimum-weight edge crossing the cut.
Which of the above two statements is/are TRUE?
Consider the following snapshot of a system running n concurrent processes. Process i is holding Xi instances of a resource R, 1 ≤ i ≤ n. Assume that all instances of R are currently in use. Further, for all i, process i can place a request for at most Yi additional instances of R while holding the Xi instances it already has. Of the n processes, there are exactly two processes p and q such that Yp = Yq = 0. Which one of the following conditions guarantees that no other process apart from p and q can complete execution?
I. The smallest element in a max-heap is always at a leaf node
II. The second largest element in a max-heap is always a child of the root node
III. A max-heap can be constructed from a binary search tree in Θ(n) time
IV. A binary search tree can be constructed from a max-heap in Θ(n) time
Which of the above statements are TRUE?
| Process | P1 | P2 | P3 | P4 |
|---|---|---|---|---|
| Arrival time | 0 | 1 | 3 | 4 |
| CPU burst time | 3 | 1 | 3 | Z |
These processes are run on a single processor using preemptive Shortest Remaining Time First scheduling algorithm. If the average waiting time of the processes is 1 millisecond, then the value of Z is ______.
S' → S
S → (L) | id
L → L, S | S
Let I0 = CLOSURE ({[S' → •S]}). The number of items in the set GOTO(I0, ( ) is: ______.
\[ R = \begin{bmatrix} 1 & 2 & 4 & 8 \\ 1 & 3 & 9 & 27 \\ 1 & 4 & 16 & 64 \\ 1 & 5 & 25 & 125 \end{bmatrix} \]
The absolute value of the product of Eigen values of R is ______.
Let T be a full binary tree with 8 leaves. (A full binary tree has every level full.) Suppose two leaves a and b of T are chosen uniformly and independently at random. The expected value of the distance between a and b in T (i.e., the number of edges in the unique path between a and b) is (rounded off to 2 decimal places) ______.
| Student | |
|---|---|
| Roll no. | Student_name |
| 1 | Amit |
| 2 | Priya |
| 3 | Vinit |
| 4 | Rohan |
| 5 | Smita |
| Performance | ||
|---|---|---|
| Roll no. | Subject_code | Marks |
| 1 | A | 86 |
| 1 | B | 95 |
| 1 | C | 90 |
| 2 | A | 89 |
| 2 | C | 92 |
| 3 | C | 80 |
The primary key of the Student table is Roll no. For the Performance table, the columns Roll no. and Subject_code together form the primary key. Consider the SQL query given below:
SELECT S.Student_name, sum(P.Marks) FROM Student S, Performance P WHERE P.Marks > 84 GROUP BY S.Student_name;
The number of rows returned by the above SQL query is ______.
#include <stdio.h> int main(){ float sum = 0.0, j = 1.0, i = 2.0; while (i/j > 0.0625){ j = j + j; sum = sum + i/j; printf("%f\n", sum); } return 0; }
The number of times the variable sum will be printed, when the above program is executed, is ______.
#include <stdio.h> int main() { int a[] = {2, 4, 6, 8, 10}; int i, sum = 0, *b = a + 4; for (i = 0; i < 5; i++) sum = sum + (*b - i) - *(b - i); printf("%d\n", sum); return 0; }
The output of the above C program is ______.
| P | ||
|---|---|---|
| X | Y | Z |
| X1 | Y1 | Z1 |
| X1 | Y1 | Z2 |
| X2 | Y2 | Z2 |
| X2 | Y4 | Z4 |
| Q | ||
|---|---|---|
| X | Y | T |
| X2 | Y1 | 2 |
| X1 | Y2 | 5 |
| X1 | Y1 | 6 |
| X3 | Y3 | 1 |
| R | |
|---|---|
| Y | V |
| Y1 | V1 |
| Y3 | V2 |
| Y2 | V3 |
| Y2 | V2 |
How many tuples will be returned by the following relational algebra query?
\[ \prod_X (\sigma_{(P.Y=R.Y \wedge R.Y=V2)}(P \times R)) - \prod_X (\sigma_{(Q.Y=R.Y \wedge Q.T>2)}(Q \times R)) \]
Answer: ______.
Showing 5 of 65 questions