Skip to content
Early access — you're among the first to try PYQLabs. Share feedback

GATE 2024 CSE & IT

247 questions across 4 sessions

Set 1

PYQ 1

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 fol...

Computer Organization·MSQ·medium·✓ keyed
PYQ 2

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?

Computer Networks·MSQ·easy·✓ keyed
PYQ 3

Consider a Boolean expression given by $F(X, Y, Z) = \Sigma(3,5,6,7)$. Which of the following statements is/are CORRECT?

Digital Logic·MSQ·easy·✓ keyed
PYQ 4

Let $A$ and $B$ be non-empty finite sets such that there exist one-to-one and onto functions (i) from $A$ to $B$ and (ii) from $A \times A$ to $A \cup B$. The number of possible va...

Discrete Mathematics·NAT·medium
PYQ 5

The number of spanning trees in a complete graph of 4 vertices labelled A, B, C, and D is __________

Discrete Mathematics·NAT·easy
PYQ 6

Consider the following two relations, R(A, B) and S(A, C) : 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 follow...

Database Management System·NAT·easy
PYQ 7

Consider a network path P—Q—R between nodes P and R via router Q. Node P sends a file of size $10^6$ bytes to R via this path by splitting the file into chunks of $10^3$ bytes each...

Computer Networks·MCQ·medium·✓ keyed
PYQ 8

Consider the following syntax-directed definition (SDD). S → DHTU { S.val = D.val + H.val + T.val + U.val; } D → “M” D 1 { D.val = 5 + D 1 .val; } D → ε { D.val = –5; } H → “L” H 1...

Compiler Design·MCQ·medium·✓ keyed
PYQ 9

Consider the following pseudo-code. 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...

Compiler Design·MCQ·medium·✓ keyed
PYQ 10

Consider the following two threads T1 and T2 that update two shared variables a and b. Assume that initially $a = 1$ and $b = 1$. Though context switching between threads can happe...

Operating Systems·MCQ·medium·✓ keyed
PYQ 11

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?

Data Structures·MCQ·medium·✓ keyed
PYQ 12

Consider the following C function definition. int f(int x, int y) { for (int i=0; i<y; i++) { x=x+x+y; } return x; } Which of the following statements is/are TRUE about the above f...

Programming Languages·MSQ·medium·✓ keyed
PYQ 13

Consider a binary min-heap containing 105 distinct elements. Let k be the index (in the underlying array) of the maximum element stored in the heap. The number of possible values o...

Data Structures·MCQ·medium·✓ keyed
PYQ 14

The symbol &rarr; indicates functional dependency in the context of a relational database. Which of the following options is/are TRUE?

Database Management System·MSQ·easy·✓ keyed
PYQ 15

Let G be a directed graph and T a depth first search (DFS) spanning tree in G that is rooted at a vertex v. Suppose T is also a breadth first search (BFS) tree in G, rooted at v. W...

Data Structures·MCQ·medium·✓ keyed
PYQ 16

Consider the following read-write schedule $S$ over three transactions $T_{1}$, $T_{2}$, and $T_{3}$, where the subscripts in the schedule indicate transaction IDs: $S: r_{1}(z); w...

Database Management System·MSQ·easy·✓ keyed
PYQ 17

Let A be any n x m matrix, where m > n . Which of the following statements is/are TRUE about the system of linear equations Ax = 0 ?

Discrete Mathematics·MSQ·medium·✓ keyed
PYQ 18

The chromatic number of a graph is the minimum number of colours used in a proper colouring of the graph. Let $G$ be any graph with $n$ vertices and chromatic number $k$. Which of...

Discrete Mathematics·MSQ·medium·✓ keyed
PYQ 19

Consider the operators $\diamond$ and $\square$ defined by $a \diamond b=a+2 b, a \square b=a b$, for positive integers. Which of the following statements is/are TRUE?

Discrete Mathematics·MSQ·easy·✓ keyed
PYQ 20

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 Rec...

Computer Organization·MSQ·medium·✓ keyed
PYQ 21

Consider a 512 GB hard disk with 32 storage surfaces. There are 4096 sectors per track and each sector holds 1024 bytes of data. The number of cylinders in the hard disk is ______

Computer Organization·NAT·easy
PYQ 22

The baseline execution time of a program on a 2 GHz single core machine is 100 nanoseconds ( ns ). The code corresponding to 90% of the execution time can be fully parallelized. Th...

Computer Organization·NAT·medium
PYQ 23

A given program has 25% load/store instructions. Suppose the ideal CPI (cycles per instruction) without any memory stalls is 2. The program exhibits 2% miss rate on instruction cac...

Computer Organization·NAT·medium
PYQ 24

Consider the following code snippet using the fork() and wait() system calls. Assume that the code compiles and runs correctly, and that the system calls run successfully without a...

Operating Systems·NAT·medium
PYQ 25

Consider the entries shown below in the forwarding table of an IP router. Each entry consists of an IP prefix and the corresponding next hop router for packets whose destination IP...

Computer Networks·NAT·medium
PYQ 26

The number of edges present in the forest generated by the DFS traversal of an undirected graph G with 100 vertices is 40. The number of connected components in G is ________

Discrete Mathematics·NAT·easy
PYQ 27

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...

Operating Systems·NAT·easy
PYQ 28

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 p...

Discrete Mathematics·NAT·easy
PYQ 29

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...

Computer Networks·NAT·medium
PYQ 30

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 thro...

Algorithms·MCQ·easy·✓ keyed
PYQ 31

Consider the following recurrence relation: $$T(n) = \begin{cases} \sqrt{n} T(\sqrt{n}) + n & \text{for } n \ge 1, \\ 1 & \text{for } n = 1. \end{cases}$$ Which one of the followin...

Algorithms·MCQ·medium·✓ keyed
PYQ 32

TCP client P successfully establishes a connection to TCP server Q. Let $N_P$ denote the sequence number in the SYN sent from P to Q. Let $N_Q$ denote the acknowledgement number in...

Computer Networks·MSQ·easy·✓ keyed
PYQ 33

Consider the following grammar $G$, with $S$ as the start symbol. The grammar $G$ has three incomplete productions denoted by (1), (2), and (3). $$S \rightarrow d a T \mid \underli...

Compiler Design·MCQ·medium·✓ keyed
PYQ 34

Let A and B be two events in a probability space with $P(A) = 0.3$, $P(B) = 0.5$, and $P(A \cap B) = 0.1$. Which of the following statements is/are TRUE?

Discrete Mathematics·MSQ·easy·✓ keyed
PYQ 35

Let G = (V, Σ, S, P) be a context-free grammar in Chomsky Normal Form with Σ = { a, b, c } and V containing 10 variable symbols including the start symbol S . The string w = a 30 b...

Theory of Computation·NAT·easy
PYQ 36

Let $L_1, L_2$ be two regular languages and $L_3$ a language which is not regular. Which of the following statements is/are always TRUE?

Theory of Computation·MSQ·easy·✓ keyed
PYQ 37

Consider the following two regular expressions over the alphabet {0,1} : $$r = 0^* + 1^*$$ $$s = 01^* + 10^*$$ The total number of strings of length less than or equal to 5, which...

Theory of Computation·NAT·medium
PYQ 38

Which of the following is/are Bottom-Up Parser(s)?

Compiler Design·MSQ·easy·✓ keyed
PYQ 39

Which of the following process state transitions is/are NOT possible?

Operating Systems·MSQ·easy·✓ keyed
PYQ 40

Which of the following statements about threads is/are TRUE?

Operating Systems·MSQ·easy·✓ keyed
PYQ 41

Which of the following statements about a relation $R$ in first normal form (1NF) is/are TRUE?

Database Management System·MSQ·easy·✓ keyed
PYQ 42

In a B+ tree, the requirement of at least half-full (50%) node occupancy is relaxed for which one of the following cases?

Database Management System·MCQ·easy·✓ keyed
PYQ 43

Consider the following C program: #include <stdio.h> void fX(); int main() { fX(); return 0;} void fX() { char a; if ((a = getchar()) != '\n') fX(); if (a != '\n') putchar(a);} Ass...

Programming Languages·MCQ·easy·✓ keyed
PYQ 44

Consider the following C program: #include &ltstdio.h> int main() { int a = 6; int b = 0; while(a Which one of the following statements is CORRECT?

Programming Languages·MCQ·easy·✓ keyed
PYQ 45

A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP connection to fetch the entire webpage from the server. The webpage consists of a top-lev...

Computer Networks·MCQ·easy·✓ keyed
PYQ 46

Which one of the following statements is FALSE?

Computer Organization·MCQ·easy·✓ keyed
PYQ 47

Consider a permutation sampled uniformly at random from the set of all permutations of {1, 2, 3, ..., n } for some n ≥ 4. Let X be the event that 1 occurs before 2 in the permutati...

Discrete Mathematics·MCQ·medium·✓ keyed
PYQ 48

Consider a system that uses 5 bits for representing signed integers in 2’s complement format. In this system, two integers A and B are represented as A =01010 and B =11010. Which o...

Digital Logic·MCQ·easy·✓ keyed
PYQ 49

The product of all eigenvalues of the matrix $\begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}$ is

Discrete Mathematics·MCQ·✓ keyed
PYQ 50

Let $f : \mathbb{R} \rightarrow \mathbb{R}$ be a function such that $f(x) = \max \{x, x^3\}, x \in \mathbb{R}$, where $\mathbb{R}$ is the set of all real numbers. The set of all po...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 51

A rectangular paper sheet of dimensions 54 cm &times; 4 cm is taken. The two longer edges of the sheet are joined together to create a cylindrical tube. A cube whose surface area i...

General Aptitude·MCQ·medium·✓ keyed
PYQ 52

In the given text, the blanks are numbered (i)–(iv). Select the best match for all the blanks. Steve was advised to keep his head _____ (i) _____ before heading _____ (ii) _____ to...

General Aptitude·MCQ·medium·✓ keyed
PYQ 53

For positive non-zero real variables $p$ and $q$, if $\log \left(p^2 + q^2\right) = \log p + \log q + 2 \log 3$, then, the value of $\frac{p^4 + q^4}{p^2 q^2}$ is

General Aptitude·MCQ·easy·✓ keyed
PYQ 54

If two distinct non-zero real variables $x$ and $y$ are such that $(x + y)$ is proportional to $(x - y)$ then the value of $\frac{x}{y}$

General Aptitude·MCQ·easy·✓ keyed
PYQ 55

If ‘→’ denotes increasing order of intensity, then the meaning of the words [dry → arid → parched] is analogous to [diet → fast → ________ ]. Which one of the given options is appr...

General Aptitude·MCQ·easy·✓ keyed
PYQ 56

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

General Aptitude·MCQ·easy·✓ keyed
PYQ 57

Consider the following sample of numbers: 9, 18, 11, 14, 15, 17, 10, 69, 11, 13 The median of the sample is

General Aptitude·MCQ·easy·✓ keyed
PYQ 58

A rectangular paper of 20 cm &times; 8 cm is folded 3 times. Each fold is made along the line of symmetry, which is perpendicular to its long edge. The perimeter of the final folde...

General Aptitude·MCQ·easy·✓ keyed
PYQ 59

Consider the operator precedence and associativity rules for the integer arithmetic operators given in the table below. Operator Precedence Associativity + Highest Left − High Righ...

Data Structures·INTEGER

Set 2

PYQ 1

If ‘→’ denotes increasing order of intensity, then the meaning of the words [walk → jog → sprint] is analogous to [bothered → _______ → daunted]. Which one of the given options is...

General Aptitude·MCQ·easy·✓ keyed
PYQ 2

Two wizards try to create a spell using all the four elements, water, air, fire, and earth . For this, they decide to mix all these elements in all possible orders. They also decid...

General Aptitude·MCQ·easy·✓ keyed
PYQ 3

Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU) in a system with paging-based memory management?

Operating Systems·MSQ·medium·✓ keyed
PYQ 4

In an engineering college of 10,000 students, 1,500 like neither their core branches nor other branches. The number of students who like their core branches is 1/4 th of the number...

General Aptitude·MCQ·easy·✓ keyed
PYQ 5

For positive non-zero real variables $x$ and $y$, if $\ln \left( \frac{x + y}{2} \right) = \frac{1}{2} [ \ln (x) + \ln (y) ]$ then, the value of $\frac{x}{y} + \frac{y}{x}$ is

General Aptitude·MCQ·easy·✓ keyed
PYQ 6

In the sequence 6, 9, 14, $x$, 30, 41, a possible value of $x$ is

General Aptitude·MCQ·easy·✓ keyed
PYQ 7

Sequence the following sentences in a coherent passage. P: This fortuitous geological event generated a colossal amount of energy and heat that resulted in the rocks rising to an a...

General Aptitude·MCQ·easy·✓ keyed
PYQ 8

A person sold two different items at the same price. He made 10% profit in one item, and 10% loss in the other item. In selling these two items, the person made a total of

General Aptitude·MCQ·easy·✓ keyed
PYQ 9

A cube is to be cut into 8 pieces of equal size and shape. Here, each cut should be straight and it should not stop till it reaches the other end of the cube. The minimum number of...

General Aptitude·MCQ·✓ keyed
PYQ 10

Consider a process P running on a CPU. Which one or more of the following events will always trigger a context switch by the OS that results in process P moving to a non-running st...

Operating Systems·MSQ·medium·✓ keyed
PYQ 11

Consider a computer with a 4 MHz processor. Its DMA controller can transfer 8 bytes in 1 cycle from a device to main memory through cycle stealing at regular intervals. Which one o...

Computer Organization·MCQ·easy·✓ keyed
PYQ 12

Let p and q be the following propositions: p : Fail grade can be given. q : Student scores more than 50% marks. Consider the statement: “Fail grade cannot be given when student sco...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 13

Consider the following C program. Assume parameters to a function are evaluated from right to left. #include <studio.h> int g(int p) { printf("%d", p); return p; } int h(int q) { p...

Programming Languages·MCQ·easy·✓ keyed
PYQ 14

The format of a single-precision floating-point number as per the IEEE 754 standard is: Sign (1 bit) Exponent (8 bits) Mantissa (23 bits) Choose the largest floating-point number a...

Digital Logic·MCQ·medium·✓ keyed
PYQ 15

Which of the following fields of an IP header is/are always modified by any router before it forwards the IP packet?

Computer Networks·MSQ·easy·✓ keyed
PYQ 16

Let $f(x)$ be a continuous function from $\mathbb{R}$ to $\mathbb{R}$ such that $f(x) = 1 - f(2 - x)$ Which one of the following options is the CORRECT value of $\int_0^2 f(x) dx$?

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 17

Let $A$ be the adjacency matrix of a simple undirected graph $G$. Suppose $A$ is its own inverse. Which one of the following statements is always TRUE?

Discrete Mathematics·MCQ·medium·✓ keyed
PYQ 18

When six unbiased dice are rolled simultaneously, the probability of getting all distinct numbers (i.e., 1, 2, 3, 4, 5, and 6) is

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 19

Consider a single processor system with four processes A, B, C, and D, represented as given below, where for each process the first value is its arrival time, and the second value...

Operating Systems·MCQ·medium·✓ keyed
PYQ 20

Once the DBMS informs the user that a transaction has been successfully completed, its effect should persist even if the system crashes before all its changes are reflected on disk...

Database Management System·MCQ·easy·✓ keyed
PYQ 21

In the context of owner and weak entity sets in the ER (Entity-Relationship) data model, which one of the following statements is TRUE?

Database Management System·MCQ·easy·✓ keyed
PYQ 22

Consider the following two sets: Set X P. Lexical Analyzer Q. Syntax Analyzer R. Intermediate Code Generator S. Code Optimizer Set Y 1. Abstract Syntax Tree 2. Token 3. Parse Tree...

Compiler Design·MTF·easy·✓ keyed
PYQ 23

Node X has a TCP connection open to node Y. The packets from X to Y go through an intermediate IP router R. Ethernet switch S is the first switch on the network path between X and...

Computer Networks·MSQ·easy·✓ keyed
PYQ 24

Which of the following file organizations is/are I/O efficient for the scan operation in DBMS?

Database Management System·MCQM·✓ keyed
PYQ 25

Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?

Database Management System·MSQ·medium·✓ keyed
PYQ 26

Which of the following statements about IPv4 fragmentation is/are TRUE?

Computer Networks·MSQ·easy·✓ keyed
PYQ 27

Which of the following statements is/are FALSE?

Compiler Design·MSQ·medium·✓ keyed
PYQ 28

For a Boolean variable x, which of the following statements is/are FALSE?

Digital Logic·MSQ·easy·✓ keyed
PYQ 29

An instruction format has the following structure: Instruction Number: Opcode destination reg, source reg-1, source reg-2 Consider the following sequence of instructions to be exec...

Computer Organization·MCQ·easy·✓ keyed
PYQ 30

Consider the following C function definition. int fX(char *a) { char *b = a; while(*b) b++; return b - a; } Which of the following statements is/are TRUE?

Programming Languages·MSQ·easy·✓ keyed
PYQ 31

Let $P$ be the partial order defined on the set {1,2,3,4} as follows: $P = \{(x, x) \mid x \in \{1,2,3,4\}\} \cup \{(1,2), (3,2), (3,4)\}$ The number of total orders on {1,2,3,4} t...

Discrete Mathematics·NAT·medium
PYQ 32

What is the output of the following C program? #include <studio.h> int main() { double a[2]={20.0, 25.0}, *p, *q; p = a; q = p + 1; printf("%d,%d", (int)(q - p), (int)(*q - *p)); r...

Programming Languages·MCQ·easy·✓ keyed
PYQ 33

Which one of the following CIDR prefixes exactly represents the range of IP addresses 10.12.2.0 to 10.12.3.255?

Computer Networks·MCQ·easy·✓ keyed
PYQ 34

You are given a set $V$ of distinct integers. A binary search tree $T$ is created by inserting all elements of $V$ one by one, starting with an empty tree. The tree $T$ follows the...

Data Structures·MCQ·easy·✓ keyed
PYQ 35

Consider the following context-free grammar where the start symbol is S and the set of terminals is {a,b,c,d}. $ S \rightarrow AaAb \mid BbBa $ $ A \rightarrow cS \mid \epsilon $ $...

Compiler Design·MCQ·medium·✓ keyed
PYQ 36

Consider an array X that contains n positive integers. A subarray of X is defined to be a sequence of array locations with consecutive indices. The C code snippet given below has b...

Programming Languages·MCQ·medium·✓ keyed
PYQ 37

Consider the following expression: $x[i] = (p + r) * -s[i] + \frac{u}{w}$. The following sequence shows the list of triples representing the given expression, with entries missing...

Compiler Design·MCQ·medium·✓ keyed
PYQ 38

Let $ x $ and $ y $ be random variables, not necessarily independent, that take real values in the interval $[0,1]$. Let $ z = xy $ and let the mean values of $ x, y, z $ be $ \bar...

Discrete Mathematics·MCQ·easy·✓ keyed
PYQ 39

The relation schema, Person ($\underline{\text{pid}}$, $city$), describes the city of residence for every person uniquely identified by $pid$. The following relational algebra oper...

Database Management System·MCQ·medium·✓ keyed
PYQ 40

Consider a multi-threaded program with two threads T1 and T2. The threads share two semaphores: s1 (initialized to 1) and s2 (initialized to 0). The threads also share a global var...

Operating Systems·MSQ·medium·✓ keyed
PYQ 41

Let A be an n × n matrix over the set of all real numbers ℝ. Let B be a matrix obtained from A by swapping two rows. Which of the following statements is/are TRUE?

Discrete Mathematics·MSQ·easy·✓ keyed
PYQ 42

Which of the following is/are EQUAL to 224 in radix-5 (i.e., base-5) notation?

Digital Logic·MSQ·easy·✓ keyed
PYQ 43

Let Z n be the group of integers {0, 1, 2, ..., n − 1} with addition modulo n as the group operation. The number of elements in the group Z 2 × Z 3 × Z 4 that are their own inverse...

Discrete Mathematics·NAT·medium
PYQ 44

Consider a disk with the following specifications: rotation speed of 6000 RPM, average seek time of 5 milliseconds, 500 sectors/track, 512-byte sectors. A file has content stored i...

Operating Systems·NAT·medium
PYQ 45

Consider a TCP connection operating at a point of time with the congestion window of size 12 MSS (Maximum Segment Size), when a timeout occurs due to packet loss. Assuming that all...

Computer Networks·NAT·medium
PYQ 46

Consider an Ethernet segment with a transmission speed of $10^8$ bits/sec and a maximum segment length of 500 meters. If the speed of propagation of the signal in the medium is $2...

Computer Networks·NAT·easy
PYQ 47

A functional dependency $F: X \to Y$ is termed as a useful functional dependency if and only if it satisfies all the following three conditions: $X$ is not the empty set. $Y$ is no...

Database Management System·NAT·medium
PYQ 48

A processor with 16 general purpose registers uses a 32-bit instruction format. The instruction format consists of an opcode field, an addressing mode field, two register operand f...

Computer Organization·NAT·easy
PYQ 49

A non-pipelined instruction execution unit operating at 2 GHz takes an average of 6 cycles to execute an instruction of a program P. The unit is then redesigned to operate on a 5-s...

Computer Organization·NAT·medium
PYQ 50

A processor uses a 32-bit instruction format and supports byte-addressable memory access. The ISA of the processor has 150 distinct instructions. The instructions are equally divid...

Computer Organization·NAT·medium
PYQ 51

Consider a 32-bit system with 4 KB page size and page table entries of size 4 bytes each. Assume 1 KB = $2^{10}$ bytes. The OS uses a 2-level page table for memory management, with...

Operating Systems·NAT·hard
PYQ 52

Consider the following augmented grammar, which is to be parsed with a SLR parser. The set of terminals is $\{ a, b, c, d, \, \#, \, @ \}$ $S' \rightarrow S$ $S \rightarrow SS \;|\...

Compiler Design·NAT·medium
PYQ 53

Let $T(n)$ be the recurrence relation defined as follows: $T(0) = 1$ $T(1) = 2$, and $T(n) = 5T(n - 1) - 6T(n - 2)$ for $n \geq 2$ Which one of the following statements is TRUE?

Algorithms·MCQ·medium·✓ keyed
PYQ 54

Let $A$ be an array containing integer values. The distance of $A$ is defined as the minimum number of elements in $A$ that must be replaced with another integer so that the result...

Algorithms·NAT·medium
PYQ 55

Let $G$ be an undirected connected graph in which every edge has a positive integer weight. Suppose that every spanning tree in $G$ has even weight. Which of the following statemen...

Algorithms·MCQ·medium·✓ keyed
PYQ 56

Let L 1 be the language represented by the regular expression b * ab * (ab * ab * ) * and L 2 = { w ∈ (a + b) * | |w| ≤ 4 } , where |w| denotes the length of string w . The number...

Theory of Computation·NAT·medium
PYQ 57

Consider a context-free grammar $G$ with the following 3 rules. $S \rightarrow aS, \ S \rightarrow aSbS, S \rightarrow c$ Let $w \in L(G)$. Let $n_a(w)$, $n_b(w)$, $n_c(w)$ denote...

Theory of Computation·MSQ·medium·✓ keyed
PYQ 58

Let S1 and S2 be two stacks. S1 has capacity of 4 elements. S2 has capacity of 2 elements. S1 already has 4 elements: 100, 200, 300, and 400, whereas S2 is empty, as shown below. S...

Data Structures·MCQM·✓ keyed

Set 1

Q1

If '→' denotes increasing order of intensity, then the meaning of the words [dry → arid → parched] is analogous to [diet → fast → ______]. Which one of the given options is appropr...

General Aptitude·MCQ·medium·✓ keyed
Q2

If two distinct non-zero real variables x and y are such that (x + y) is proportional to (x - y) then the value of $\frac{x}{y}$

General Aptitude·MCQ·medium·✓ keyed
Q3

Consider the following sample of numbers: 9, 18, 11, 14, 15, 17, 10, 69, 11, 13 The median of the sample is

Logical Reasoning·MCQ·easy·✓ keyed
Q4

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

Math Reasoning·MCQ·medium·✓ keyed
Q5

For positive non-zero real variables p and q, if log (p² + q²) = log p + log q + 2 log 3, then, the value of $\frac{p^4+q^4}{p^2q^2}$ is

Mathematics·MCQ·medium·✓ keyed
Q6

In the given text, the blanks are numbered (i)-(iv). Select the best match for all the blanks. Steve was advised to keep his head _______ (i) _______ before heading _______ (ii) __...

English·MCQ·medium·✓ keyed
Q7

A rectangular paper sheet of dimensions 54 cm x 4 cm is taken. The two longer edges of the sheet are joined together to create a cylindrical tube. A cube whose surface area is equa...

Mathematics·MCQ·medium·✓ keyed
Q8

The pie chart presents the percentage contribution of different macronutrients to a typical 2,000 kcal diet of a person. Macronutrient energy contribution [Pie chart showing: Carbo...

General Aptitude·MCQ·medium·✓ keyed
Q9

A rectangular paper of 20 cm × 8 cm is folded 3 times. Each fold is made along the line of symmetry, which is perpendicular to its long edge. The perimeter of the final folded shee...

Logical Reasoning·MCQ·medium·✓ keyed
Q10

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

Logical Reasoning·MCQ·easy·✓ keyed
Q11

Let f: R → R be a function such that f(x) = max{x,x³}, x ∈ R, where R is the set of all real numbers. The set of all points where f(x) is NOT differentiable is

Computer Science·MCQ·medium·✓ keyed
Q12

The product of all eigenvalues of the matrix $\begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \\ 7 & 8 & 9 \end{bmatrix}$ is

Computer Science·MCQ·medium·✓ keyed
Q13

Consider a system that uses 5 bits for representing signed integers in 2's complement format. In this system, two integers A and B are represented as A=01010 and B=11010. Which one...

Computer Science·MCQ·medium·✓ keyed
Q14

Consider a permutation sampled uniformly at random from the set of all permutations of {1, 2, 3, ..., n} for some n ≥ 4. Let X be the event that 1 occurs before 2 in the permutatio...

Computer Science·MCQ·medium·✓ keyed
Q15

Which one of the following statements is FALSE?

Computer Science·MCQ·medium·✓ keyed
Q16

A user starts browsing a webpage hosted at a remote server. The browser opens a single TCP connection to fetch the entire webpage from the server. The webpage consists of a top-lev...

Computer Science·MCQ·medium·✓ keyed
Q17

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 throug...

Computer Science·MCQ·easy·✓ keyed
Q18

Consider the following C program: #include 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 sta...

Computer Science·MCQ·medium·✓ keyed
Q19

Consider the following C program: #include void fX(); int main() { fX(); return 0;} void fX() { char a; if((a=getchar()) != '\n') fX(); if (a != '\n') putchar (a); } Assume that th...

Computer Science·MCQ·medium·✓ keyed
Q20

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...

Computer Science·DIAGRAM·medium·✓ keyed
Q21

In a B+ tree, the requirement of at least half-full (50%) node occupancy is relaxed for which one of the following cases?

Computer Science·MCQ·medium·✓ keyed
Q22

Which of the following statements about a relation R in first normal form (1NF) is/are TRUE ?

Computer Science·MCQ·medium·✓ keyed
Q23

Let $L_1, L_2$ be two regular languages and $L_3$ a language which is not regular. Which of the following statements is/are always TRUE?

Computer Science·MCQ·medium·✓ keyed
Q24

Which of the following statements about threads is/are TRUE?

Computer Science·MCQ·medium·✓ keyed
Q25

Which of the following process state transitions is/are NOT possible?

Computer Science·MCQ·medium·✓ keyed
Q26

Which of the following is/are Bottom-Up Parser(s)?

Computer Science·MCQ·medium·✓ keyed
Q27

Let A and B be two events in a probability space with P(A) = 0.3, P(B) = 0.5, and P(A ∩ B) = 0.1. Which of the following statements is/are TRUE?

Computer Science·MCQ·medium·✓ keyed
Q28

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 f...

Computer Science·MCQ·medium·✓ keyed
Q29

TCP client P successfully establishes a connection to TCP server Q. Let Np denote the sequence number in the SYN sent from P to Q. Let NQ denote the acknowledgement number in the S...

Computer Science·MCQ·medium·✓ keyed
Q30

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 fol...

Computer Science·MCQ·medium·✓ keyed
Q31

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?

Computer Science·MCQ·medium·✓ keyed
Q32

Let A and B be non-empty finite sets such that there exist one-to-one and onto functions (i) from A to B and (ii) from A × A to A U B. The number of possible values of |A| is _____...

Computer Science·NAT·hard·✓ keyed
Q33

Consider the operator precedence and associativity rules for the integer arithmetic operators given in the table below. Operator | Precedence | Associativity ---|---|--- + | Highes...

Computer Science·NAT·medium·✓ keyed
Q34

The number of spanning trees in a complete graph of 4 vertices labelled A, B, C, and D is _________

Computer Science·NAT·medium·✓ keyed
Q35

Consider the following two relations, R(A,B) and S(A,C): The total number of tuples obtained by evaluating the following expression $\sigma_{B<C}(R \bowtie_{R.A=S.A} S)$ is _______...

Computer Science·NAT·medium·✓ keyed
Q36

Consider a network path P—Q—R between nodes P and R via router Q. Node P sends a file of size 10^6 bytes to R via this path by splitting the file into chunks of 10^3 bytes each. No...

Computer Science·MCQ·medium·✓ keyed
Q37

Consider the following syntax-directed definition (SDD). S → DHTU { S.val = D.val + H.val + T.val + U.val; } D → "M"D₁ { D.val = 5 + D₁.val; } D → ε { D.val = -5; } H → "L"H₁ { H.v...

Computer Science·MCQ·medium·✓ keyed
Q38

Consider the following grammar G, with S as the start symbol. The grammar G has three incomplete productions denoted by (1), (2), and (3). S → daT | ____ (1) T → aS | bT | ____ (2)...

Computer Science·MCQ·medium·✓ keyed
Q39

Consider the following pseudo-code. 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 <= max goto L11 L10:...

Computer Science·MCQ·medium·✓ keyed
Q40

Consider the following two threads T1 and T2 that update two shared variables a and b. Assume that initially a = b = 1. Though context switching between threads can happen at any t...

Computer Science·MCQ·hard·✓ keyed
Q41

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?

Computer Science·MCQ·medium·✓ keyed
Q42

Consider the following recurrence relation: $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...

Computer Science·MCQ·medium·✓ keyed
Q43

Consider a binary min-heap containing 105 distinct elements. Let k be the index (in the underlying array) of the maximum element stored in the heap. The number of possible values o...

Computer Science·MCQ·medium·✓ keyed
Q44

The symbol → indicates functional dependency in the context of a relational database. Which of the following options is/are TRUE?

Computer Science·MCQ·medium·✓ keyed
Q45

Let G be a directed graph and T a depth first search (DFS) spanning tree in G that is rooted at a vertex v. Suppose T is also a breadth first search (BFS) tree in G, rooted at v. W...

Computer Science·MCQ·hard·✓ keyed
Q46

Consider the following read-write schedule S over three transactions T1, T2, and T3, where the subscripts in the schedule indicate transaction IDs: S: r₁(z); w₁(z); r₂(x); r₃(y); w...

Computer Science·MCQ·medium·✓ keyed
Q47

Consider a Boolean expression given by F(X, Y, Z) = ∑(3,5,6,7). Which of the following statements is/are CORRECT?

Computer Science·MCQ·medium·✓ keyed
Q48

Consider the following C function definition. int f(int x, int y) { for (int i=0; i<y; i++) { x=x+x+y; } return x; } Which of the following statements is/are TRUE about the above f...

Computer Science·MCQ·medium·✓ keyed
Q49

Let A be any n × m matrix, where m > n. Which of the following statements is/are TRUE about the system of linear equations Ax = 0 ?

Computer Science·MCQ·medium·✓ keyed
Q50

Consider the 5-state DFA M accepting the language L(M) ⊂ (0+1)* shown below. For any string w ∈ (0+1)* let n₀(w) be the number of 0's in w and n₁(w) be the number of 1's in w. Whic...

Computer Science·MCQ·hard·✓ keyed
Q51

The chromatic number of a graph is the minimum number of colours used in a proper colouring of the graph. Let G be any graph with n vertices and chromatic number k. Which of the fo...

Computer Science·MCQ·medium·✓ keyed
Q52

Consider the operators ◊ and □ defined by a◊ b = a + 2b, a□b = ab, for positive integers. Which of the following statements is/are TRUE?

Computer Science·MCQ·medium·✓ keyed
Q53

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 Recent...

Computer Science·MCQ·medium·✓ keyed
Q54

Consider a 512 GB hard disk with 32 storage surfaces. There are 4096 sectors per track and each sector holds 1024 bytes of data. The number of cylinders in the hard disk is _______...

Computer Science·NAT·medium·✓ keyed
Q55

The baseline execution time of a program on a 2 GHz single core machine is 100 nanoseconds (ns). The code corresponding to 90% of the execution time can be fully parallelized. The...

Computer Science·NAT·hard·✓ keyed
Q56

A given program has 25% load/store instructions. Suppose the ideal CPI (cycles per instruction) without any memory stalls is 2. The program exhibits 2% miss rate on instruction cac...

Computer Science·NAT·hard·✓ keyed
Q57

Consider the following code snippet using the fork() and wait() system calls. Assume that the code compiles and runs correctly, and that the system calls run successfully without a...

Computer Science·NAT·medium·✓ keyed
Q58

Consider the entries shown below in the forwarding table of an IP router. Each entry consists of an IP prefix and the corresponding next hop router for packets whose destination IP...

Computer Science·NAT·medium·✓ keyed
Q59

Let G = (V, Σ, S, P) be a context-free grammar in Chomsky Normal Form with Σ = {a,b,c} and V containing 10 variable symbols including the start symbol S. The string w = a^30 b^30 c...

Computer Science·NAT·hard·✓ keyed
Q60

The number of edges present in the forest generated by the DFS traversal of an undirected graph G with 100 vertices is 40. The number of connected components in G is _________

Computer Science·NAT·medium·✓ keyed
Q61

Consider the following two regular expressions over the alphabet {0,1}: r = 0* + 1* s = 01* + 10* The total number of strings of length less than or equal to 5, which are neither i...

Computer Science·NAT·hard·✓ keyed
Q62

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...

Computer Science·NAT·medium·✓ keyed
Q63

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 p...

Math Reasoning·NAT·easy·✓ keyed
Q64

Consider a digital logic circuit consisting of three 2-to-1 multiplexers M1, M2, and M3 as shown below. X1 and X2 are inputs of M1. X3 and X4 are inputs of M2. A, B, and C are sele...

Computer Science·NAT·medium·✓ keyed
Q65

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...

Computer Science·NAT·medium·✓ keyed

Set 2

Q1

If '→' denotes increasing order of intensity, then the meaning of the words [walk → jog → sprint] is analogous to [bothered → _______ → daunted]. Which one of the given options is...

General Aptitude·MCQ·medium·✓ keyed
Q2

Two wizards try to create a spell using all the four elements, water, air, fire, and earth. For this, they decide to mix all these elements in all possible orders. They also decide...

General Aptitude·MCQ·easy·✓ keyed
Q3

In an engineering college of 10,000 students, 1,500 like neither their core branches nor other branches. The number of students who like their core branches is 1/4th of the number...

Logical Reasoning·MCQ·medium·✓ keyed
Q4

For positive non-zero real variables x and y, if $\ln\left(\frac{x+y}{2}\right) = \frac{1}{2}[\ln (x) + \ln (y)]$ then, the value of $\frac{x}{y} + \frac{y}{x}$ is

Math Reasoning·MCQ·medium·✓ keyed
Q5

In the sequence 6, 9, 14, x, 30, 41, a possible value of x is

Logical Reasoning·MCQ·medium·✓ keyed
Q6

Sequence the following sentences in a coherent passage. P: This fortuitous geological event generated a colossal amount of energy and heat that resulted in the rocks rising to an a...

English·MCQ·medium·✓ keyed
Q7

A person sold two different items at the same price. He made 10% profit in one item, and 10% loss in the other item. In selling these two items, the person made a total of

Logical Reasoning·MCQ·medium·✓ keyed
Q8

The pie charts depict the shares of various power generation technologies in the total electricity generation of a country for the years 2007 and 2023. The renewable sources of ele...

Logical Reasoning·MCQ·medium·✓ keyed
Q9

A cube is to be cut into 8 pieces of equal size and shape. Here, each cut should be straight and it should not stop till it reaches the other end of the cube. The minimum number of...

Logical Reasoning·MCQ·easy·✓ keyed
Q10

In the 4 x 4 array shown below, each cell of the first three rows has either a cross (X) or a number. 1 X 4 3 X 5 5 4 3 X 6 X The number in a cell represents the count of the immed...

Computer Science·MCQ·medium·✓ keyed
Q11

Consider a computer with a 4 MHz processor. Its DMA controller can transfer 8 bytes in 1 cycle from a device to main memory through cycle stealing at regular intervals. Which one o...

Computer Science·MCQ·medium·✓ keyed
Q12

Let p and q be the following propositions: p: Fail grade can be given. q: Student scores more than 50% marks. Consider the statement: “Fail grade cannot be given when student score...

Computer Science·MCQ·easy·✓ keyed
Q13

Consider the following C program. Assume parameters to a function are evaluated from right to left. #include int g(int p) { printf("%d", p); return p; } int h(int q) { printf("%d",...

Computer Science·MCQ·medium·✓ keyed
Q14

The format of a single-precision floating-point number as per the IEEE 754 standard is: Sign (1bit) Exponent (8 bits) Mantissa (23 bits) Choose the largest floating-point number am...

Computer Science·MCQ·medium·✓ keyed
Q15

Let T(n) be the recurrence relation defined as follows: T(0) = 1, T(1) = 2, and T(n) = 5T(n - 1) – 6T(n-2) for n ≥ 2 Which one of the following statements is TRUE?

Computer Science·MCQ·medium·✓ keyed
Q16

Let f(x) be a continuous function from ℝ to ℝ such that f(x) = 1 − f(2 – x) Which one of the following options is the CORRECT value of $\int_0^2 f(x)dx$?

Mathematics·MCQ·medium·✓ keyed
Q17

Let A be the adjacency matrix of a simple undirected graph G. Suppose A is its own inverse. Which one of the following statements is always TRUE?

Computer Science·MCQ·medium·✓ keyed
Q18

When six unbiased dice are rolled simultaneously, the probability of getting all distinct numbers (i.e., 1, 2, 3, 4, 5, and 6) is

Mathematics·MCQ·medium·✓ keyed
Q19

Once the DBMS informs the user that a transaction has been successfully completed, its effect should persist even if the system crashes before all its changes are reflected on disk...

Computer Science·MCQ·easy·✓ keyed
Q20

In the context of owner and weak entity sets in the ER (Entity-Relationship) data model, which one of the following statements is TRUE?

Computer Science·MCQ·medium·✓ keyed
Q21

Consider the following two sets: Set X P. Lexical Analyzer Q. Syntax Analyzer R. Intermediate Code Generator S. Code Optimizer Set Y 1. Abstract Syntax Tree 2. Token 3. Parse Tree...

Computer Science·MCQ·medium·✓ keyed
Q22

Which one of the following regular expressions is equivalent to the language accepted by the DFA given below?

Computer Science·MCQ·medium·✓ keyed
Q23

Node X has a TCP connection open to node Y. The packets from X to Y go through an intermediate IP router R. Ethernet switch S is the first switch on the network path between X and...

Computer Science·MCQ·medium·✓ keyed
Q24

Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU) in a system with paging-based memory management?

Computer Science·MCQ·medium·✓ keyed
Q25

Consider a process P running on a CPU. Which one or more of the following events will always trigger a context switch by the OS that results in process P moving to a non-running st...

Computer Science·MCQ·medium·✓ keyed
Q26

Which of the following file organizations is/are I/O efficient for the scan operation in DBMS?

Computer Science·MCQ·medium·✓ keyed
Q27

Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?

Computer Science·MCQ·medium·✓ keyed
Q28

Which of the following statements about IPv4 fragmentation is/are TRUE?

Computer Science·MCQ·medium·✓ keyed
Q29

Which of the following statements is/are FALSE?

Computer Science·MCQ·medium·✓ keyed
Q30

For a Boolean variable x, which of the following statements is/are FALSE?

Computer Science·MCQ·easy·✓ keyed
Q31

An instruction format has the following structure: Instruction Number: Opcode destination reg, source reg-1, source reg-2 Consider the following sequence of instructions to be exec...

Computer Science·MCQ·medium·✓ keyed
Q32

Which of the following fields of an IP header is/are always modified by any router before it forwards the IP packet?

Computer Science·MCQ·medium·✓ keyed
Q33

Consider the following C function definition. int fX (char *a) { char *b = a; while (*b) b++; return b - a;} Which of the following statements is/are TRUE?

Computer Science·MCQ·medium·✓ keyed
Q34

Let P be the partial order defined on the set {1,2,3,4} as follows P = {(x,x) | x ∈ {1,2,3,4}} ∪ {(1,2), (3,2), (3,4)} The number of total orders on {1,2,3,4} that contain P is ___...

Computer Science·NAT·hard·✓ keyed
Q35

Let A be an array containing integer values. The distance of A is defined as the minimum number of elements in A that must be replaced with another integer so that the resulting ar...

Computer Science·NAT·medium·✓ keyed
Q36

What is the output of the following C program? #include int main() { double a [2]={20.0, 25.0}, *p, *q; p = a; q = p + 1; printf("%d,%d", (int)(q - p), (int)(*q - *p)); return 0;}

Computer Science·MCQ·medium·✓ keyed
Q37

Consider a single processor system with four processes A, B, C, and D, represented as given below, where for each process the first value is its arrival time, and the second value...

Computer Science·MCQ·medium·✓ keyed
Q38

Which one of the following CIDR prefixes exactly represents the range of IP addresses 10.12.2.0 to 10.12.3.255?

Computer Science·MCQ·medium·✓ keyed
Q39

You are given a set V of distinct integers. A binary search tree T is created by inserting all elements of V one by one, starting with an empty tree. The tree T follows the convent...

Computer Science·MCQ·medium·✓ keyed
Q40

Consider the following context-free grammar where the start symbol is S and the set of terminals is {a,b,c,d}. S → AaAb | BbBa A → cS | ε B → dS | ε The following is a partially-fi...

Computer Science·MCQ·medium·✓ keyed
Q41

Let M be the 5-state NFA with \epsilon-transitions shown in the diagram below. Which one of the following regular expressions represents the language accepted by M?

Computer Science·MCQ·medium·✓ keyed
Q42

Consider an array X that contains n positive integers. A subarray of X is defined to be a sequence of array locations with consecutive indices. The C code snippet given below has b...

Computer Science·MCQ·medium·✓ keyed
Q43

Consider the following expression: x[i] = (p + r) * -s[i] + u/w. The following sequence shows the list of triples representing the given expression, with entries missing for triple...

Computer Science·MCQ·medium·✓ keyed
Q44

Let x and y be random variables, not necessarily independent, that take real values in the interval [0,1]. Let z = xy and let the mean values of x, y, z be x̄, ȳ, z̄, respectively....

Computer Science·MCQ·medium·✓ keyed
Q45

The relation schema, Person (pid, city), describes the city of residence for every person uniquely identified by pid. The following relational algebra operators are available: sele...

Computer Science·MCQ·medium·✓ keyed
Q46

Consider a multi-threaded program with two threads T1 and T2. The threads share two semaphores: s1 (initialized to 1) and s2 (initialized to 0). The threads also share a global var...

Computer Science·MCQ·medium·✓ keyed
Q47

Let A be an n×n matrix over the set of all real numbers R. Let B be a matrix obtained from A by swapping two rows. Which of the following statements is/are TRUE?

Computer Science·MCQ·medium·✓ keyed
Q48

Let S1 and S2 be two stacks. S1 has capacity of 4 elements. S2 has capacity of 2 elements. S1 already has 4 elements: 100, 200, 300, and 400, whereas S2 is empty, as shown below. 4...

Computer Science·MCQ·medium·✓ keyed
Q49

Which of the following is/are EQUAL to 224 in radix-5 (i.e., base-5) notation?

Computer Science·MCQ·medium·✓ keyed
Q50

Consider 4-variable functions f1, f2, f3, f4 expressed in sum-of-minterms form as given below. f1 = ∑(0,2,3,5,7,8,11,13) f2 = ∑(1,3,5,7,11,13, 15) f3 = ∑(0,1,4,11) f4 = ∑(0,2,6,13)...

Computer Science·MCQ·medium·✓ keyed
Q51

Let G be an undirected connected graph in which every edge has a positive integer weight. Suppose that every spanning tree in G has even weight. Which of the following statements i...

Computer Science·MCQ·medium·✓ keyed
Q52

Consider a context-free grammar G with the following 3 rules. S → aS, S → aSbS, S → c Let w ∈ L(G). Let n_a(w), n_b(w), n_c(w) denote the number of times a, b, c occur in w, respec...

Computer Science·MCQ·medium·✓ keyed
Q53

Consider a disk with the following specifications: rotation speed of 6000 RPM, average seek time of 5 milliseconds, 500 sectors/track, 512-byte sectors. A file has content stored i...

Computer Science·NAT·medium·✓ keyed
Q54

Consider a TCP connection operating at a point of time with the congestion window of size 12 MSS (Maximum Segment Size), when a timeout occurs due to packet loss. Assuming that all...

Computer Science·NAT·medium·✓ keyed
Q55

Consider an Ethernet segment with a transmission speed of 10^8 bits/sec and a maximum segment length of 500 meters. If the speed of propagation of the signal in the medium is 2x10^...

Computer Science·NAT·medium·✓ keyed
Q56

A functional dependency F: X → Y is termed as a useful functional dependency if and only if it satisfies all the following three conditions: * X is not the empty set. * Y is not th...

Computer Science·NAT·hard·✓ keyed
Q57

A processor with 16 general purpose registers uses a 32-bit instruction format. The instruction format consists of an opcode field, an addressing mode field, two register operand f...

Computer Science·NAT·medium·✓ keyed
Q58

A non-pipelined instruction execution unit operating at 2 GHz takes an average of 6 cycles to execute an instruction of a program P. The unit is then redesigned to operate on a 5-s...

Computer Science·NAT·hard·✓ keyed
Q59

The number of distinct minimum-weight spanning trees of the following graph is _________

Computer Science·NAT·medium·✓ keyed
Q60

The chromatic number of a graph is the minimum number of colours used in a proper colouring of the graph. The chromatic number of the following graph is _________

Computer Science·NAT·medium·✓ keyed
Q61

A processor uses a 32-bit instruction format and supports byte-addressable memory access. The ISA of the processor has 150 distinct instructions. The instructions are equally divid...

Computer Science·NAT·medium·✓ keyed
Q62

Let L₁ be the language represented by the regular expression b*ab*(ab*ab*)* and L₂ = { w ∈ (a + b)* | |w| ≤ 4}, where |w| denotes the length of string w. The number of strings in L...

Computer Science·NAT·medium·✓ keyed
Q63

Let Zₙ be the group of integers {0, 1, 2, ..., n-1} with addition modulo n as the group operation. The number of elements in the group Z₂ × Z₃ × Z₄ that are their own inverses is _...

Computer Science·NAT·medium·✓ keyed
Q64

Consider a 32-bit system with 4 KB page size and page table entries of size 4 bytes each. Assume 1 KB = 2^10 bytes. The OS uses a 2-level page table for memory management, with the...

Computer Science·NAT·hard·✓ keyed
Q65

Consider the following augmented grammar, which is to be parsed with a SLR parser. The set of terminals is {a,b,c,d,#,@} S' → S S → SS | Aa | bAc | Bc | bBa A → d# B → @ Let I₀ = C...

Computer Science·NAT·medium·✓ keyed