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

GATE 2025 (Session 2)

65 questions

MCQ 32 · MSQ 18 · NAT 151-mark 30 · 2-mark 35

Questions 31–35 of 65

Q31Combinational Circuit1 markMSQ
Consider the following logic circuit diagram.
Y X F
Which is/are the CORRECT option(s) for the output function FF?

One or more options are correct.

Q32Number System1 markNAT
The following two signed 2's complement numbers (multiplicand MM and multiplier QQ) are being multiplied using Booth's algorithm:

M:1100 1101 1110 1101andQ:1010 0100 1010 1010M: 1100 \, 1101 \, 1110 \, 1101 \quad \text{and} \quad Q: 1010 \, 0100 \, 1010 \, 1010

The total number of addition and subtraction operations to be performed is ________. (Answer in integer)

Q33Loop1 markNAT

int x=126,y=105;
 do {
	 if(x>y) x=x-y; 
	else y=y-x; 
      } while(x!=y); 

printf("%d",x); 
The output of the given C code segment is ________. (Answer in integer)

Q34Sequential Circuit1 markNAT
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)

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