Computer Science & Information Technology (CS) 2021 [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.
Among the options below, an acceptable value for the total number of students in the class is:
Which one of the following is NOT a convex polygon?
(i) Everybody in the class is prepared for the exam.
(ii) Babu invited Danish to his home because he enjoys playing chess.
Which of the following is the CORRECT observation about the above two sentences?

Which one of the following options maintains a similar logical relation in the above sentence?
The discount on item Q, as a percentage of its marked price, is _____

The probability that at least two chocolates are identical is __________
Statement 1: All bacteria are microorganisms.
Statement 2: All pathogens are microorganisms.
Conclusion I: Some pathogens are bacteria.
Conclusion II: All pathogens are not bacteria.
Based on the above statements and conclusions, which one of the following options is logically CORRECT?
Which one of the following statements summarizes the passage?
Which of the following operations will necessarily require a full scan of foo for successful completion?
The number of edges in G is __________
The number of minimum-weight spanning trees of the graph is __________
- The fastest computer gets the toughest job and the slowest computer gets the easiest job.
- Every computer gets at least one job.
The number of ways in which this can be done is __________
\[ \lim_{x \to 3} \frac{\sqrt{2x + 22} - 4}{x + 3} \]
The value of the above expression (rounded to 2 decimal places) is __________
push(54); push(52); pop(); push(55); push(62); s = pop();
Consider the following sequence of operations on an empty queue.
enqueue(21); enqueue(24); dequeue(); enqueue(28); enqueue(32); q = dequeue();
The value of s + q is __________
The size of the tag field is __________ bits.
The estimated number of tuples in the output of \(\sigma_{(A>10)\vee(B=18)}(r)\) is __________
\(S: 1\) \(E: 10000001\) \(F: 11110000000000000000000\)
Here \(S\), \(E\) and \(F\) denote the sign, exponent and fraction components of the floating point representation.
The decimal value corresponding to the above representation (rounded to 2 decimal places) is __________
Consider the following grammar (that admits a series of declarations, followed by expressions) and the associated syntax directed translation (SDT) actions, given as pseudo-code:
P → D* E*
D → int ID {record that ID.lexeme is of type int}
D → bool ID {record that ID.lexeme is of type bool}
E → E1 + E2 {check that E1.type = E2.type = int; set E.type := int}
E → !E1 {check that E1.type = bool; set E.type := bool}
E → ID {set E.type := int}
With respect to the above grammar, which one of the following choices is correct?
The following relation records the age of 500 employees of a company, where empNo (indicating the employee number) is the key:
empAge(empNo, age)
Consider the following relational algebra expression:
ΠempNo(empAge ⋈(age>age1) ρempNo1, age1(empAge))
What does the above expression generate?
Assuming the initial state of the counter given by PQR as 000, what are the next three states?
| Data bits | |||||||
|---|---|---|---|---|---|---|---|
| d8 | d7 | d6 | d5 | d4 | d3 | d2 | d1 |
| 1 | 1 | 0 | x | 0 | 1 | 0 | 1 |
| Check bits | |||
|---|---|---|---|
| c4 | c3 | c2 | c1 |
| y | 0 | 1 | 0 |
Which one of the following choices gives the correct values of x and y?
\[ T(n) = \begin{cases} T(n/2) + T(2n/5) + 7n & \text{if } n > 0 \\ 1 & \text{if } n = 0 \end{cases} \]
Which one of the following options is correct?
\( S_1 \): There exist random variables \( X \) and \( Y \) such that \( \left( \mathbb{E}\left[(X - \mathbb{E}[X])(Y - \mathbb{E}[Y])\right] \right)^2 > \text{Var}[X] \text{Var}[Y] \).
\( S_2 \): For all random variables \( X \) and \( Y \), \( \text{Cov}[X, Y] = \mathbb{E}\left[|X - \mathbb{E}[X]||Y - \mathbb{E}[Y]|\right] \).
Which one of the following choices is correct?
\[ \text{diam}(G) = \max_{u,v \in V} \{ \text{the length of shortest path between } u \text{ and } v \} \]
Let \( M \) be the adjacency matrix of \( G \).
Define graph \( G_2 \) on the same set of vertices with adjacency matrix \( N \), where
\[ N_{ij} = \begin{cases} 1 & \text{if } M_{ij} > 0 \text{ or } P_{ij} > 0, \text{ where } P = M^2 \\ 0 & \text{otherwise} \end{cases} \]
Which one of the following statements is true?
#include <stdio.h>
int main()
{
int i, j, count;
count = 0;
i = 0;
for (j = -3; j <= 3; j++)
{
if ((j >= 0) && (i++))
count = count + j;
}
count = count + i;
printf("%d", count);
return 0;
}
Which one of the following options is correct?
L = {w ∈ {0,1}* | w ends with the substring 011}
Which one of the following deterministic finite automata accepts L?
\( L_1 = \{ \langle M \rangle \mid M \text{ takes more than 2021 steps on all inputs} \} \)
\( L_2 = \{ \langle M \rangle \mid M \text{ takes more than 2021 steps on some input} \} \)
Which one of the following options is correct?
\( p[1] = 1, p[2] = 5, p[3] = 8, p[4] = 9, p[5] = 10, p[6] = 17, p[7] = 18 \)
Which of the following statements is/are correct about \( R_7 \)?
Let \( T \) be a DFS tree obtained by doing DFS in a connected undirected graph \( G \).
Which of the following options is/are correct?
\[ F = (X + Y + Z)(\overline{X} + Y)(\overline{Y} + Z) \]
Which of the following Boolean expressions is/are equivalent to \overline{F} (complement of F)?
Which of the following options is/are correct?
Consider that while the TCP connection was active, the server machine S crashed and rebooted. Assume that the client does not use the TCP keepalive timer.
Which of the following behaviors is/are possible?
A TCP segment of size 1400 bytes was transferred from P to Q through R, with IP identification value as 0x1234. Assume that the IP header size is 20 bytes. Further, the packet is allowed to be fragmented, i.e., Don't Fragment (DF) flag in the IP header is not set by P.
Which of the following statements is/are correct?
1. int counter = 0;
2. Semaphore S = init(5);
3. void parop(void)
4. {
5. wait(S);
6. wait(S);
7. counter++;
8. signal(S);
9. signal(S);
10. }
If five threads execute the function parop concurrently, which of the following program behavior(s) is/are possible?
1. There is a main hash table of size 4.
2. The 2 least significant bits of a key is used to index into the main hash table.
3. Initially, the main hash table entries are empty.
4. Thereafter, when more keys are hashed into it, to resolve collisions, the set of all keys corresponding to a main hash table entry is organized as a binary tree that grows on demand.
5. First, the 3rd least significant bit is used to divide the keys into left and right subtrees.
6. To resolve more collisions, each node of the binary tree is further sub-divided into left and right subtrees based on the 4th least significant bit.
7. A split is done only if it is needed, i.e., only when there is a collision.
Consider the following state of the hash table.
[Image of hash table with four buckets: 00 (empty), 01 (0 left, 1 right), 10 (0 left, 0 right), 11 (1 left, 1 right)]
Which of the following sequences of key insertions can cause the above state of the hash table (assume the keys are in decimal notation)?

int SimpleFunction(int Y[], int n, int x)
{
int total = Y[0], loopIndex;
for (loopIndex = 1; loopIndex total = x * total + Y[loopIndex];
return total;
}
Let Z be an array of 10 elements with Z[i]=1, for all i such that 0 ≤ i ≤ 9. The value returned by SimpleFunction(Z, 10, 2) is __________
• The time taken for processing the data frame by the receiver is negligible.
• The time taken for processing the acknowledgement frame by the sender is negligible.
• The sender has infinite number of frames available for transmission.
• The size of the data frame is 2,000 bits and the size of the acknowledgement frame is 10 bits.
• The link data rate in each direction is 1 Mbps (= 106 bits per second).
• One way propagation delay of the link is 100 milliseconds.
The minimum value of the sender’s window size in terms of the number of frames, (rounded to the nearest integer) needed to achieve a link utilization of 50% is __________
a = b + c;
e = a + 1;
d = b + c;
f = d + 1;
g = e + f;
In a compiler, this code segment is represented internally as a directed acyclic graph (DAG). The number of nodes in the DAG is __________
where p, q ∈ Q, a ∈ Σ ∪ {ε}, and X, Y ∈ Γ ∪ {ε}, represents
(q, Y) ∈ δ(p, a, X).
Consider the following pushdown automaton over the input alphabet Σ = {a, b} and stack alphabet Γ = {#, A}.
The number of strings of length 100 accepted by the above pushdown automaton is __________
\[ \begin{pmatrix} 0 & 1 & 1 & 1 \\ 1 & 0 & 1 & 1 \\ 1 & 1 & 0 & 1 \\ 1 & 1 & 1 & 0 \end{pmatrix} \]
The largest eigenvalue of the above matrix is __________
If the received signal is H, the probability that the transmitted signal was H (rounded to 2 decimal places) is ______
| Instruction | Semantics | Instruction Size (bytes) |
|---|---|---|
| MOV R1, (5000) | R1 ← MEMORY[5000] | 4 |
| MOV R2, (R3) | R2 ← MEMORY[R3] | 4 |
| ADD R2, R1 | R2 ← R1+R2 | 2 |
| MOV (R3), R2 | MEMORY[R3] ← R2 | 4 |
| INC R3 | R3 ← R3+1 | 2 |
| DEC R1 | R1 ← R1-1 | 2 |
| BNZ 1004 | Branch if not zero to the given absolute address | 2 |
| HALT | Stop | 1 |
After the execution of the program, the content of memory location 3010 is ______
\( f_1 = 10^n \) \( f_2 = n^{\log n} \) \( f_3 = n^{\sqrt{n}} \)
Which one of the following options arranges the functions in the increasing order of asymptotic growth rate?
\( S_1 \) : The sequence of procedure calls corresponds to a preorder traversal of the activation tree.
\( S_2 \) : The sequence of procedure returns corresponds to a postorder traversal of the activation tree.
Which one of the following options is correct?
\( S_1 \) : Every SLR(1) grammar is unambiguous but there are certain unambiguous grammars that are not SLR(1).
\( S_2 \) : For any context-free grammar, there is a parser that takes at most \( O(n^3) \) time to parse a string of length \( n \).
Which one of the following options is correct?
\( S_1 : \quad (\neg p \wedge (p \vee q)) \rightarrow q \)
\( S_2 : \quad q \rightarrow (\neg p \wedge (p \vee q)) \)
Which one of the following choices is correct?
\( S_1 : \) Destination MAC address of an ARP reply is a broadcast address.
\( S_2 : \) Destination MAC address of an ARP request is a broadcast address.
Which one of the following choices is correct?
\[ \begin{array}{|c|c|c|c|c|c|c|c|} \hline 23 & 32 & 45 & 69 & 72 & 73 & 89 & 97 \\ \hline \end{array} \]
Which algorithm out of the following options uses the least number of comparisons (among the array elements) to sort the above array in ascending order?

Showing 5 of 65 questions