GATE CS 2024 Set 2
All 65 solved GATE CS 2024 Set 2 questions in exam order. Open any question for the official answer and a step-by-step solution.
Questions
65
Total marks
100
By type: MCQ (32)MSQ (18)NAT (15)
Difficulty: Easy (19)Medium (38)Hard (8)
General Aptitude (GA)
- Q1If ‘’ denotes increasing order of intensity, then the meaning of the words [walk jog sprint] is analogous to [bothered ________ …MCQ · +1 marks
- Q2Two 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…MCQ · +1 marks
- Q3In 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…MCQ · +1 marks
General Aptitude
- Q4For positive non-zero real variables and , if then, the value of…MCQ · +1 marks
- Q5In the sequence 6, 9, 14, , 30, 41, a possible value of isMCQ · +1 marks
- Q6Sequence the following sentences in a coherent passage. P: This fortuitous geological event generated a colossal amount of energy and heat that resulted in the…MCQ · +2 marks
- Q7A 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…MCQ · +2 marks
- Q8The pie charts depict the shares of various power generation technologies in the total electricity generation of a country for the years 2007 and 2023.…MCQ · +2 marks
- Q9A 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.…MCQ · +2 marks
- Q10In the array shown below, each cell of the first three rows has either a cross (X) or a number. [figure] The number in a cell represents the count…MCQ · +2 marks
Computer Science and Information Technology
- Q11Consider 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…MCQ · +1 marks
- Q12Let and be the following propositions: : Fail grade can be given. : Student scores more than 50% marks. Consider the statement: "Fail grade…MCQ · +1 marks
- Q14The format of a single-precision floating-point number as per the IEEE 754 standard is: [figure] Choose the largest floating-point number among the…MCQ · +1 marks
- Q15Let be the recurrence relation defined as follows: , , and for . Which one of the following…MCQ · +1 marks
- Q16Let be a continuous function from to such that Which one of the following options is the CORRECT value…MCQ · +1 marks
- Q17Let be the adjacency matrix of a simple undirected graph . Suppose is its own inverse. Which one of the following statements is always TRUE?MCQ · +1 marks
- Q18When six unbiased dice are rolled simultaneously, the probability of getting all distinct numbers (i.e., 1, 2, 3, 4, 5, and 6) isMCQ · +1 marks
- Q19Once 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…MCQ · +1 marks
- Q20In the context of owner and weak entity sets in the ER (Entity-Relationship) data model, which one of the following statements is TRUE?MCQ · +1 marks
- Q21Consider the following two sets: | Set X | Set Y | | :--- | :--- | | P. Lexical Analyzer | 1. Abstract Syntax Tree | | Q. Syntax Analyzer | 2. Token | | R.…MCQ · +1 marks
- Q22Which one of the following regular expressions is equivalent to the language accepted by the DFA given below? [figure]MCQ · +1 marks
- Q23Node 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…MSQ · +1 marks
- Q24Which of the following tasks is/are the responsibility/responsibilities of the memory management unit (MMU) in a system with paging-based memory management?MSQ · +1 marks
- Q25Consider 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…MSQ · +1 marks
- Q26Which of the following file organizations is/are I/O efficient for the scan operation in DBMS?MSQ · +1 marks
- Q27Which of the following statements about the Two Phase Locking (2PL) protocol is/are TRUE?MSQ · +1 marks
- Q28Which of the following statements about IPv4 fragmentation is/are TRUE?MSQ · +1 marks
- Q29Which of the following statements is/are FALSE?MSQ · +1 marks
- Q30For a Boolean variable , which of the following statements is/are FALSE?MSQ · +1 marks
- Q31An instruction format has the following structure: Instruction Number: Opcode destination reg, source reg-1, source reg-2 Consider the following sequence of…MSQ · +1 marks
- Q32Which of the following fields of an IP header is/are always modified by any router before it forwards the IP packet?MSQ · +1 marks
- Q33Consider the following C function definition. [code] Which of the following statements is/are TRUE?MSQ · +1 marks
- Q36What is the output of the following C program? [code]MCQ · +2 marks
- Q37Consider 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,…MCQ · +2 marks
- Q38Which one of the following CIDR prefixes exactly represents the range of IP addresses 10.12.2.0 to 10.12.3.255?MCQ · +2 marks
- Q39You are given a set of distinct integers. A binary search tree is created by inserting all elements of one by one, starting with an empty tree. The…MCQ · +2 marks
- Q47Let be an matrix over the set of all real numbers . Let be a matrix obtained from by swapping two rows. Which of the…MSQ · +2 marks
- Q49Which of the following is/are EQUAL to in radix- (i.e., base-) notation?MSQ · +2 marks
- Q50Consider 4-variable functions expressed in sum-of-minterms form as given below. …MSQ · +2 marks
- Q53Consider 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…NAT · +2 marks
- Q55Consider an Ethernet segment with a transmission speed of bits/sec and a maximum segment length of 500 meters. If the speed of propagation of the signal…NAT · +2 marks
- Q56A functional dependency is termed as a useful functional dependency if and only if it satisfies all the following three conditions: - is…NAT · +2 marks
- Q57A processor with 16 general purpose registers uses a 32-bit instruction format. The instruction format consists of an opcode field, an addressing mode field,…NAT · +2 marks
- Q58A 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…NAT · +2 marks
- Q61A processor uses a 32-bit instruction format and supports byte-addressable memory access. The ISA of the processor has 150 distinct instructions. The…NAT · +2 marks
- Q62Let be the language represented by the regular expression and , where denotes…NAT · +2 marks
- Q63Let be the group of integers with addition modulo as the group operation. The number of elements in the group…NAT · +2 marks
- Q64Consider a 32-bit system with 4 KB page size and page table entries of size 4 bytes each. Assume 1 KB = bytes. The OS uses a 2-level page table for…NAT · +2 marks
- Q65Consider the following augmented grammar, which is to be parsed with a SLR parser. The set of terminals is …NAT · +2 marks
Questions
- Q13Consider the following C program. Assume parameters to a function are evaluated from right to left. [code] Which one of the following options is the CORRECT…MCQ · +1 marks
- Q46Consider 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…MSQ · +2 marks
Computer Science and Information Technology Set 2 (CS2)
- Q34Let be the partial order defined on the set as follows The number of…NAT · +1 marks
- Q35Let be an array containing integer values. The distance of is defined as the minimum number of elements in that must be replaced with another…NAT · +1 marks
- Q40Consider the following context-free grammar where the start symbol is and the set of terminals is . …MCQ · +2 marks
- Q41Let be the 5-state NFA with -transitions shown in the diagram below. [figure] Which one of the following regular expressions represents the…MCQ · +2 marks
- Q42Consider an array that contains positive integers. A subarray of is defined to be a sequence of array locations with consecutive indices. The C…MCQ · +2 marks
- Q43Consider the following expression: . The following sequence shows the list of triples representing the given expression, with…MCQ · +2 marks
- Q44Let and be random variables, not necessarily independent, that take real values in the interval . Let and let the mean values of…MCQ · +2 marks
- Q45The relation schema,
Person(pid, city), describes the city of residence for every person uniquely identified bypid. The following relational algebra…MCQ · +2 marks - Q48Let 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…MSQ · +2 marks
- Q51Let be an undirected connected graph in which every edge has a positive integer weight. Suppose that every spanning tree in has even weight. Which of…MSQ · +2 marks
- Q52Consider a context-free grammar with the following 3 rules. Let . Let…MSQ · +2 marks
- Q54Consider 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…NAT · +2 marks
- Q59The number of distinct minimum-weight spanning trees of the following graph is _________ [figure]NAT · +2 marks
- Q60The 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…NAT · +2 marks
Take GATE CS 2024 Set 2 as a timed test
Real exam conditions, auto-graded with detailed analytics.
Start free test