GATE · Computer Science and Information Technology · 2024 Set 2Practice Mode
Score:0/100(0 attempted)

General Aptitude

Q1General Aptitude · 1 mark · MCQ

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 appropriate to fill the blank?

Q2General Aptitude · 1 mark · MCQ

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 to work independently. After trying all possible combination of elements, they conclude that the spell does not work. How many attempts does each wizard make before coming to this conclusion, independently?

Q3General Aptitude · 1 mark · MCQ

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 of students who like other branches. The number of students who like both their core and other branches is 500. The number of students who like their core branches is

Q4General Aptitude · 1 mark · MCQ

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

Q5General Aptitude · 1 mark · MCQ

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

Q6General Aptitude · 2 marks · MCQ

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 average height of 4 km across the contact zone.
Q: Thus, the geophysicists tend to think of the Himalayas as an active geological event rather than as a static geological feature.
R: The natural process of the cooling of this massive edifice absorbed large quantities of atmospheric carbon dioxide, altering the earth's atmosphere and making it better suited for life.
S: Many millennia ago, a breakaway chunk of bedrock from the Antarctic Plate collided with the massive Eurasian Plate.

Q7General Aptitude · 2 marks · MCQ

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

Q8General Aptitude · 2 marks · MCQ

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 electricity generation consist of Hydro, Solar and Wind. Assuming that the total electricity generated remains the same from 2007 to 2023, what is the percentage increase in the share of the renewable sources of electricity generation over this period?

Question 8
Q9General Aptitude · 2 marks · MCQ

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 such cuts required is

Q10General Aptitude · 2 marks · MCQ

In the 4 × 4 array shown below, each cell of the first three rows has either a cross (X) or a number. The number in a cell represents the count of the immediate neighboring cells (left, right, top, bottom, diagonals) NOT having a cross (X). Given that the last row has no crosses (X), the sum of the four numbers to be filled in the last row is

Question 10

Computer Science and Information Technology

Q11Computer Science and Information Technology · 1 mark · MCQ

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 of the following is the data transfer rate (in bits per second) of the DMA controller if 1% of the processor cycles are used for DMA?

Q12Computer Science and Information Technology · 1 mark · MCQ

Let pp and qq be the following propositions:
pp: Fail grade can be given.
qq: Student scores more than 50% marks.
Consider the statement: "Fail grade cannot be given when student scores more than 50% marks."
Which one of the following is the CORRECT representation of the above statement in propositional logic?

Q13Computer Science and Information Technology · 1 mark · MCQ

Consider the following C program. Assume parameters to a function are evaluated from right to left. Which one of the following options is the CORRECT output of the above C program?

Question 13
Q14Computer Science and Information Technology · 1 mark · MCQ

The format of a single-precision floating-point number as per the IEEE 754 standard is:

Question 14
Q15Computer Science and Information Technology · 1 mark · MCQ

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

Q16Computer Science and Information Technology · 1 mark · MCQ

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

Q17Computer Science and Information Technology · 1 mark · MCQ

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

Q18Computer Science and Information Technology · 1 mark · MCQ

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

Q19Computer Science and Information Technology · 1 mark · MCQ

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. This property is called

Q20Computer Science and Information Technology · 1 mark · MCQ

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

Q21Computer Science and Information Technology · 1 mark · MCQ

Consider the following two sets: Set X:

Question 21
Q22Computer Science and Information Technology · 1 mark · MCQ

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

Question 22
Q23Computer Science and Information Technology · 1 mark · MSQ

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 R. Consider a packet sent from X to Y over this connection. Which of the following statements is/are TRUE about the destination IP and MAC addresses on this packet at the time it leaves X?

Q24Computer Science and Information Technology · 1 mark · MSQ

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

Q25Computer Science and Information Technology · 1 mark · MSQ

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 state (e.g., ready, blocked)?

Q26Computer Science and Information Technology · 1 mark · MSQ

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

Q27Computer Science and Information Technology · 1 mark · MSQ

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

Q28Computer Science and Information Technology · 1 mark · MSQ

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

Q29Computer Science and Information Technology · 1 mark · MSQ

Which of the following statements is/are FALSE?

Q30Computer Science and Information Technology · 1 mark · MSQ

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

Q31Computer Science and Information Technology · 1 mark · MSQ

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 executed in a pipelined processor:
I1: DIV R3, R1, R2;
I2: SUB R5, R3, R4;
I3: ADD R3, R5, R6;
I4: MUL R7, R3, R8.
Which of the following statements is/are TRUE?

Q32Computer Science and Information Technology · 1 mark · MSQ

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

Q33Computer Science and Information Technology · 1 mark · MSQ

Consider the following C function definition.

Question 33
Q34Computer Science and Information Technology · 1 mark · NAT

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

Q35Computer Science and Information Technology · 1 mark · NAT

Let AA be an array containing integer values. The distance of AA is defined as the minimum number of elements in AA that must be replaced with another integer so that the resulting array is sorted in non-decreasing order. The distance of the array [2, 5, 3, 1, 4, 2, 6] is ___________

Q36Computer Science and Information Technology · 2 marks · MCQ

What is the output of the following C program?

Question 36
Q37Computer Science and Information Technology · 2 marks · MCQ

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 is its CPU burst time.
A (0, 10), B (2, 6), C (4, 3), and D (6, 7).
Which one of the following options gives the average waiting times when preemptive Shortest Remaining Time First (SRTF) and Non-Preemptive Shortest Job First (NP-SJF) CPU scheduling algorithms are applied to the processes?

Q38Computer Science and Information Technology · 2 marks · MCQ

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

Q39Computer Science and Information Technology · 2 marks · MCQ

You are given a set VV of distinct integers. A binary search tree TT is created by inserting all elements of VV one by one, starting with an empty tree. The tree TT follows the convention that, at each node, all values stored in the left subtree of the node are smaller than the value stored at the node. You are not aware of the sequence in which these values were inserted into TT, and you do not have access to TT. Which one of the following statements is TRUE?

Q40Computer Science and Information Technology · 2 marks · MCQ

Consider the following context-free grammar where the start symbol is SS and the set of terminals is {a,b,c,d}\{a,b,c,d\}.

Question 40
Q41Computer Science and Information Technology · 2 marks · MCQ

Let MM 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 MM?

Question 41
Q42Computer Science and Information Technology · 2 marks · MCQ

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 been written to compute the length of the longest subarray of X that contains at most two distinct integers. The code has two missing expressions labelled (P)(P) and (Q)(Q).

Question 42
Q43Computer Science and Information Technology · 2 marks · MCQ

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

Question 43
Q44Computer Science and Information Technology · 2 marks · MCQ

Let xx and yy be random variables, not necessarily independent, that take real values in the interval [0,1]. Let z=xyz= xy and let the mean values of xx, yy, zz be xˉ\bar{x}, yˉ\bar{y}, zˉ\bar{z}, respectively. Which one of the following statements is TRUE?

Q45Computer Science and Information Technology · 2 marks · MCQ

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: selection, projection, cross product, and rename. To find the list of cities where at least 3 persons reside, using the above operators, the minimum number of cross product operations that must be used is

Q46Computer Science and Information Technology · 2 marks · MSQ

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 variable x (initialized to 0). The threads execute the code shown below.

Question 46
Q47Computer Science and Information Technology · 2 marks · MSQ

Let AA be an n×nn\times n matrix over the set of all real numbers R\mathbb{R}. Let BB be a matrix obtained from AA by swapping two rows. Which of the following statements is/are TRUE?

Q48Computer Science and Information Technology · 2 marks · MSQ

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.

Question 48
Q49Computer Science and Information Technology · 2 marks · MSQ

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

Q50Computer Science and Information Technology · 2 marks · MSQ

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)\sum(0,2,3,5,7,8,11,13),
f2 = (1,3,5,7,11,13,15)\sum(1,3,5,7,11,13, 15),
f3 = (0,1,4,11)\sum(0,1,4,11),
f4 = (0,2,6,13)\sum(0,2,6,13).

Question 50
Q51Computer Science and Information Technology · 2 marks · MSQ

Let GG be an undirected connected graph in which every edge has a positive integer weight. Suppose that every spanning tree in GG has even weight. Which of the following statements is/are TRUE for every such graph GG?

Q52Computer Science and Information Technology · 2 marks · MSQ

Consider a context-free grammar GG with the following 3 rules.
SaSS\to aS, SaSbSS\to aSbS, ScS\to c. Let wL(G)w\in L(G)
Let na(w)n_a(w), nb(w)n_b(w), nc(w)n_c(w) denote the number of times aa, bb, cc occur in ww, respectively. Which of the following statements is/are TRUE?

Q53Computer Science and Information Technology · 2 marks · NAT

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 in 3000 sectors located randomly on the disk. Assuming average rotational latency, the total time (in seconds, rounded off to 2 decimal places) to read the entire file from the disk is _________

Q54Computer Science and Information Technology · 2 marks · NAT

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 the segments transmitted in the next two RTTs (Round Trip Time) are acknowledged correctly, the congestion window size (in MSS) during the third RTT will be _________

Q55Computer Science and Information Technology · 2 marks · NAT

Consider an Ethernet segment with a transmission speed of 10810^8 bits/sec and a maximum segment length of 500 meters. If the speed of propagation of the signal in the medium is 2×1082\times 10^8 meters/sec, then the minimum frame size (in bits) required for collision detection is _________

Q56Computer Science and Information Technology · 2 marks · NAT

A functional dependency F:XYF: X\to Y is termed as a useful functional dependency if and only if it satisfies all the following three conditions:
XX is not the empty set.
YY is not the empty set.
• Intersection of XX and YY is the empty set.
For a relation RR with 4 attributes, the total number of possible useful functional dependencies is ________

Q57Computer Science and Information Technology · 2 marks · NAT

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 fields, and a 16-bit scalar field. If 8 addressing modes are to be supported, the maximum number of unique opcodes possible for every addressing mode is _________

Q58Computer Science and Information Technology · 2 marks · NAT

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-stage pipeline at 2 GHz. Assume that the ideal throughput of the pipelined unit is 1 instruction per cycle. In the execution of program P, 20% instructions incur an average of 2 cycles stall due to data hazards and 20% instructions incur an average of 3 cycles stall due to control hazards. The speedup (rounded off to one decimal place) obtained by the pipelined design over the non-pipelined design is _________

Q59Computer Science and Information Technology · 2 marks · NAT

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

Question 59
Q60Computer Science and Information Technology · 2 marks · NAT

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 _________

Question 60
Q61Computer Science and Information Technology · 2 marks · NAT

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 divided into two types, namely R-type and I-type, whose formats are shown below.

Question 61
Q62Computer Science and Information Technology · 2 marks · NAT

Let L1L_1 be the language represented by the regular expression bab(abab)b^*ab^*(ab^*ab^*)^* and L2={w(a+b) w4}L_2 = \{w\in(a+ b)^* | \ |w| \leq 4\}, where w|w| denotes the length of string ww. The number of strings in L2L_2 which are also in L1L_1 is ___________

Q63Computer Science and Information Technology · 2 marks · NAT

Let ZnZ_n be the group of integers {0,1,2,,n1}\{0, 1, 2, \ldots, n-1\} with addition modulo nn as the group operation. The number of elements in the group Z2×Z3×Z4Z_2 \times Z_3 \times Z_4 that are their own inverses is ________

Q64Computer Science and Information Technology · 2 marks · NAT

Consider a 32-bit system with 4 KB page size and page table entries of size 4 bytes each. Assume 1 KB = 2102^{10} bytes. The OS uses a 2-level page table for memory management, with the page table containing an outer page directory and an inner page table. The OS allocates a page for the outer page directory upon process creation. The OS uses demand paging when allocating memory for the inner page table, i.e., a page of the inner page table is allocated only if it contains at least one valid page table entry.
An active process in this system accesses 2000 unique pages during its execution, and none of the pages are swapped out to disk. After it completes the page accesses, let X denote the minimum and Y denote the maximum number of pages across the two levels of the page table of the process. The value of X+Y is ________

Q65Computer Science and Information Technology · 2 marks · NAT

Consider the following augmented grammar, which is to be parsed with a SLR parser. The set of terminals is {a,b,c,d,#,@}\{a,b,c,d,\#,@\}.
SSS' \to S
SSSAabAcBcbBaS\to SS | Aa | bAc | Bc | bBa
Ad#A\to d\#
B@B\to @.
Let I0=CLOSURE({SS})I_0 = CLOSURE(\{S' \to \cdot S\}). The number of items in the set GOTO(I0,S)GOTO(I_0, S) is ___________