Crack
GATE
C
G
Topic
Programming in C
Programming and Data Structures
0
/ 41 done
Questions per paper
All
MCQ
MSQ
NAT
2015 to 2026. Point at a year to read it.
0
1
2
3
4
5
2015
2019
2021
2023
2025
2026
Show as a table
Year
All
MCQ
MSQ
NAT
2015
4
2
0
2
2018
0
0
0
0
2019
5
1
0
4
2020
2
0
0
2
2021
2
1.5
0
0.5
2022
3
3
0
0
2023
1
0
0
1
2024
2.5
1.5
1
0
2025
2.5
0.5
0
2
2026
2
1
0
1
1
CS 2026 Set 1 · 1 mark · NAT · Moderate
Consider the following program in C:
2
CS 2026 Set 2 · 1 mark · MCQ · Easy
In C runtime environment, which one of the following is stored in heap?
3
CS 2026 Set 2 · 1 mark · MCQ · Moderate
Consider the following three ANSI-C programs, P1, P2, and P3.
4
CS 2026 Set 2 · 2 marks · NAT · Easy
Consider the following ANSI-C program.
5
CS 2025 Set 1 · 1 mark · NAT · Easy
#include <stdio.h> void foo(int *p, int x){ *p=x; } int main(){ int *z; int a = 20, b = 25; z = &a; foo(z,b); printf("%d",a); return 0; }
6
CS 2025 Set 1 · 2 marks · NAT · Easy
Consider the following C program:
7
CS 2025 Set 2 · 1 mark · MCQ · Moderate
Consider the following C program:
8
CS 2025 Set 2 · 1 mark · NAT · Easy
int x=126,y=105; do { if(x>y) x=x-y; else y=y-x; } while(x!=y);
9
CS 2025 Set 2 · 2 marks · NAT · Easy
Consider the following C program:
10
CS 2024 Set 1 · 1 mark · MCQ · Easy
Consider the following C program:
11
CS 2024 Set 1 · 2 marks · MSQ · Moderate
Consider the following C function definition.
12
CS 2024 Set 2 · 1 mark · MCQ · Easy
Consider the following C program. Assume parameters to a function are evaluated from right to left.
13
CS 2024 Set 2 · 1 mark · MSQ · Easy
Consider the following C function definition.
14
CS 2024 Set 2 · 2 marks · MCQ · Easy
What is the output of the following C program?
15
CS 2023 · 1 mark · NAT · Easy
The integer value printed by the ANSI-C program given below is ____.
16
CS 2022 · 1 mark · MCQ · Easy
What is printed by the following ANSI C program?
17
CS 2022 · 2 marks · MCQ · Moderate
What is printed by the following ANSI C program?
18
CS 2022 · 2 marks · MCQ · Moderate
What is printed by the following ANSI C program?
19
CS 2021 Set 1 · 2 marks · MCQ · Moderate
Consider the following ANSI C program.
20
CS 2021 Set 1 · 2 marks · NAT · Easy
Consider the following ANSI C function:
21
CS 2021 Set 2 · 1 mark · MCQ · Moderate
Consider the following ANSI C program.
22
CS 2021 Set 2 · 2 marks · MCQ · Moderate
Consider the following ANSI C program:
23
CS 2020 · 1 mark · NAT · Moderate
Consider the following C program.
24
CS 2020 · 2 marks · NAT · Moderate
Consider the following C functions.
25
CS 2019 · 1 mark · NAT · Moderate
Consider the following C program:
26
CS 2019 · 1 mark · NAT · Easy
Consider the following C program:
27
CS 2019 · 2 marks · MCQ · Moderate
Consider the following C program:
28
CS 2019 · 2 marks · NAT · Easy
Consider the following C program:
29
CS 2019 · 2 marks · NAT · Moderate
Consider the following C program:
30
CS 2015 Set 1 · 1 mark · NAT · Moderate
The output of the following C program is ______.
31
CS 2015 Set 1 · 2 marks · NAT · Moderate
Consider the following C program segment.
32
CS 2015 Set 1 · 2 marks · MCQ · Moderate
What is the output of the following C code? Assume that the address of
x
x
x
is 2000 (in decimal) and an integer requires four bytes of memory.
33
CS 2015 Set 1 · 2 marks · MCQ · Moderate
Consider the following pseudo code, where
x
x
x
and
y
y
y
are positive integers.
34
CS 2015 Set 2 · 1 mark · MCQ · Moderate
Consider the following function written in the C programming language.
35
CS 2015 Set 2 · 1 mark · NAT · Moderate
Consider the following C function.
36
CS 2015 Set 2 · 1 mark · MCQ · Easy
A software requirements specification (SRS) document should avoid discussing which one of the following?
37
CS 2015 Set 2 · 2 marks · MCQ · Moderate
Which one of the following assertions concerning code inspection and code walkthrough is true?
38
CS 2015 Set 3 · 1 mark · MCQ · Easy
Consider the following C program segment.
39
CS 2015 Set 3 · 2 marks · NAT · Moderate
Consider the following C program.
40
CS 2015 Set 3 · 2 marks · NAT · Moderate
Consider the following C program.
41
CS 2015 Set 3 · 2 marks · NAT · Moderate
Consider the following C program: