GATE DA Programming, Data Structures and Algorithms PYQ analysis
Topic-wise weightage of Programming, Data Structures and Algorithms from the 3 official GATE DA papers on this site (2024–2026), with every question listed under the syllabus topics it tests.
16
average marks per paper
31
PYQs (2024–2026)
6 / 7
syllabus topics asked
#2 of 8
subjects by marks
Programming, Data Structures and Algorithms weightage by year
Per paper; a year with two sessions shows their average. Of the 31 questions, 15 MCQ, 9 MSQ, 7 NAT; 17 carry 2 marks.
| Measure | 2024 | 2025 | 2026 | Average |
|---|---|---|---|---|
| Marks | 20 | 14 | 14 | 16 |
| Questions | 13 | 9 | 9 | 10.3 |
Programming, Data Structures and Algorithms topic-wise weightage
Every topic of the official syllabus, most marks first. Year columns show marks per paper; marks count each question once, under its main topic, while “Questions” also counts supporting topics.
| Topic | 2024 | 2025 | 2026 | Marks | Questions | Share |
|---|---|---|---|---|---|---|
| Programming in Python | 6 | 5 | 7 | 18 | 10 | |
| Basic data structures: stacks, queues, linked lists, trees and hash tables | 6 | 3 | 1 | 10 | 9 | |
| Basic graph algorithms: traversals and shortest path | 3 | 4 | 2 | 9 | 5 | |
| Basic sorting algorithms: selection sort, bubble sort and insertion sort | 2 | 1 | 2 | 5 | 4 | |
| Search algorithms: linear search and binary search | 2 | 1 | 1 | 4 | 3 | |
| Divide and conquer: merge sort and quicksort | 1 | – | 1 | 2 | 2 | |
| Introduction to graph theoryNot asked yet | – | – | – | – | – |
Programming, Data Structures and Algorithms PYQs by topic
Newest first. A question can appear under up to three topics; one filed under another subject is marked with that subject.
Programming in Python
10 questions · 18 marks as main topic · asked in 3 of 3 years · last in 2026
- 2026 · Q16Python mutable default argument output1M · MCQ
- 2026 · Q39Number of calls made by a Fibonacci-like recursion2M · MCQ
- 2026 · Q50Python closures sharing an enclosing list2M · MSQ
- 2026 · Q58Total swaps made by repeated recursive bubble passes2M · NAT
- 2025 · Q23Python lists: which call gives A = [1, 2, 3, 4, 5, 6]?1M · MCQ
- 2025 · Q47Python sets in a while loop: which set ends up with "this"?2M · MCQ
- 2025 · Q63Python recursion: value of f(15, 10)2M · NAT
- 2024 · Q38Output of a recursive count over a child dictionary2M · MCQ
- 2024 · Q39Trace computeS on an array2M · MCQ
- 2024 · Q41What a recursive swap function does to a list2M · MCQ
Basic data structures: stacks, queues, linked lists, trees and hash tables
9 questions · 10 marks as main topic · asked in 3 of 3 years · last in 2026
- 2026 · Q25Binary tree from preorder and inorder traversals1M · MSQ
- 2025 · Q18Hashing with linear probing: h(x) = 3x mod 101M · MCQ
- 2025 · Q64Stack pseudocode: value of sum2M · NAT
- 2024 · Q16Match FIFO, lookup and LIFO with data structures1M · MCQ
- 2024 · Q21Expected probes to insert into an open-address hash table1M · MCQ
- 2024 · Q28Traversal pairs that rebuild a full binary tree1M · MSQ
- 2024 · Q32Trace operations on a double-ended queue1M · NAT
- 2024 · Q38Output of a recursive count over a child dictionarysupporting · 2M · MCQ
- 2024 · Q52Bounds on height, nodes and leaves of a binary tree2M · MSQ
Basic graph algorithms: traversals and shortest path
5 questions · 9 marks as main topic · asked in 3 of 3 years · last in 2026
- 2026 · Q40Reachability in a graph and its reverse2M · MCQ
- 2025 · Q58Shortest paths: which edges cannot be in G?2M · MSQ
- 2025 · Q65DFS with decreasing adjacency lists: vertices after 502M · NAT
- 2024 · Q14Edge type in DFS when explored from nearer vertex1M · MCQ
- 2024 · Q51Valid topological orderings of a DAG2M · MSQ
Basic sorting algorithms: selection sort, bubble sort and insertion sort
4 questions · 5 marks as main topic · asked in 3 of 3 years · last in 2026
- 2026 · Q49Comparisons by bubble sort and insertion sort on a nearly sorted array2M · MSQ
- 2026 · Q58Total swaps made by repeated recursive bubble passessupporting · 2M · NAT
- 2025 · Q29Insertion sort with exactly two swaps: possible values of x1M · MSQ
- 2024 · Q45Sorting algorithm that sorts [4, 3, 2, 1, 5] in two passes2M · MCQ
Search algorithms: linear search and binary search
3 questions · 4 marks as main topic · asked in 3 of 3 years · last in 2026
Divide and conquer: merge sort and quicksort
2 questions · 2 marks as main topic · asked in 2 of 3 years · last in 2026