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

GATE 2024 (Session 2)

65 questions

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

Questions 11–15 of 65

Q11IO Interface1 markMCQ−0.33 if wrong
Consider a computer with a 4 MHz processor. Its DMA controller can transfer 8 bytes in 1 cycle from a device to main memory through cycle stealing at regular intervals. Which one of the following is the data transfer rate (in bits per second) of the DMA controller if 1% of the processor cycles are used for DMA?

Q12Propositional Logic1 markMCQ−0.33 if wrong
Let pp and qq be the following propositions:

pp : Fail grade can be given.
qq : Student scores more than 50%50 \% marks.

Consider the statement: "Fail grade cannot be given when student scores more than 50%50 \% marks."
Which one of the following is the CORRECT representation of the above statement in propositional logic?

Q13Function1 markMCQ−0.33 if wrong
Consider the following C program. Assume parameters to a function are evaluated from right to left.

#include <stdio.h>
int g(int p) { printf("%d", p); return p; }
int h(int q) { printf("%d", q); return q; }
void f(int x, int y) {
g(x);
h(y);
}
int main() {
f(g(10),h(20));
}
Which one of the following options is the CORRECT output of the above C program?

Q14Number System1 markMCQ−0.33 if wrong
The format of a single-precision floating-point number as per the IEEE 754 standard is:
Sign (1bit) Exponent (8 bits) Mantissa (23 bits)
Choose the largest floating-point number among the following options.
Sign Exponent Mantissa 0 0111 1111 1111 1111 1111 1111 1111 111 (A) 0 1111 1110 1111 1111 1111 1111 1111 111 (B) 0 1111 1111 1111 1111 1111 1111 1111 111 (C) 0 0111 1111 0000 0000 0000 0000 0000 000 (D)

Q15Recurrence Relation1 markMCQ−0.33 if wrong
Let T(n)T(n) be the recurrence relation defined as follows:
T(0)=1,T(1)=2, and T(n)=5T(n−1)−6T(n−2) for n≥2\begin{aligned} & T(0)=1, \\ & T(1)=2, \text { and } \\ & T(n)=5 T(n-1)-6 T(n-2) \text { for } n \geq 2 \end{aligned}
Which one of the following statements is TRUE?