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

General Aptitude

Q1General Aptitude · 1 mark · MCQ

Despite his initial hesitation, Rehman's _______________ to contribute to the success of the project never wavered. Select the most appropriate option to complete the above sentence.

Q2General Aptitude · 1 mark · MCQ

Bird: Nest :: Bee : _______________. Select the correct option to complete the analogy.

Q3General Aptitude · 1 mark · MCQ

If Pex=QexP e^x = Q e^{-x} for all real values of xx, which one of the following statements is true?

Q4General Aptitude · 1 mark · MCQ

The paper as shown in the figure is folded to make a cube. Which option correctly represents the cube? [Note: The figures shown are representative.]

Question 4
Q5General Aptitude · 1 mark · MCQ

Let p1p_1 and p2p_2 denote two arbitrary prime numbers. Which statement is correct for all p1p_1 and p2p_2?

Q6General Aptitude · 2 marks · MCQ

Based only on the conversation below, identify the logically correct inference: \“Even if I had known that you were in the hospital, I would not have gone there to see you\”, Ramya told Josephine.

Q7General Aptitude · 2 marks · MCQ

If IMAGE and FIELD are coded as FHBNJ and EMFJG respectively then, which one among the given options is the most appropriate code for BEACH ?

Q8General Aptitude · 2 marks · MCQ

Which one of the following options is correct for the given data in the table?

Question 8
Q9General Aptitude · 2 marks · MCQ

In the given figure, PQRS is a square of side 2 cm and PLMN is a rectangle. The corner L of the rectangle is on the side QR. Side MN of the rectangle passes through the corner S of the square. What is the area (in cm2) of the rectangle PLMN? Note: The figure shown is representative.

Question 9
Q10General Aptitude · 2 marks · MCQ

The diagram below shows a river system consisting of 7 segments, marked P, Q, R, S, T, U, and V. It splits the land into 5 zones, marked Z1, Z2, Z3, Z4, and Z5. We need to connect these zones using the least number of bridges. Out of the following options, which one is correct? Note: The figure shown is representative.

Question 10

Computer Science and Information Technology

Q11Computer Science and Information Technology · 1 mark · MCQ

If A=[1221]A = \begin{bmatrix}1 & 2 \\ 2 & -1\end{bmatrix}, then which ONE of the following is A8A^8?

Q12Computer Science and Information Technology · 1 mark · MCQ

The value of 𝑥 such that x>1x > 1 satisfying the equation 1xtlntdt=1/4 is\int_1^x t \ln t\, dt = 1/4 \ is

Q13Computer Science and Information Technology · 1 mark · MCQ

Consider a binary tree 𝑇 in which every node has either zero or two children.Let 𝑛>0 be the number of nodes in 𝑇.Which ONE of the following is the number of nodes in 𝑇 that have exactly two children?

Q14Computer Science and Information Technology · 1 mark · MCQ

Let 𝐿,𝑀, and 𝑁 be non-singular matrices of order 3 satisfying the equations L2=L1L^2 = L^{−1}, M=L8M = L^8, N=L2N = L^2. Which ONE of the following is the value of the determinant of (𝑀−𝑁)?

Q15Computer Science and Information Technology · 1 mark · MCQ

Let P(x) be an arbitrary predicate over the domain of natural numbers. Which ONE of the following statements is TRUE?

Q16Computer Science and Information Technology · 1 mark · MCQ

Consider the following statements:
(i) Address Resolution Protocol (ARP) provides a mapping from an IP address to the corresponding hardware (link-layer) address.
(ii) A single TCP segment from a sender S to a receiver R cannot carry both data from S to R and acknowledgement for a segment from R to S.
Which ONE of the following is CORRECT?

Q17Computer Science and Information Technology · 1 mark · MCQ

Consider the routing protocols given in List I and the names given in List II: For matching of items in List I with those in List II, which ONE of the following options is CORRECT?

Question 17
Q18Computer Science and Information Technology · 1 mark · MCQ

A machine receives an IPv4 datagram. The protocol field of the IPv4 header has the protocol number of a protocol X. Which ONE of the following is NOT a possible candidate for X?

Q19Computer Science and Information Technology · 1 mark · MCQ

Consider the following C program: Which ONE of the following will be the output of the program?

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

Consider an unordered list of N distinct integers. What is the minimum number of element comparisons required to find an integer in the list that is NOT the largest in the list?

Q21Computer Science and Information Technology · 1 mark · MCQ

Consider the following statements about the use of backpatching in a compiler for intermediate code generation:
(I) Backpatching can be used to generate code for Boolean expression in one pass.
(II) Backpatching can be used to generate code for flow-of-control statements in one pass.
Which ONE of the following options is CORRECT?

Q22Computer Science and Information Technology · 1 mark · MCQ

Given the following syntax directed translation rules:
Rule 1: RABR \to AB {B.i = R.i − 1; A.i = B.i; R.i = A.i + 1;}
Rule 2: PCDP \to CD {P.i = C.i + D.i; D.i = C.i + 2;}
Rule 3: QEFQ \to EF {Q.i = E.i + F.i;}
Which ONE is the CORRECT option among the following?

Q23Computer Science and Information Technology · 1 mark · MCQ

Consider a network that uses Ethernet and IPv4. Assume that IPv4 headers do not use any options field. Each Ethernet frame can carry a maximum of 1500 bytes in its data field. A UDP segment is transmitted. The payload (data) in the UDP segment is 7488 bytes. Which ONE of the following choices has the CORRECT total number of fragments transmitted and the size of the last fragment including IPv4 header?

Q24Computer Science and Information Technology · 1 mark · MCQ

Which ONE of the following languages is accepted by a deterministic pushdown automaton?

Q25Computer Science and Information Technology · 1 mark · MCQ

Let G1,G2G_1, G_2 be Context Free Grammars (CFGs) and R be a regular expression. For a grammar G, let L(G)L(G) denote the language generated by G. Which ONE among the following questions is decidable?

Q26Computer Science and Information Technology · 1 mark · MCQ

Processes P1, P2, P3, P4 arrive in that order at times 0, 1, 2, and 8 milliseconds respectively, and have execution times of 10, 13, 6, and 9 milliseconds respectively. Shortest Remaining Time First (SRTF) algorithm is used as the CPU scheduling policy. Ignore context switching times. Which ONE of the following correctly gives the average turnaround time of the four processes in milliseconds?

Q27Computer Science and Information Technology · 1 mark · MSQ

An audit of a banking transactions system has found that on an earlier occasion, two joint holders of account A attempted simultaneous transfers of Rs. 10000 each from account A to account B. Both transactions read the same value, Rs. 11000, as the initial balance in A and were allowed to go through. B was credited Rs. 10000 twice. A was debited only once and ended up with a balance of Rs. 1000. Which of the following properties is/are certain to have been violated by the system?

Q28Computer Science and Information Technology · 1 mark · MSQ

Which of the following is/are part of an Instruction Set Architecture of a processor?

Q29Computer Science and Information Technology · 1 mark · MSQ

Which of the following statements regarding Breadth First Search (BFS) and Depth First Search (DFS) on an undirected simple graph G is/are TRUE?

Q30Computer Science and Information Technology · 1 mark · MSQ

Consider the two lists List I and List II given below: List I: For matching of items in List I with those in List II, which of the following option(s) is/are CORRECT?

Question 30
Q31Computer Science and Information Technology · 1 mark · MSQ

Consider the following logic circuit diagram. Which is/are the CORRECT option(s) for the output function F?

Question 31
Q32Computer Science and Information Technology · 1 mark · NAT

The following two signed 2's complement numbers (multiplicand M and multiplier Q) are being multiplied using Booth's algorithm: M: 1100 1101 1110 1101 and Q: 1010 0100 1010 1010. The total number of addition and subtraction operations to be performed is (Answer in integer)

Q33Computer Science and Information Technology · 1 mark · NAT

The output of the given C code segment is ____________. (Answer in integer)

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

In a 4-bit ripple counter, if the period of the waveform at the last flip-flop is 64 microseconds, then the frequency of the ripple counter in kHz is ____________. (Answer in integer)

Q35Computer Science and Information Technology · 1 mark · NAT

Suppose the values 10, -4, 15, 30, 20, 5, 60, 19 are inserted in that order into an initially empty binary search tree. Let T be the resulting binary search tree. The number of edges in the path from the node containing 19 to the root node of T is ____________. (Answer in integer)

Q36Computer Science and Information Technology · 2 marks · MCQ

Suppose we are transmitting frames between two nodes using Stop-and-Wait protocol. The frame size is 3000 bits. The transmission rate of the channel is 2000 bps (bits/second) and the propagation delay between the two nodes is 100 milliseconds. Assume that the processing times at the source and destination are negligible. Also, assume that the size of the acknowledgement packet is negligible. Which ONE of the following most accurately gives the channel utilization for the above scenario in percentage?

Q37Computer Science and Information Technology · 2 marks · MCQ

Let G be an edge-weighted undirected graph with positive edge weights. Suppose a positive constant α\alpha is added to the weight of every edge. Which ONE of the following statements is TRUE about the minimum spanning trees (MSTs) and shortest paths (SPs) in G before and after the edge weight update?

Q38Computer Science and Information Technology · 2 marks · MCQ

A meld operation on two instances of a data structure combines them into one single instance of the same data structure. Consider the following data structures:
P: Unsorted doubly linked list with pointers to the head node and tail node of the list.
Q: Min-heap implemented using an array.
R: Binary Search Tree.
Which ONE of the following options gives the worst-case time complexities for meld operation on instances of size n of these data structures?

Q39Computer Science and Information Technology · 2 marks · MCQ

For a direct-mapped cache, 4 bits are used for the tag field and 12 bits are used to index into a cache block. The size of each cache block is one byte. Assume that there is no other information stored for each cache block. Which ONE of the following is the CORRECT option for the sizes of the main memory and the cache memory in this system (byte addressable), respectively?

Q40Computer Science and Information Technology · 2 marks · MCQ

Given a Context-Free Grammar G as follows:
SAabAcdcbdaS \to Aa | bAc | dc | bda,
AdA \to d.
Which ONE of the following statements is TRUE?

Q41Computer Science and Information Technology · 2 marks · MCQ

An array A of length n with distinct elements is said to be bitonic if there is an index 1in1 \le i \le n such that A[1..i]A[1..i] is sorted in the non-decreasing order and A[i+1..n]A[i + 1..n] is sorted in the non-increasing order. Which ONE of the following represents the best possible asymptotic bound for the worst-case number of comparisons by an algorithm that searches for an element in a bitonic array A?

Q42Computer Science and Information Technology · 2 marks · MSQ

Let F be the set of all functions from {1,...,n}\{1, ..., n\} to {0,1}\{0,1\}. Define the binary relation \preceq on F as follows:
f,gF,fg\forall f,g \in F, f \preceq g if and only if x{1,...,n},f(x)g(x)\forall x \in \{1, ..., n\}, f(x) \le g(x), where 010 \le 1.
Which of the following statement(s) is/are TRUE?

Q43Computer Science and Information Technology · 2 marks · MSQ

Given the following Karnaugh Map for a Boolean function F(w,x,y,z)F(w, x, y, z). Which one or more of the following Boolean expression(s) represent(s) F?

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

Consider a system of linear equations PX=QPX = Q where PR3×3P \in \mathbb{R}^{3 \times 3} and QR3×1Q \in \mathbb{R}^{3 \times 1}. Suppose P has an LU decomposition, P=LUP = LU. Which of the following statement(s) is/are TRUE?

Question 44
Q45Computer Science and Information Technology · 2 marks · MSQ

Consider a stack data structure into which we can PUSH and POP records. Assume that each record pushed in the stack has a positive integer key and that all keys are distinct.
We wish to augment the stack data structure with an O(1)O(1) time MIN operation that returns a pointer to the record with smallest key present in the stack
(1) without deleting the corresponding record, and
(2) without increasing the complexities of the standard stack operations.
Which one or more of the following approach(es) can achieve it?

Q46Computer Science and Information Technology · 2 marks · MSQ

Consider the following relational schema along with all the functional dependencies that hold on them.
R1(A,B,C,D,E):{DE,EAB,EBC}R_1(A, B, C, D, E): \{ D \to E, EA \to B, EB \to C\}.
R2(A,B,C,D):{AD,AB,CA}R_2(A, B, C, D): \{ A \to D, A \to B, C \to A\}.
Which of the following statement(s) is/are TRUE?

Q47Computer Science and Information Technology · 2 marks · MSQ

Consider a demand paging system with three frames, and the following page reference string: 1 2 3 4 5 4 1 6 4 5 1 3 2.The contents of the frames are as follows initially and after each reference (from left to right): The *-marked references cause page replacements. Which one or more of the following could be the page replacement policy/policies in use?

Question 47
Q48Computer Science and Information Technology · 2 marks · MSQ

P={P1,P2,P3,P4}P = \{P_1, P_2, P_3, P_4\} consists of all active processes in an operating system. R={R1,R2,R3,R4}R = \{R_1, R_2, R_3, R_4\} consists of single instances of distinct types of resources in the system.
The resource allocation graph has the following assignment and claim edges.
Assignment edges: R1P1,R2P2,R3P3,R4P4R_1 \to P_1, R_2 \to P_2, R_3 \to P_3, R_4 \to P_4.(the assignment edge R1P1R_1 \to P_1 means resource 𝑅1𝑅_1 is assigned to process 𝑃1𝑃_1 , and so on for others)
Claim edges: P1R2,P2R3,P3R1,P2R4,P4R2P_1 \to R_2, P_2 \to R_3, P_3 \to R_1, P_2 \to R_4, P_4 \to R_2.(the claim edge P1R2P_1 \to R_2 means process 𝑃1𝑃_1 is waiting for resource 𝑅2𝑅_2 , and so on for others).
Which of the following statement(s) is/are CORRECT?

Q49Computer Science and Information Technology · 2 marks · MSQ

Three floating point numbers X, Y, and Z are stored in three registers Rx, Ry, and Rz, respectively in IEEE 754 single precision format as given below in hexadecimal: Rx = 0xC1100000, Ry = 0x40C00000, and Rz = 0x41400000. Which of the following option(s) is/are CORRECT?

Q50Computer Science and Information Technology · 2 marks · MSQ

Which of the following Boolean algebraic equation(s) is/are CORRECT?

Q51Computer Science and Information Technology · 2 marks · MSQ

Consider two grammars G1G_1 and G2G_2 with the production rules given below: . Which of the following option(s) is/are CORRECT?

Question 51
Q52Computer Science and Information Technology · 2 marks · MSQ

Let Σ={a,b,c}\Sigma = \{a, b, c\}. For xΣx \in \Sigma^*, and αΣ\alpha \in \Sigma, let #α(x)\#_\alpha(x) denote the number of occurrences of α\alpha in x. Which one or more of the following option(s) define(s) regular language(s)?

Q53Computer Science and Information Technology · 2 marks · MSQ

Consider the database transactions T1 and T2, and data items X and Y. Which of the schedule(s) is/are conflict serializable?

Question 53
Q54Computer Science and Information Technology · 2 marks · MSQ

Consider the following relational schema:
Students (rollno:integer\underline{rollno: integer}, name: string, age: integer, cgpa: real),
Courses (courseno:integer\underline{courseno: integer}, cname: string, credits: integer),
Enrolled (rollno:integer,courseno:integer\underline{rollno: integer}, \underline{courseno: integer}, grade: string).
Which of the following options is/are correct SQL query/queries to retrieve the names of the students enrolled in course number 1470?

Q55Computer Science and Information Technology · 2 marks · NAT

Given a computing system with two levels of cache (L1 and L2) and a main memory. The first level (L1) cache access time is 1 nanosecond (ns) and the “hit rate” for L1 cache is 90% while the processor is accessing the data from L1 cache. Whereas, for the second level (L2) cache, the “hit rate” is 80% and the “miss penalty” for transferring data from L2 cache to L1 cache is 10 ns. The “miss penalty” for the data to be transferred from main memory to L2 cache is 100 ns. Then the average memory access time in this system in nanoseconds is ___________ . (rounded off to one decimal place)

Q56Computer Science and Information Technology · 2 marks · NAT

A 5-stage instruction pipeline has stage delays of 180, 250, 150, 170, and 250, respectively, in nanoseconds. The delay of an inter-stage latch is 10 nanoseconds. Assume that there are no pipeline stalls due to branches and other hazards. The time taken to process 1000 instructions in microseconds is ___________ . (rounded off to two decimal places)

Q57Computer Science and Information Technology · 2 marks · NAT

In a B+- tree where each node can hold at most four key values, a root to leaf path consists of the following nodes:
A = (49, 77, 83, -), B = (7, 19, 33, 44), C = (20*, 22*, 25*, 26*)
The *-marked keys signify that these are data entries in a leaf.
Assume that a pointer between keys 𝑘1 and 𝑘2 points to a subtree containing keys in [𝑘1,𝑘2), and that when a leaf is created, the smallest key in it is copied up into its parent.
A record with key value 23 is inserted into the B+- tree.
The smallest key value in the parent of the leaf that contains 25* is __________. (Answer in integer)

Q58Computer Science and Information Technology · 2 marks · NAT

A computer system supports a logical address space of 2322^{32} bytes. It uses two-level hierarchical paging with a page size of 4096 bytes. A logical address is divided into a b-bit index to the outer page table, an offset within the page of the inner page table, and an offset within the desired page. Each entry of the inner page table uses eight bytes. All the pages in the system have the same size. The value of b is ______________ . (Answer in integer)

Q59Computer Science and Information Technology · 2 marks · NAT

Consider the following algorithm someAlgo that takes an undirected graph G as input.

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

Let Σ={1,2,3,4}\Sigma = \{1,2,3,4\}. For xΣx \in \Sigma^*, let prod(x)\text{prod}(x) be the product of symbols in x modulo 7. We take prod(ϵ)=1\text{prod}(\epsilon) = 1, where ϵ\epsilon is the null string.
For example, prod(124)=(1×2×4)mod7=1\text{prod}(124) = (1 \times 2 \times 4) \bmod 7 = 1.
Define L={xΣprod(x)=2}L = \{x \in \Sigma^* | \text{prod}(x) = 2\}.
The number of states in a minimum state DFA for L is _________(Answer in integer)

Q61Computer Science and Information Technology · 2 marks · NAT

An application executes 6.4×1086.4 \times 10^8 number of instructions in 6.3 seconds. There are four types of instructions, the details of which are given in the table:The duration of a clock cycle in nanoseconds is _________. (rounded off to one decimal place)

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

Consider the following C program:

Question 62
Q63Computer Science and Information Technology · 2 marks · NAT

Consider the following C program:

Question 63
Q64Computer Science and Information Technology · 2 marks · NAT

A quadratic polynomial (xα)(xβ)(x − \alpha)(x − \beta) over complex numbers is said to be square invariant if (xα)(xβ)=(xα2)(xβ2)(x − \alpha)(x − \beta) = (x − \alpha^2)(x − \beta^2). Suppose from the set of all square invariant quadratic polynomials we choose one at random. The probability that the roots of the chosen polynomial are equal is _______ (rounded off to one decimal place)

Q65Computer Science and Information Technology · 2 marks · NAT

The unit interval (0,1) is divided at a point chosen uniformly distributed over (0,1) in R\mathbb{R} into two disjoint subintervals. The expected length of the subinterval that contains 0.4 is _______ (rounded off to two decimal places)