Student AI Hub

Home › GATE previous year papers › GATE CS › Programming and Data Structures

GATE CS: Programming and Data Structures previous year questions

55 real GATE CS questions on Programming and Data Structures from 2022–2026, with the official answer to each. Try them here, or practise this topic free on Student AI Hub with instant checking and your score.

Programming and Data Structures in GATE at a glance

Questions
55
1-mark / 2-mark
27 / 28
Numerical (NAT)
22
Multiple select (MSQ)
10

Questions per year: 2026: 17 · 2025: 15 · 2024: 12 · 2023: 5 · 2022: 6.

Programming and Data Structures questions

Each question is shown exactly as in the official paper. Tap “Show answer” to check yourself.

GATE 2026 Set 1 · Q.23 · 1 mark · MSQ

GATE CS Programming and Data Structures question, GATE 2026 Q.23
Show answer

Answer: B, C · see the full paper

GATE 2026 Set 1 · Q.24 · 1 mark · MSQ

GATE CS Programming and Data Structures question, GATE 2026 Q.24
Show answer

Answer: C · see the full paper

GATE 2026 Set 1 · Q.27 · 1 mark · MSQ

GATE CS Programming and Data Structures question, GATE 2026 Q.27
Show answer

Answer: C · see the full paper

GATE 2026 Set 1 · Q.33 · 1 mark · NAT

GATE CS Programming and Data Structures question, GATE 2026 Q.33
Show answer

Answer: 11 · see the full paper

GATE 2026 Set 1 · Q.34 · 1 mark · NAT

GATE CS Programming and Data Structures question, GATE 2026 Q.34
Show answer

Answer: 9 · see the full paper

GATE 2026 Set 1 · Q.39 · 2 marks · MCQ

GATE CS Programming and Data Structures question, GATE 2026 Q.39
Show answer

Answer: B · see the full paper

GATE 2026 Set 1 · Q.40 · 2 marks · MCQ

GATE CS Programming and Data Structures question, GATE 2026 Q.40
Show answer

Answer: D · see the full paper

GATE 2026 Set 1 · Q.61 · 2 marks · NAT

GATE CS Programming and Data Structures question, GATE 2026 Q.61
Show answer

Answer: 65536 · see the full paper

GATE 2026 Set 1 · Q.62 · 2 marks · NAT

GATE CS Programming and Data Structures question, GATE 2026 Q.62
Show answer

Answer: 7 · see the full paper

GATE 2026 Set 2 · Q.12 · 1 mark · MCQ

GATE CS Programming and Data Structures question, GATE 2026 Q.12
Show answer

Answer: A · see the full paper

GATE 2026 Set 2 · Q.17 · 1 mark · MCQ

GATE CS Programming and Data Structures question, GATE 2026 Q.17
Show answer

Answer: C · see the full paper

GATE 2026 Set 2 · Q.19 · 1 mark · MCQ

GATE CS Programming and Data Structures question, GATE 2026 Q.19
Show answer

Answer: A · see the full paper

GATE 2026 Set 2 · Q.30 · 1 mark · NAT

GATE CS Programming and Data Structures question, GATE 2026 Q.30
Show answer

Answer: 3 · see the full paper

GATE 2026 Set 2 · Q.49 · 2 marks · MSQ

GATE CS Programming and Data Structures question, GATE 2026 Q.49
Show answer

Answer: A, C · see the full paper

GATE 2026 Set 2 · Q.50 · 2 marks · MSQ

GATE CS Programming and Data Structures question, GATE 2026 Q.50
Show answer

Answer: A, B · see the full paper

GATE 2026 Set 2 · Q.60 · 2 marks · NAT

GATE CS Programming and Data Structures question, GATE 2026 Q.60
Show answer

Answer: 9 · see the full paper

GATE 2026 Set 2 · Q.61 · 2 marks · NAT

GATE CS Programming and Data Structures question, GATE 2026 Q.61
Show answer

Answer: 1 · see the full paper

GATE 2025 Set 1 · Q.26 · 1 mark · MSQ

GATE CS Programming and Data Structures question, GATE 2025 Q.26
Show answer

Answer: A, B · see the full paper

GATE 2025 Set 1 · Q.34 · 1 mark · NAT

GATE CS Programming and Data Structures question, GATE 2025 Q.34
Show answer

Answer: 25 · see the full paper

GATE 2025 Set 1 · Q.35 · 1 mark · NAT

GATE CS Programming and Data Structures question, GATE 2025 Q.35
Show answer

Answer: 5 · see the full paper

GATE 2025 Set 1 · Q.61 · 2 marks · NAT

GATE CS Programming and Data Structures question, GATE 2025 Q.61
Show answer

Answer: 5 · see the full paper

GATE 2025 Set 1 · Q.62 · 2 marks · NAT

GATE CS Programming and Data Structures question, GATE 2025 Q.62
Show answer

Answer: 5 · see the full paper

GATE 2025 Set 1 · Q.63 · 2 marks · NAT

GATE CS Programming and Data Structures question, GATE 2025 Q.63
Show answer

Answer: 46 · see the full paper

GATE 2025 Set 1 · Q.65 · 2 marks · NAT

GATE CS Programming and Data Structures question, GATE 2025 Q.65
Show answer

Answer: 10 to 11 · see the full paper

GATE 2025 Set 2 · Q.13 · 1 mark · MCQ

GATE CS Programming and Data Structures question, GATE 2025 Q.13
Show answer

Answer: B · see the full paper

GATE 2025 Set 2 · Q.19 · 1 mark · MCQ

GATE CS Programming and Data Structures question, GATE 2025 Q.19
Show answer

Answer: D · see the full paper

GATE 2025 Set 2 · Q.33 · 1 mark · NAT

GATE CS Programming and Data Structures question, GATE 2025 Q.33
Show answer

Answer: 21 · see the full paper

GATE 2025 Set 2 · Q.35 · 1 mark · NAT

GATE CS Programming and Data Structures question, GATE 2025 Q.35
Show answer

Answer: 4 · see the full paper

GATE 2025 Set 2 · Q.38 · 2 marks · MCQ

GATE CS Programming and Data Structures question, GATE 2025 Q.38
Show answer

Answer: A · see the full paper

GATE 2025 Set 2 · Q.45 · 2 marks · MSQ

GATE CS Programming and Data Structures question, GATE 2025 Q.45
Show answer

Answer: A · see the full paper

GATE 2025 Set 2 · Q.62 · 2 marks · NAT

GATE CS Programming and Data Structures question, GATE 2025 Q.62
Show answer

Answer: 111 · see the full paper

GATE 2025 Set 2 · Q.63 · 2 marks · NAT

GATE CS Programming and Data Structures question, GATE 2025 Q.63
Show answer

Answer: 46 · see the full paper

GATE 2024 Set 1 · Q.18 · 1 mark · MCQ

GATE CS Programming and Data Structures question, GATE 2024 Q.18
Show answer

Answer: C · see the full paper

GATE 2024 Set 1 · Q.19 · 1 mark · MCQ

GATE CS Programming and Data Structures question, GATE 2024 Q.19
Show answer

Answer: C · see the full paper

GATE 2024 Set 1 · Q.33 · 1 mark · NAT

GATE CS Programming and Data Structures question, GATE 2024 Q.33
Show answer

Answer: 6 · see the full paper

GATE 2024 Set 1 · Q.41 · 2 marks · MCQ

GATE CS Programming and Data Structures question, GATE 2024 Q.41
Show answer

Answer: D · see the full paper

GATE 2024 Set 1 · Q.43 · 2 marks · MCQ

GATE CS Programming and Data Structures question, GATE 2024 Q.43
Show answer

Answer: A · see the full paper

GATE 2024 Set 1 · Q.48 · 2 marks · MSQ

GATE CS Programming and Data Structures question, GATE 2024 Q.48
Show answer

Answer: B, D · see the full paper

GATE 2024 Set 2 · Q.13 · 1 mark · MCQ

GATE CS Programming and Data Structures question, GATE 2024 Q.13
Show answer

Answer: A · see the full paper

GATE 2024 Set 2 · Q.33 · 1 mark · MSQ

GATE CS Programming and Data Structures question, GATE 2024 Q.33
Show answer

Answer: A, B, D · see the full paper

GATE 2024 Set 2 · Q.36 · 2 marks · MCQ

GATE CS Programming and Data Structures question, GATE 2024 Q.36
Show answer

Answer: B · see the full paper

GATE 2024 Set 2 · Q.39 · 2 marks · MCQ

GATE CS Programming and Data Structures question, GATE 2024 Q.39
Show answer

Answer: A · see the full paper

GATE 2024 Set 2 · Q.42 · 2 marks · MCQ

GATE CS Programming and Data Structures question, GATE 2024 Q.42
Show answer

Answer: B · see the full paper

GATE 2024 Set 2 · Q.48 · 2 marks · MSQ

GATE CS Programming and Data Structures question, GATE 2024 Q.48
Show answer

Answer: B, C, D · see the full paper

GATE 2023 · Q.12 · 1 mark · MCQ

GATE CS Programming and Data Structures question, GATE 2023 Q.12
Show answer

Answer: B · see the full paper

GATE 2023 · Q.13 · 1 mark · MCQ

GATE CS Programming and Data Structures question, GATE 2023 Q.13
Show answer

Answer: D · see the full paper

GATE 2023 · Q.35 · 1 mark · NAT

GATE CS Programming and Data Structures question, GATE 2023 Q.35
Show answer

Answer: 7 · see the full paper

GATE 2023 · Q.47 · 2 marks · MCQ

GATE CS Programming and Data Structures question, GATE 2023 Q.47
Show answer

Answer: C · see the full paper

GATE 2023 · Q.59 · 2 marks · NAT

GATE CS Programming and Data Structures question, GATE 2023 Q.59
Show answer

Answer: 8 · see the full paper

GATE 2022 · Q.15 · 1 mark · MCQ

GATE CS Programming and Data Structures question, GATE 2022 Q.15
Show answer

Answer: A · see the full paper

GATE 2022 · Q.21 · 1 mark · MCQ

GATE CS Programming and Data Structures question, GATE 2022 Q.21
Show answer

Answer: D · see the full paper

GATE 2022 · Q.28 · 1 mark · NAT

GATE CS Programming and Data Structures question, GATE 2022 Q.28
Show answer

Answer: 509 · see the full paper

GATE 2022 · Q.43 · 2 marks · MCQ

GATE CS Programming and Data Structures question, GATE 2022 Q.43
Show answer

Answer: A · see the full paper

GATE 2022 · Q.44 · 2 marks · MCQ

GATE CS Programming and Data Structures question, GATE 2022 Q.44
Show answer

Answer: A · see the full paper

GATE 2022 · Q.62 · 2 marks · NAT

GATE CS Programming and Data Structures question, GATE 2022 Q.62
Show answer

Answer: 0 · see the full paper

Practise Programming and Data Structures with instant checking

On Student AI Hub you can practise GATE previous year questions topic by topic, free, with the official key and your score. No AI credits used.

Start free

Other GATE CS topics