GATE 2026 CS1 Question 39 – Programming and Data Structures
Consider the following code snippet in C language that computes the number of nodes in a non-empty singly linked list pointed to…
Read more →Consider the following code snippet in C language that computes the number of nodes in a non-empty singly linked list pointed to…
Read more →Let 𝑃 be the set of all integers from 1 to 15. Consider any order of insertion of the elements of 𝑃…
Read more →Let 𝐺(𝑉, 𝐸) be an undirected, edge-weighted graph with integer weights. The weight of a path is the sum of the weights…
Read more →Consider the control flow graph shown in the figure. Which one of the following options correctly lists the set of redundant expressions…
Read more →Let 𝐺(𝑉, 𝐸) be a simple, undirected, edge-weighted graph with unique edge weights. Which of the following statements about the minimum spanning…
Read more →Consider a Boolean function F with the following minterm expression: 𝐹(𝑃, 𝑄, 𝑅, 𝑆) = ∑𝑚 (1, 2, 3, 4, 5, 7,…
Read more →Consider the implementation of sliding window protocol over a lossless link, with a window size of 𝑊 frames, where each frame is…
Read more →Let 𝐺(𝑉, 𝐸) be a simple, undirected graph. A vertex cover of 𝐺 is a subset 𝑉′ ⊆𝑉 such that for every…
Read more →Consider the following pseudocode for depth-first search (DFS) algorithm which takes a directed graph 𝐺(𝑉, 𝐸) as input, where 𝑑[𝑣] and 𝑓[𝑣]…
Read more →Let 𝐿1 and 𝐿2 be two languages over a finite alphabet, such that 𝐿1 ∩𝐿2 and 𝐿2 are regular languages. Which of…
Read more →Ask a study question in English or Hindi. I will find relevant passages from our notes.