Computer Science and Information Technology
2024 · Paper 2
Take it one question at a time. Try an answer, then check your understanding.
Complete GATE CSE 2024 Paper 2 overview, original pages and practice · Timed previous-paper practice
Questions 13–15 of 65. Imported answers require review unless explicitly marked reviewed.
Question 13
Open questionCSMCQ1 markNeeds review
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?
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 14
Open questionCSMCQ1 markNeeds review
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.
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answerQuestion 15
Open questionCSMCQ1 markNeeds review
Let
be the recurrence relation defined as follows:
and
for
Which one of the following statements is TRUE?
Your answerChoose one option.
Log in to check the answer
You can attempt this question now. Sign in to view the answer key, explanations and discussion.Log in to check answer