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 61–65 of 65

Q61Pipeline Processor2 marksNAT
An application executes 6.4×1086.4 \times 10^8 number of instructions in 6.3 seconds. There are four types of instructions, the details of which are given in the table. The duration of a clock cycle in nanoseconds is _________. (rounded off to one decimal place) Instruction typeClock cycles required per instruction (CPI)Number of instructions executedBranch22.25×108Load51.20×108Store41.65×108Arithmetic31.30×108\begin{array}{|c|c|c|} \hline \text{Instruction type} & \text{Clock cycles required per instruction (CPI)} & \text{Number of instructions executed} \\ \hline \text{Branch} & 2 & 2.25 \times 10^8 \\ \text{Load} & 5 & 1.20 \times 10^8 \\ \text{Store} & 4 & 1.65 \times 10^8 \\ \text{Arithmetic} & 3 & 1.30 \times 10^8 \\ \hline \end{array}

Q62Array and Pointer2 marksNAT
Consider the following C program:

#include <stdio.h>

int main(){
    int a;
    int arr[5] = {30,50,10};
    int *ptr;
    ptr = &arr[0] + 1;
    a = *ptr;
    (*ptr)++;
    ptr++;
    printf("%d", a + (*ptr) + arr[1]);
    return 0;
}
The output of the above program is ___________. (Answer in integer)

Q63Function2 marksNAT
Consider the following C program:

#include <stdio.h>

int g(int n) {
    return (n+10);
}

int f(int n) {
    return g(n*2);
}

int main() {
    int sum, n;
    sum=0;
    for (n=1; n<3; n++)
        sum += g(f(n));
    printf ("%d", sum);
    return 0;
}
The output of the given C program is ________. (Answer in integer)

Q64Probability Theory2 marksNAT
A quadratic polynomial (x−α)(x−β)(x - \alpha)(x - \beta) over complex numbers is said to be square invariant if (x−α)(x−β)=(x−α2)(x−β2)(x - \alpha)(x - \beta) = (x - \alpha^2)(x - \beta^2). Suppose from the set of all square invariant quadratic polynomials we choose one at random.

The probability that the roots of the chosen polynomial are equal is ______. (rounded off to one decimal place)

Q65Probability Theory2 marksNAT
The unit interval (0,1)(0, 1) is divided at a point chosen uniformly distributed over (0,1)(0,1) in R\mathbb{R} into two disjoint subintervals.

The expected length of the subinterval that contains 0.4 is ___________. (rounded off to two decimal places)