Skip to main content
GATE CSE

Linked List PYQs (GATE CSE Data Structures: Linked List previous year questions)

The frequency analysis counts 22 GATE CSE questions on Linked List between 1987–2026. 7 of them since 2016. See how it scores below, then practise Data Structures previous year questions.

  • 22questions in the topic analysis
  • 1987–2026years it has appeared
  • very highhistorical value tier
  • 16practice questions on Linked List

About Linked List

Frequency
0.55
Recurrence
1.00
Recentness
0.32
Solvability
0.77

Combined topic value score 63.8/100 — the same transparent four-part weighting used across the archive, not a hand-assigned priority. VERY HIGH

Difficulty mix
normal11
unknown9
easy2
Question type mix
MCQ16
descriptive5
NAT1
Other exam streams
GATE IT2

Practice Questions

These 16 questions are previous year questions on Linked List, checked and linked to this topic.

Question 1 of 5
GATE CSE 2025Data StructuresStacks, Queues, Linked Lists & Arrays2 marks

Let LIST\mathrm{LIST} be a datatype for an implementation of linked list defined as follows:

  1. typedef struct list {
  2. int data;
  3. struct list *next;
  4. } LIST;

Suppose a program has created two linked lists, L1L1 and L2L2, whose contents are given in the figure below (code for creating L1L1 and L2L2 is not provided here). L1L1 contains 9 nodes, and L2L2 contains 7 nodes.

Consider the following C program segment that modifies the list L1L1. The number of nodes that will be there in L1L1 after the execution of the code segment is __________. (Answer in integer)

  1. int find (int query, LIST *list) {
  2. while (list != NULL) {
  3. if(list->data == query) return 1 ;
  4. list = list->next;
  5. }
  6. return 0 ;
  7. }
  8. int main (){
  9. ... ... ...
  10. ptr1=L1; ptr2=L2;
  11. while (ptr1->next != NULL){
  12. query = ptr1->next->data;
  13. if (find (query, L2))
  14. ptr1->next = ptr1->next->next;
  15. else ptr1 = ptr1->next;
  16. }
  17. ... .... ...
  18. return 0;
  19. }

Answer at least one question to submit.

Help us improve: tell us what to fix or add

Sign in to send feedback (it takes under a minute), or create a free account.