Computer Science & Information Technology (CS) 2024 [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.
The median of the sample is
The number of coins of ₹1, ₹5, and ₹10 denominations that a person has are in the ratio 5:3:13. Of the total amount, the percentage of money in ₹5 coins is
Steve was advised to keep his head ____(i)____ before heading ____(ii)____ to bat; for, while he had a head ____(iii)____ batting, he could only do so with a cool head ____(iv)____ his shoulders.
Then, the ratio of the volume of the cylindrical tube to the volume of the cube is
The typical energy density (kcal/g) of these macronutrients is given in the table.
| Macronutrient | Energy density (kcal/g) |
|---|---|
| Carbohydrates | 4 |
| Proteins | 4 |
| Unsaturated fat | 9 |
| Saturated fat | 9 |
| Trans fat | 9 |
The total fat (all three types), in grams, this person consumes is

The least number of squares to be added in the figure to make AB a line of symmetry is

Which one of the following statements is FALSE?
(i) HTTP GET request for the index page
(ii) DNS request to resolve the web server’s name to its IP address
(iii) HTTP GET request for an image object
(iv) TCP SYN to open a connection to the web server
Which one of the following is the CORRECT chronological order (earliest in time to latest) of the packets leaving the computer ?
Given an integer array of size N, we want to check if the array is sorted (in either ascending or descending order). An algorithm solves this problem by making a single pass through the array and comparing each element of the array only with its adjacent elements. The worst-case time complexity of this algorithm is
#include <stdio.h> int main() { int a = 6; int b = 0; while(a < 10) { a = a / 12 + 1; a += b; } printf("%d", a); return 0; }Which one of the following statements is CORRECT?
#include <stdio.h>
void fX();
int main() {
fX();
return 0;
}
void fX() {
char a;
if ((a=getchar()) != '\n')
fX();
if (a != '\n')
putchar(a);
}
Assume that the input to the program from the command line is 1234 followed by a newline character. Which one of the following statements is CORRECT?
Let S be the specification: "Instructors teach courses. Students register for courses. Courses are allocated classrooms. Instructors guide students." Which one of the following ER diagrams CORRECTLY represents S?

In a B+ tree, the requirement of at least half-full (50%) node occupancy is relaxed for which one of the following cases?
Let L1, L2 be two regular languages and L3 a language which is not regular. Which of the following statements is/are always TRUE?
Which of the following statements about threads is/are TRUE?
Which of the following process state transitions is/are NOT possible?
Which of the following is/are Bottom-Up Parser(s)?
Consider the circuit shown below where the gates may have propagation delays. Assume that all signal transitions occur instantaneously and that wires have no delays. Which of the following statements about the circuit is/are CORRECT?

Consider a 5-stage pipelined processor with Instruction Fetch (IF), Instruction Decode (ID), Execute (EX), Memory Access (MEM), and Register Writeback (WB) stages. Which of the following statements about forwarding is/are CORRECT?
Which of the following fields is/are modified in the IP header of a packet going out of a network address translation (NAT) device from an internal network to an external network?
| Operator | Precedence | Associativity |
|---|---|---|
| + | Highest | Left |
| - | High | Right |
| * | Medium | Right |
| / | Low | Right |
The value of the expression \( 3 + 1 + 5 * 2 / 7 + 2 - 4 - 7 - 6 / 2 \) as per the above rules is __________
| R | |
|---|---|
| A | B |
| 10 | 20 |
| 20 | 30 |
| 30 | 40 |
| 30 | 50 |
| 50 | 95 |
| S | |
|---|---|
| A | C |
| 10 | 90 |
| 30 | 45 |
| 40 | 80 |
The total number of tuples obtained by evaluating the following expression
\[ \sigma_{B < C} (R \bowtie_{R.A = S.A} S) \]
is __________
Each of the links P—Q and Q—R has a bandwidth of \(10^6\) bits/sec, and negligible propagation latency. Router Q immediately transmits every packet it receives from P to R, with negligible processing and queueing delays. Router Q can simultaneously receive on link P—Q and transmit on link Q—R.
Assume P starts transmitting the chunks at time \(t = 0\). Which one of the following options gives the time (in seconds, rounded off to 3 decimal places) at which R receives all the chunks of the file?
| Production | Semantic Rule |
|---|---|
| \(S \to DHTU\) | \(\{ S.val = D.val + H.val + T.val + U.val; \}\) |
| \(D \to "M"D_1\) | \(\{ D.val = 5 + D_1.val; \}\) |
| \(D \to \epsilon\) | \(\{ D.val = -5; \}\) |
| \(H \to "L"H_1\) | \(\{ H.val = 5 * 10 + H_1.val; \}\) |
| \(H \to \epsilon\) | \(\{ H.val = -10; \}\) |
| \(T \to "C"T_1\) | \(\{ T.val = 5 * 100 + T_1.val; \}\) |
| \(T \to \epsilon\) | \(\{ T.val = -5; \}\) |
| \(U \to "K"\) | \(\{ U.val = 5; \}\) |
Given "MMLK" as the input, which one of the following options is the CORRECT value computed by the SDD (in the attribute \(S.val\))?
\[ \begin{aligned} S &\to daT \mid \underline{(1)} \\ T &\to aS \mid bT \mid \underline{(2)} \\ R &\to \underline{(3)} \mid \epsilon \end{aligned} \]
The set of terminals is \(\{a, b, c, d, f\}\). The FIRST and FOLLOW sets of the different non-terminals are as follows.
\[ \text{FIRST}(S) = \{c, d, f\}, \quad \text{FIRST}(T) = \{a, b, \epsilon\}, \quad \text{FIRST}(R) = \{c, \epsilon\} \]
\[ \text{FOLLOW}(S) = \text{FOLLOW}(T) = \{c, f, \$\}, \quad \text{FOLLOW}(R) = \{f\} \]
Which one of the following options CORRECTLY fills in the incomplete productions?
L1: t1 = -1
L2: t2 = 0
L3: t3 = 0
L4: t4 = 4 * t3
L5: t5 = 4 * t2
L6: t6 = t5 * M
L7: t7 = t4 + t6
L8: t8 = a[t7]
L9: if t8 L10: t1 = t8
L11: t3 = t3 + 1
L12: if t3 L13: t2 = t2 + 1
L14: if t2 L15: max = t1
Which one of the following options CORRECTLY specifies the number of basic blocks and the number of instructions in the largest basic block, respectively ?
T1: a = a + 1; b = b + 1;
T2: b = 2 * b; a = 2 * a;
Which one of the following options lists all the possible combinations of values of a and b after both T1 and T2 finish execution?
An array [82, 101, 90, 11, 111, 75, 33, 131, 44, 93] is heapified. Which one of the following options represents the first three elements in the heapified array?
\[ T(n) = \begin{cases} \sqrt{n} T(\sqrt{n}) + n & \text{for } n \geq 1, \\ 1 & \text{for } n = 1. \end{cases} \]
Which one of the following options is CORRECT?
\( S: r_1(z); w_1(z); r_2(x); r_3(y); w_3(y); r_2(y); w_2(x); w_2(y); \)
Which of the following transaction schedules is/are conflict equivalent to \( S \) ?
Which of the following statements is/are CORRECT?
int f(int x, int y) { for (int i=0; i
Which of the following statements is/are TRUE about the above function?
Which of the following statements is/are FALSE?

Consider two set-associative cache memory architectures: WBC, which uses the write back policy, and WTC, which uses the write through policy. Both of them use the LRU (Least Recently Used) block replacement policy. The cache memory is connected to the main memory. Which of the following statements is/are TRUE?
The number of cores that minimize the execution time of the program is ________
int x = 3;
while(x > 0) {
fork();
printf("hello");
wait(NULL);
x--;
}
The total number of times the printf statement is executed is ________
| Prefix | Next hop router | |
|---|---|---|
| 10.1.1.0/24 | R1 | |
| 10.1.1.128/25 | R2 | |
| 10.1.1.64/26 | R3 | |
| 10.1.1.192/26 | R4 |
This router forwards 20 packets each to 5 hosts. The IP addresses of the hosts are 10.1.1.16, 10.1.1.72, 10.1.1.132, 10.1.1.191, and 10.1.1.205. The number of packets forwarded via the next hop router R2 is ________
\( r = 0^* + 1^* \)
\( s = 01^* + 10^* \)
The total number of strings of length less than or equal to 5, which are neither in \( r \) nor in \( s \), is ________
Consider a memory management system that uses a page size of 2 KB. Assume that both the physical and virtual addresses start from 0. Assume that the pages 0, 1, 2, and 3 are stored in the page frames 1, 3, 2, and 0, respectively. The physical address (in decimal format) corresponding to the virtual address 2500 (in decimal format) is ________
A bag contains 10 red balls and 15 blue balls. Two balls are drawn randomly without replacement. Given that the first ball drawn is red, the probability (rounded off to 3 decimal places) that both balls drawn are red is ________
For an instance of inputs X1=1, X2=1, X3=0, and X4=0, the number of combinations of A, B, C that give the output Y=1 is ________

Consider sending an IP datagram of size 1420 bytes (including 20 bytes of IP header) from a sender to a receiver over a path of two links with a router between them. The first link (sender to router) has an MTU (Maximum Transmission Unit) size of 542 bytes, while the second link (router to receiver) has an MTU size of 360 bytes. The number of fragments that would be delivered at the receiver is ________
Showing 5 of 65 questions