GATE 2026 (Session 1) Computer Science and Information Technology (CS) Questions with Solutions

GATE 2026 (Session 1)

65 questions

MCQ 28 · MSQ 24 · NAT 131-mark 30 · 2-mark 35

Questions 31–35 of 65

Q31Normal Form1 markMSQ
In the context of relational database normalization, which of the following statements is/are true?

One or more options are correct.

Q32Discrete Mathematics1 markNAT
Consider the function f:R→Rf: \mathbb{R} \rightarrow \mathbb{R} defined as follows:

f(x)={c1ex−c2log⁡e(1x), if x>03 otherwise f(x)=\left\{\begin{array}{lr} c_{1} e^{x}-c_{2} \log _{{e}}\left(\frac{1}{x}\right), & \text { if } x\gt 0 \\ 3 & \text { otherwise } \end{array}\right.

where c1,c2∈Rc_{1}, c_{2} \in \mathbb{R}.

If ff is continuous at x=0x=0, then c1+c2=c_{1}+c_{2}= ________. (answer in integer)

Q33Binary Tree1 markNAT
The height of a binary tree is the number of edges in the longest path from the root to a leaf in the tree. The maximum possible height of a full binary tree with 2323 nodes is ________.(answer in integer)

Q34Function1 markNAT
Consider the following program in C:
 #include <stdio.h>
 void func(int i, int j) {
  if(i < j) {
  	int i = 0;
  	while (i < 10) {
  		j += 2;
  		i++;
  	}
  }
  printf("%d", i);
 }
 int main() {
  	int i = 9, j = 10;
  	func(i, j);
  	return 0;
 }
The output of the program is ________. (answer in integer)
Note: Assume that the program compiles and runs successfully.

Q35Deadlock1 markNAT
Consider a system consisting of kk instances of a resource RR, being shared by 55 processes. Assume that each process requires a maximum of two instances of resource RR and a process can request or release only one instance at a time. Further, a process can request the second instance of the resource only after acquiring the first instance.

The minimum value of kk for the system to be deadlock-free is ________. (answer in integer)