Computer Science & Information Technology (CS) 2025 [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.
Select the most appropriate option to complete the above sentence.
Select the correct option to complete the analogy.
Note: The figures shown are representative.

“Even if I had known that you were in the hospital, I would not have gone there to see you”, Ramya told Josephine.

What is the area (in cm²) of the rectangle PLMN?
Note: The figure shown is representative.

Note: The figure shown is representative.

Which ONE of the following is the number of nodes in \( T \) that have exactly two children?
(i) Address Resolution Protocol (ARP) provides a mapping from an IP address to the corresponding hardware (link-layer) address.
(ii) A single TCP segment from a sender S to a receiver R cannot carry both data from S to R and acknowledgement for a segment from R to S.
Which ONE of the following is CORRECT?
| List I | List II |
|---|---|
| (i) Distance vector routing | (a) Bellman-Ford |
| (ii) Link state routing | (b) Dijkstra |
A machine receives an IPv4 datagram. The protocol field of the IPv4 header has the protocol number of a protocol X. Which ONE of the following is NOT a possible candidate for X?
What is the minimum number of element comparisons required to find an integer in the list that is NOT the largest in the list?
(I) Backpatching can be used to generate code for Boolean expression in one pass.
(II) Backpatching can be used to generate code for flow-of-control statements in one pass.
Which ONE of the following options is CORRECT?
Rule 1: \( R \to AB \;\{B.i = R.i - 1; A.i = B.i; R.i = A.i + 1;\} \)
Rule 2: \( P \to CD \;\{P.i = C.i + D.i; D.i = C.i + 2;\} \)
Rule 3: \( Q \to EF \;\{Q.i = E.i + F.i;\} \)
Which ONE is the CORRECT option among the following?
Which ONE of the following choices has the CORRECT total number of fragments transmitted and the size of the last fragment including IPv4 header?
Which ONE of the following languages is accepted by a deterministic pushdown automaton?
Which ONE among the following questions is decidable?
Which ONE of the following correctly gives the average turnaround time of the four processes in milliseconds?
Which of the following properties is/are certain to have been violated by the system?
Which of the following is/are part of an Instruction Set Architecture of a processor?
Consider the two lists List I and List II given below:
| List I | List II |
|---|---|
| (i) Context free languages | (a) Closed under union |
| (ii) Recursive languages | (b) Not closed under complementation |
| (iii) Regular languages | (c) Closed under intersection |
For matching of items in List I with those in List II, which of the following option(s) is/are CORRECT?
Consider the following logic circuit diagram.
Which is/are the CORRECT option(s) for the output function \( F \)?

The following two signed 2’s complement numbers (multiplicand M and multiplier Q) are being multiplied using Booth’s algorithm:
M: 1100 1101 1110 1101 and Q: 1010 0100 1010 1010
The total number of addition and subtraction operations to be performed is ______________. (Answer in integer)
The output of the given C code segment is ______________. (Answer in integer)
In a 4-bit ripple counter, if the period of the waveform at the last flip-flop is 64 microseconds, then the frequency of the ripple counter in kHz is ______________. (Answer in integer)
Suppose the values 10, −4, 15, 30, 20, 5, 60, 19 are inserted in that order into an initially empty binary search tree. Let \( T \) be the resulting binary search tree. The number of edges in the path from the node containing 19 to the root node of \( T \) is ______________. (Answer in integer)
Suppose we are transmitting frames between two nodes using Stop-and-Wait protocol. The frame size is 3000 bits. The transmission rate of the channel is 2000 bps (bits/second) and the propagation delay between the two nodes is 100 milliseconds. Assume that the processing times at the source and destination are negligible. Also, assume that the size of the acknowledgement packet is negligible. Which ONE of the following most accurately gives the channel utilization for the above scenario in percentage?
Let \( G \) be an edge-weighted undirected graph with positive edge weights. Suppose a positive constant \( \alpha \) is added to the weight of every edge.
Which ONE of the following statements is TRUE about the minimum spanning trees (MSTs) and shortest paths (SPs) in \( G \) before and after the edge weight update?
P: Unsorted doubly linked list with pointers to the head node and tail node of the list.
Q: Min-heap implemented using an array.
R: Binary Search Tree.
Which ONE of the following options gives the worst-case time complexities for meld operation on instances of size \( n \) of these data structures?
Which ONE of the following is the CORRECT option for the sizes of the main memory and the cache memory in this system (byte addressable), respectively?
\( S \rightarrow Aa \mid bAc \mid dc \mid bda \)
\( A \rightarrow d \)
Which ONE of the following statements is TRUE?
Which ONE of the following represents the best possible asymptotic bound for the worst-case number of comparisons by an algorithm that searches for an element in a bitonic array \( A \)?
\( \forall f, g \in \mathcal{F}, f \leqslant g \) if and only if \( \forall x \in \{1, ..., n\}, f(x) \le g(x) \), where \( 0 \le 1 \).
Which of the following statement(s) is/are TRUE?
| yz | yz | yz | yz | |
|---|---|---|---|---|
| wx | 1 | 0 | 0 | 1 |
| wx | 0 | 1 | 1 | 0 |
| wx | 0 | 1 | 1 | 0 |
| wx | 1 | 0 | 0 | 1 |

\(L = \begin{bmatrix} 1 & 0 & 0 \\ l_{21} & 1 & 0 \\ l_{31} & l_{32} & 1 \end{bmatrix}\) and \(U = \begin{bmatrix} u_{11} & u_{12} & u_{13} \\ 0 & u_{22} & u_{23} \\ 0 & 0 & u_{33} \end{bmatrix}\).
Which of the following statement(s) is/are TRUE?
We wish to augment the stack data structure with an \(O(1)\) time MIN operation that returns a pointer to the record with smallest key present in the stack
1) without deleting the corresponding record, and
2) without increasing the complexities of the standard stack operations.
Which one or more of the following approach(s) can achieve it?
\(R1(A, B, C, D, E): \{ D \rightarrow E, EA \rightarrow B, EB \rightarrow C \}\)
\(R2(A, B, C, D): \{ A \rightarrow D, A \rightarrow B, C \rightarrow A \}\)
Which of the following statement(s) is/are TRUE?
| initially | after | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| - | 1* | 2* | 3* | 4* | 5* | 4 | 1 | 6* | 4 | 5 | 1* | 3* | 2* |
| - | - | 1 | 1 | 1 | 1 | 1 | 1 | 1 | 6 | 6 | 6 | 6 | 2 |
| - | - | - | 2 | 2 | 4 | 4 | 4 | 4 | 4 | 4 | 4 | 1 | 1 |
| - | - | - | - | 3 | 3 | 5 | 5 | 5 | 5 | 5 | 5 | 5 | 3 |
The *-marked references cause page replacements.
Which one or more of the following could be the page replacement policy/policies in use?

P = {P1, P2, P3, P4} consists of all active processes in an operating system.
R = {R1, R2, R3, R4} consists of single instances of distinct types of resources in the system.
The resource allocation graph has the following assignment and claim edges:
Assignment edges: R1 → P1, R2 → P2, R3 → P3, R4 → P4 (the assignment edge R1 → P1 means resource R1 is assigned to process P1 , and so on for others)
Claim edges: P1 → R2, P2 → R3, P3 → R1, P2 → R4, P4 → R2 (the claim edge P1 → R2 means process P1 is waiting for resource R2 , and so on for others)
Which of the following statement(s) is/are CORRECT?
Three floating point numbers X, Y, and Z are stored in three registers RX, RY, and RZ, respectively in IEEE 754 single precision format as given below in hexadecimal:
RX = 0xC1100000, RY = 0x40C00000, and RZ = 0x41400000
Which of the following option(s) is/are CORRECT?
Which of the following Boolean algebraic equation(s) is/are CORRECT?
Consider two grammars G1 and G2 with the production rules given below:
G1: S → if E then S | if E then S else S | a
E → b
G2: S → if E then S | M
M → if E then M else S | c
E → b
where if, then, else, a, b, c are the terminals.
Which of the following option(s) is/are CORRECT?
Let Σ = {a, b, c}. For x ∈ Σ*, and α ∈ Σ, let #α(x) denote the number of occurrences of α in x.
Which one or more of the following option(s) define(s) regular language(s)?
Transaction T1
R1(X)
W1(Y)
R1(X)
W1(X)
COMMIT(T1)
Transaction T2
W2(X)
W2(Y)
COMMIT(T2)
Students (rollno: integer, name: string, age: integer, cgpa: real)
Courses (courseno: integer, cname: string, credits: integer)
Enrolled (rollno: integer, courseno: integer, grade: string)
Which of the following options is/are correct SQL query/queries to retrieve the names of the students enrolled in course number (i.e., courseno) 1470?
Then the average memory access time in this system in nanoseconds is ______. (rounded off to one decimal place)
A = (49, 77, 83, -), B = (7, 19, 33, 44), C = (20*, 22*, 25*, 26*)
The *-marked keys signify that these are data entries in a leaf.
Assume that a pointer between keys k1 and k2 points to a subtree containing keys in [k1, k2), and that when a leaf is created, the smallest key in it is copied up into its parent.
A record with key value 23 is inserted into the B+- tree.
The smallest key value in the parent of the leaf that contains 25* is ______. (Answer in integer)
The value of b is ______. (Answer in integer)
someAlgo(G)
1. Let v be any vertex in G. Run BFS on G starting at v. Let u be a vertex in G at maximum distance from v as given by the BFS.
2. Run BFS on G again with u as the starting vertex. Let z be the vertex at maximum distance from u as given by the BFS.
3. Output the distance between u and z in G.
The output of someAlgo(T) for the tree shown in the given figure is ______. (Answer in integer)

For example, \( prod(124) = (1 \times 2 \times 4) \bmod 7 = 1 \).
Define \( L = \{x \in \Sigma^* \mid prod(x) = 2\} \).
The number of states in a minimum state DFA for \( L \) is ________. (Answer in integer)
| Instruction type | Clock cycles required per instruction (CPI) | Number of instructions executed |
|---|---|---|
| Branch | 2 | \( 2.25 \times 10^8 \) |
| Load | 5 | \( 1.20 \times 10^8 \) |
| Store | 4 | \( 1.65 \times 10^8 \) |
| Arithmetic | 3 | \( 1.30 \times 10^8 \) |
#include <stdio.h> int main() { int a; int arr[5] = {30,50,10}; int *ptr; ptr = &arr[0] + 1; a = *ptr; (*ptr)++; ptr++; printf("%d", a + (*ptr) + arr[1]); return 0; }The output of the above program is ________. (Answer in integer)
#include <stdio.h> int g(int n) { return (n+10); } int f(int n) { return g(n*2); } int main() { int sum, n; sum=0; for (n=1; n<3; n++) sum += g(f(n)); printf("%d", sum); return 0; }The output of the given C program is ________. (Answer in integer)
The probability that the roots of the chosen polynomial are equal is ________. (rounded off to one decimal place)
The expected length of the subinterval that contains 0.4 is ________. (rounded off to two decimal places)
Showing 5 of 65 questions