GATE 2026 CS1 Question 34 – Programming and Data Structures
Consider the following program in C: #include <stdio.h> void func(int i, int j) { if(i < j) { int i = 0;…
Read more →Consider the following program in C: #include <stdio.h> void func(int i, int j) { if(i < j) { int i = 0;…
Read more →Consider a system consisting of 𝑘 instances of a resource 𝑅, being shared by 5 processes. Assume that each process requires a…
Read more →Consider the real valued variables X, Y and Z represented using the IEEE 754 single- precision floating-point format. The binary representations of…
Read more →Consider a 2-bit saturating up/down counter that performs the saturating up count when the input P is 0, and the saturating down…
Read more →The size of the physical address space of a processor is 232 bytes. The capacity of a cache memory unit is 223…
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 →Ask a study question in English or Hindi. I will find relevant passages from our notes.