GATE · Computer Science and Information Technology · 2024 Set 1Practice 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 [dry → arid → parched] is analogous to [diet → fast → ________ ]. Which one of the given options is appropriate to fill the blank?

Q2General Aptitude · 1 mark · MCQ

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

Q3General Aptitude · 1 mark · MCQ

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

Q4General Aptitude · 1 mark · MCQ

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

Q5General Aptitude · 1 mark · MCQ

For positive non-zero real variables pp and qq, if log(p2+q2)=logp+logq+2log3\log(p^2 + q^2) = \log p+ \log q+ 2 \log 3, then, the value of p4+q4p2q2\frac{p^4+q^4}{p^2q^2} is

Q6General Aptitude · 2 marks · MCQ

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 bat; for, while he had a head ___(iii)___ batting, he could only do so with a cool head ___(iv)___ his shoulders.

Q7General Aptitude · 2 marks · MCQ

A rectangular paper sheet of dimensions 54 cm × 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 equal to the area of the sheet is also taken. Then, the ratio of the volume of the cylindrical tube to the volume of the cube is

Q8General Aptitude · 2 marks · MCQ

The pie chart presents the percentage contribution of different macronutrients to a typical 2,000 kcal diet of a person.

Question 8
Q9General Aptitude · 2 marks · MCQ

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 sheet (in cm) is

Q10General Aptitude · 2 marks · MCQ

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

Question 10

Computer Science and Information Technology

Q11Computer Science and Information Technology · 1 mark · MCQ

Let f:RRf: \mathbb{R} \to \mathbb{R} be a function such that f(x)=max{x,x3}f(x) = \max\{x, x^3\}, xRx\in\mathbb{R}, where R\mathbb{R} is the set of all real numbers. The set of all points where f(x)f(x) is NOT differentiable is

Q12Computer Science and Information Technology · 1 mark · MCQ

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

Q13Computer Science and Information Technology · 1 mark · MCQ

Consider a system that uses 5 bits for representing signed integers in 2's complement format. In this system, two integers AA and BB are represented as A=01010A=01010 and B=11010B=11010. Which one of the following operations will result in either an arithmetic overflow or an arithmetic underflow?

Q14Computer Science and Information Technology · 1 mark · MCQ

Consider a permutation sampled uniformly at random from the set of all permutations of {1, 2, 3, ⋯, nn} for some n4n \geq 4. Let XX be the event that 1 occurs before 2 in the permutation, and YY the event that 3 occurs before 4. Which one of the following statements is TRUE?

Q15Computer Science and Information Technology · 1 mark · MCQ

Which one of the following statements is FALSE?

Q16Computer Science and Information Technology · 1 mark · MCQ

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-level index page with multiple embedded image objects. Assume that all caches (e.g., DNS cache, browser cache) are all initially empty. The following packets leave the user's computer in some order.
(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?

Q17Computer Science and Information Technology · 1 mark · MCQ

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

Q18Computer Science and Information Technology · 1 mark · MCQ

Consider the following C program:Which one of the following statements is CORRECT?

Question 18
Q19Computer Science and Information Technology · 1 mark · MCQ

Consider the following C program:
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?

Question 19
Q20Computer Science and Information Technology · 1 mark · MCQ

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?

Question 20
Q21Computer Science and Information Technology · 1 mark · MCQ

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

Q22Computer Science and Information Technology · 1 mark · MSQ

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

Q23Computer Science and Information Technology · 1 mark · MSQ

Let L1L_1, L2L_2 be two regular languages and L3L_3 a language which is not regular. Which of the following statements is/are always TRUE?

Q24Computer Science and Information Technology · 1 mark · MSQ

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

Q25Computer Science and Information Technology · 1 mark · MSQ

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

Q26Computer Science and Information Technology · 1 mark · MSQ

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

Q27Computer Science and Information Technology · 1 mark · MSQ

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

Q28Computer Science and Information Technology · 1 mark · MSQ

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?

Question 28
Q29Computer Science and Information Technology · 1 mark · MSQ

TCP client P successfully establishes a connection to TCP server Q. Let NPN_P denote the sequence number in the SYN sent from P to Q. Let NQN_Q denote the acknowledgement number in the SYN ACK from Q to P. Which of the following statements is/are CORRECT?

Q30Computer Science and Information Technology · 1 mark · MSQ

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?

Q31Computer Science and Information Technology · 1 mark · MSQ

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?

Q32Computer Science and Information Technology · 1 mark · NAT

Let AA and BB be non-empty finite sets such that there exist one-to-one and onto functions (i) from AA to BB and (ii) from A×AA\times A to ABA\cup B. The number of possible values of |AA| is __________

Q33Computer Science and Information Technology · 1 mark · NAT

Consider the operator precedence and associativity rules for the integer arithmetic operators given in the table below. The value of the expression 3 + 1 + 5 ∗ 2 / 7 + 2 − 4 − 7 − 6 / 2 as per the below rules is __________

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

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

Q35Computer Science and Information Technology · 1 mark · NAT

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

Question 35
Q36Computer Science and Information Technology · 2 marks · MCQ

Consider a network path P—Q—R between nodes P and R via router Q. Node P sends a file of size 10610^6 bytes to R via this path by splitting the file into chunks of 10310^3 bytes each. Node P sends these chunks one after the other without any wait time between the successive chunk transmissions. Assume that the size of extra headers added to these chunks is negligible, and that the chunk size is less than the MTU. Each of the links P—Q and Q—R has a bandwidth of 10610^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=0t= 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?

Q37Computer Science and Information Technology · 2 marks · MCQ

Consider the following syntax-directed definition (SDD). Given "MMLK" as the input, which one of the following options is the CORRECT value computed by the SDD (in the attribute S.valS.val)?

Question 37
Q38Computer Science and Information Technology · 2 marks · MCQ
Question 38
Q39Computer Science and Information Technology · 2 marks · MCQ
Question 39
Q40Computer Science and Information Technology · 2 marks · MCQ
Question 40
Q41Computer Science and Information Technology · 2 marks · MCQ

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?

Q42Computer Science and Information Technology · 2 marks · MCQ

Consider the following recurrence relation: T(n)={nT(n)+n,for n1,1,for n=1.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 following options is CORRECT?

Q43Computer Science and Information Technology · 2 marks · MCQ

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

Q44Computer Science and Information Technology · 2 marks · MSQ

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

Q45Computer Science and Information Technology · 2 marks · MSQ

Let GG be a directed graph and TT a depth first search (DFS) spanning tree in GG that is rooted at a vertex vv. Suppose TT is also a breadth first search (BFS) tree in GG, rooted at vv. Which of the following statements is/are TRUE for every such graph GG and tree TT?

Q46Computer Science and Information Technology · 2 marks · MSQ

Consider the following read-write schedule SS over three transactions T1T_1, T2T_2, and T3T_3, where the subscripts in the schedule indicate transaction IDs:
S:r1(z);w1(z);r2(x);r3(y);w3(y);r2(y);w2(x);w2(y);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 SS?

Q47Computer Science and Information Technology · 2 marks · MSQ

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

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

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

Q50Computer Science and Information Technology · 2 marks · MSQ

Consider the 5-state DFA MM accepting the language L(M)(0+1)L(M) \subset (0 + 1)^* shown below. For any string w(0+1)w\in (0 + 1)^* let n0(w)n_0(w) be the number of 0's in ww and n1(w)n_1(w) be the number of 1's in ww. Which of the following statements is/are FALSE?

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

The chromatic number of a graph is the minimum number of colours used in a proper colouring of the graph. Let GG be any graph with nn vertices and chromatic number kk. Which of the following statements is/are always TRUE?

Q52Computer Science and Information Technology · 2 marks · MSQ

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

Q53Computer Science and Information Technology · 2 marks · MSQ

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?

Q54Computer Science and Information Technology · 2 marks · NAT

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 __________

Q55Computer Science and Information Technology · 2 marks · NAT

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 overhead for using an additional core is 10 ns when running on a multicore system. Assume that all cores in the multicore system run their share of the parallelized code for an equal amount of time. The number of cores that minimize the execution time of the program is __________

Q56Computer Science and Information Technology · 2 marks · NAT

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 cache and 8% miss rate on data cache. The miss penalty is 100 cycles. The speedup (rounded off to two decimal places) achieved with a perfect cache (i.e., with NO data or instruction cache misses) is __________

Q57Computer Science and Information Technology · 2 marks · NAT

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

Question 57
Q58Computer Science and Information Technology · 2 marks · NAT

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 address matches the prefix. The notation "/N" in a prefix indicates a subnet mask with the most significant N bits set to 1.

Question 58
Q59Computer Science and Information Technology · 2 marks · NAT

Let G=(V,Σ,S,P)G = (V, \Sigma, S, P) be a context-free grammar in Chomsky Normal Form with Σ={a,b,c}\Sigma = \{a, b, c\} and VV containing 10 variable symbols including the start symbol SS. The string w=a30b30c30w = a^{30}b^{30}c^{30} is derivable from SS. The number of steps (application of rules) in the derivation SwS\to^* w is __________

Q60Computer Science and Information Technology · 2 marks · NAT

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

Q61Computer Science and Information Technology · 2 marks · NAT

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

Q62Computer Science and Information Technology · 2 marks · NAT

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 __________

Q63Computer Science and Information Technology · 2 marks · NAT

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 __________

Q64Computer Science and Information Technology · 2 marks · NAT

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 select lines of M1, M2, and M3, respectively.

Question 64
Q65Computer Science and Information Technology · 2 marks · NAT

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 __________