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

GATE 2026 (Session 2)

65 questions

MCQ 35 · MSQ 11 · NAT 191-mark 30 · 2-mark 35

Questions 31–35 of 65

Q31Systems of Linear Equations1 markNAT
Consider the system of linear equations given below.

ax+y=b16x+ay=24\begin{array}{c} a x+y=b \\ 16 x+a y=24 \end{array}

Suppose the values of aa and bb are chosen such that the system of linear equations produce multiple solutions. Then the product of aa and bb is ________. (answer in integer)

Q32Sorting1 markNAT
Consider an array A=[10,7,8,19,41,35,25,31]A=[10,7,8,19,41,35,25,31]. Suppose the merge sort algorithm is executed on array AA to sort it in increasing order. The merge sort algorithm will carry out a total of 77 merge operations.

A merge operation on sorted left array LL and sorted right array RR is said to be void if the output of the merge operation is the elements of array LL followed by the elements of array RR.

The number of void merge operations among these 77 merge operations is ________. (answer in integer)

Q33Network Layer Protocol1 markNAT
If an IP network uses a subnet mask of 255.255.240.0255.255.240.0, the maximum number of IP addresses that can be assigned to network interfaces is ________. (answer in integer)

Q34Number System1 markNAT
The 3232-bit IEEE\text{IEEE} 754754 single precision representation of a number is 0xC27100000\text{xC}2710000. The number in decimal representation is ________. (rounded off to two decimal places)

Q35Lexical Analysis1 markNAT
A lexical analyzer uses the following token definitions

letter→[A−Za−z]{letter → [A-Za-z]}
digit→[0−9]{digit → [0-9]}
id→letter(letter∣digit)∗{id → letter (letter | digit)^*}
number→digit+{number → digit^{+}}
ws→(blank∣tab∣newline)+{ws → (blank | tab| newline)^{+}}

For the string given below,

x123mm78 y 7z zz5 14A8H AaYcD x1 \quad 23mm \quad 78 \quad \text{ y } \quad 7 z \quad \text { zz5 } \quad 14 A \quad 8 H \quad \text { AaYcD }

the number of tokens (excluding ws) that will be produced by the lexical analyzer is ________. (answer in integer)