Computer Science & Information Technology (CS) 2022 [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.
[A] [D]
From the additional plates given in the options, which one of the combinations of additional plates would allow the player to construct a five-letter palindrome. The player should use all the five plates exactly once. The plates can be rotated in their plane.

Which one of the following is the CORRECT logical inference based on the information in the above passage?
Which one of the following is the correct logical inference based on the information provided in the above passage?
First ball is drawn. What is the probability of getting an orange ball in the next draw?
- The line joining P and R is parallel to the line joining Q and S.
- P is placed on the side opposite to the corner T.
- S and U cannot be placed on the same side.
What is the least number of additional straight ropes needed to create the desired plots? A single rope can pass through three poles that are aligned in a straight line.

Which one of the following regular expressions correctly represents the language of the finite automaton given below?

Which one of the following statements is TRUE?
In a relational data model, which one of the following statements is TRUE?
[Image: linked list a->b->c->d->e]
the reversed linked list should look like
[Image: linked list e->d->c->b->a]
Which one of the following statements is TRUE about the time complexity of algorithms that solve the above problem in O(1) space?

Suppose we are given n keys, m hash table slots, and two simple uniform hash functions h1 and h2. Further suppose our hashing scheme uses h1 for the odd keys and h2 for the even keys. What is the expected number of keys in a slot?
Which one of the following facilitates transfer of bulk data from hard disk to main memory with the highest throughput?
| T1 | T2 | T3 |
|---|---|---|
| while(true) { wait(S3); print("C"); signal(S2); } | while(true) { wait(S1); print("B"); signal(S3); } | while(true) { wait(S2); print("A"); signal(S1); } |
Statement 1: tr(AB) = tr(BA)
Statement 2: tr(CD) = tr(DC)
where tr() represents the trace of a matrix. Which one of the following holds?
#include<stdio.h> int main(int argc, char *argv[]) { int x = 1, z[2] = {10, 11}; int *p = NULL; p = &x; *p = 10; p = &z[1]; *(&z[0] + 1) += 3; printf("%d, %d, %d\n", x, z[0], z[1]); return 0; }
What is the number of subnets inside the enterprise network?

Which of the following statements is/are TRUE?
Let WB and WT be two set associative cache organizations that use LRU algorithm for cache block replacement. WB is a write back cache and WT is a write through cache. Which of the following statements is/are FALSE?
\( Employee(eId, Name) \), \( Brand(bId, bName) \), \( Own(eId, bId) \)
Which of the following relational algebra expressions return the set of \( eIds \) who own all the brands?
Which of the following statements is/are TRUE with respect to deadlocks?
\( S' \to S \)
\( S \to S + R \mid R \)
\( R \to R * P \mid P \)
\( P \to (S) \mid id \)
If \( I_0 \) is the set of two \( LR(0) \) items \( \{[S' \to S.], [S \to S. + R]\} \), then goto(closure\( (I_0) \), +) contains exactly __________ items.
\( AB \to C; \; BC \to D; \; C \to E; \)
The number of superkeys in the relation R is__________.
\[ \lim_{x \to 0^+} \frac{\sqrt{x}}{1 - e^{\sqrt{x}}} \]
\[ a_n = \begin{cases} n+1, & \text{}n\text{ is odd} \\ 1, & \text{otherwise} \end{cases} \]
Which one of the following statements is FALSE?
Consider a digital display system (DDS) shown in the figure that displays the contents of register X. A 16-bit code word is used to load a word in X, either from S or from R. S is a 1024-word memory segment and R is a 32-word register file. Based on the value of mode bit M, T selects an input word to load in X. P and Q interface with the corresponding bits in the code word to choose the addressed word. Which one of the following represents the functionality of P, Q, and T?

Consider four processes P, Q, R, and S scheduled on a CPU as per round robin algorithm with a time quantum of 4 units. The processes arrive in the order P, Q, R, S, all at time t = 0. There is exactly one context switch from S to Q, exactly one context switch from R to Q, and exactly two context switches from Q to R. There is no context switch from S to P. Switching to a ready process after the termination of another process is also considered a context switch. Which one of the following is NOT possible as CPU burst time (in time units) of these processes?
#include<stdio.h> int main(int argc, char *argv[]) { char a = 'P'; char b = 'x'; char c = (a & b) + '*'; char d = (a | b) - '-'; char e = (a ^ b) + '+'; printf("%c %c %c\n", c, d, e); return 0; }ASCII encoding for relevant characters is given below
| A | B | C | ... | Z |
|---|---|---|---|---|
| 65 | 66 | 67 | ... | 90 |
| a | b | c | ... | z |
|---|---|---|---|---|
| 97 | 98 | 99 | ... | 122 |
| * | + | - |
|---|---|---|
| 42 | 43 | 45 |
\[ \begin{align*} x_1 + x_2 - 2x_3 &= 4 \\ x_1 + 3x_2 - x_3 &= 7 \\ 2x_1 + x_2 - 5x_3 &= 7 \end{align*} \]
where \( L \) and \( U \) are denoted as
\[ L = \begin{pmatrix} L_{11} & 0 & 0 \\ L_{21} & L_{22} & 0 \\ L_{31} & L_{32} & L_{33} \end{pmatrix}, \quad U = \begin{pmatrix} U_{11} & U_{12} & U_{13} \\ 0 & U_{22} & U_{23} \\ 0 & 0 & U_{33} \end{pmatrix} \]
Which one of the following is the correct combination of values for \( L_{32} \), \( U_{33} \), and \( x_1 \)?
Which of the following is/are undecidable?
\[ \begin{align*} L_1 &= \{a^n w a^n \mid w \in \{a,b\}^*\} \\ L_2 &= \{wxw^R \mid w,x \in \{a,b\}^*, |w|,|x|>0\} \end{align*} \]
Note that \( w^R \) is the reversal of the string \( w \). Which of the following is/are TRUE?
\[ \begin{align*} L_1 &= \{w w \mid w \in \{a,b\}^*\} \\ L_2 &= \{a^n b^n c^m \mid m,n \ge 0\} \\ L_3 &= \{a^m b^n c^n \mid m,n \ge 0\} \end{align*} \]
Which of the following statements is/are FALSE?
Which of the following statements is/are TRUE?

\[ f(1) = 1; \\ f(2n) = 2f(n) - 1, \text{ for } n \ge 1; \\ f(2n+1) = 2f(n) + 1, \text{ for } n \ge 1. \] Then, which of the following statements is/are TRUE?
Consider routing table of an organization’s router shown below:
| Subnet Number | Subnet Mask | Next Hop |
|---|---|---|
| 12.20.164.0 | 255.255.252.0 | R1 |
| 12.20.170.0 | 255.255.254.0 | R2 |
| 12.20.168.0 | 255.255.254.0 | Interface 0 |
| 12.20.166.0 | 255.255.254.0 | Interface 1 |
| default | R3 |
Student(sNo, sName, dNo) Dept(dNo, dName)
Course(cNo, cName, dNo) Register(sNo, cNo)
| Student | ||
|---|---|---|
| sNo | sName | dNo |
| S01 | James | D01 |
| S02 | Rocky | D01 |
| S03 | Jackson | D02 |
| S04 | Jane | D01 |
| S05 | Milli | D02 |
| Dept | |
|---|---|
| dNo | dName |
| D01 | CSE |
| D02 | EEE |
| Course | ||
|---|---|---|
| cNo | cName | dNo |
| C11 | DS | D01 |
| C12 | OS | D01 |
| C21 | DE | D02 |
| C22 | PT | D02 |
| C23 | CV | D03 |
| Register | |
|---|---|
| sNo | cNo |
| S01 | C11 |
| S01 | C12 |
| S02 | C11 |
| S03 | C21 |
| S03 | C22 |
| S03 | C23 |
| S04 | C11 |
| S04 | C12 |
| S05 | C11 |
| S05 | C21 |
SQL Query:
SELECT * FROM Student AS S WHERE NOT EXISTS
(SELECT cNo FROM Course WHERE dNo = ”D01”
EXCEPT
SELECT cNo FROM Register WHERE sNo = S.sNo)
The number of rows returned by the above SQL query is __________.
[Diagram: P -- Q -- R]
The routers exchange distance vector routing information and have converged on the routing tables, after which the link Q–R fails. Assume that P and Q send out routing updates at random times, each at the same average rate. The probability of a routing loop formation (rounded off to one decimal place) between P and Q, leading to count-to-infinity problem, is __________.

\[ A[i][j] = \begin{cases} 1, & 1 \leq j \leq 5 \\ 0, & \text{otherwise} \end{cases} \]
Note: The adjacency matrix definition seems incomplete in the image. It shows A[i][j] = 1 for 1 ≤ j ≤ 5, which would mean all possible edges exist, but the typical representation includes a condition on i and j. The question likely intends a specific matrix. Due to the incomplete information, the exact number cannot be determined.
A[i][j] = 1 indicates a directed edge from node i to node j. A directed spanning tree of G, rooted at r ∈ V, is defined as a subgraph T of G such that the undirected version of T is a tree, and T contains a directed path from r to every other vertex in V. The number of such directed spanning trees rooted at vertex 5 is __________.
[Diagram: Initial State: Q1: Head -> 1 | 2 | 3 | 4, Q2: Head -> empty. Final State: Q1: Head -> empty, Q2: Head -> 4 | 3 | 2 | 1]

7, 2, 7, 3, 2, 5, 3, 4, 6, 7, 7, 1, 5, 6, 1
the page fault rate, defined as the ratio of number of page faults to the number of memory accesses (rounded off to one decimal place) is __________.
\(S \to S_1 \# T\) \(\{S_{val} = S_{1_{val}} * T_{val}\}\)
\(S \to T\) \(\{S_{val} = T_{val}\}\)
\(T \to T_1 \% R\) \(\{T_{val} = T_{1_{val}} \div R_{val}\}\)
\(T \to R\) \(\{T_{val} = R_{val}\}\)
\(R \to id\) \(\{R_{val} = id_{val}\}\)
Here # and % are operators and \(id\) is a token that represents an integer and \(id_{val}\) represents the corresponding integer value. The set of non-terminals is \(\{S, T, R, P\}\) and a subscripted non-terminal indicates an instance of the non-terminal.
Using this translation scheme, the computed value of \(S_{val}\) for root of the parse tree for the expression \(20\#10\%5\#8\%2\%2\) is ______________.
Showing 5 of 65 questions