GATE CSE 2027 · Subject mock test · Updated 29 November 2026
GATE CSE Data Structures Mock Test 2027: 20 Free Questions with Solutions and Score Guide
20 original GATE-style questions on Programming in C, recursion, arrays, stacks, queues, linked lists, trees, BSTs, binary heaps and graphs, worth 30 marks, with worked solutions, an answer key and a score guide. Then continue with the free GATE CSE 2027 Test Series by Piyush Wairale (IIT Madras).

20 questions · 30 marks40-minute timerMCQ + MSQ + NATFree test series

GATE CSE Data Structures Mock Test 2027 with 20 free questions on C, trees, heaps and stacks

Quick answer: GATE CSE Data Structures Mock Test 2027 on this page: 20 original questions for 30 marks (10 one-mark and 10 two-mark) covering Programming in C, recursion, arrays, stacks, queues, linked lists, trees, binary search trees, binary heaps and graphs, with GATE negative marking and a worked solution for every question. Attempt it in 40 minutes and score it with the answer key below. For 50+ more subject-wise tests and 10 full-length mocks, use the free GATE CSE 2027 Test Series by Piyush Wairale.

Free GATE CSE 2027 Test Series: 50+ subject-wise tests, 10 full mocks and PYQ PDFs

100% free · By Piyush Wairale (IIT Madras)

Practise Programming and Data Structures and every other GATE CS subject, free

Subject-wise tests
50+
Every GATE CS subject, test by test
Full-length mocks
10
65 questions, 100 marks, real GATE pattern
GATE CSE PYQs
PDF + solutions
Previous year papers with worked solutions
Price
Free
Enrol free on piyushwairale.com
  • 50+ subject-wise tests covering the full GATE CSE 2027 syllabus, including Programming in C, recursion, stacks, queues, linked lists, trees, heaps and graphs.
  • 10 full-length mock tests on the real GATE CS pattern: 65 questions, 100 marks, 3 hours, with MCQ, MSQ and NAT questions.
  • GATE CSE previous year question (PYQ) PDFs with solutions, so you learn exactly how IIT examiners frame questions.
  • Detailed solutions and performance analysis after every test to find strengths and weak areas.

Start the free GATE CSE 2027 Test Series

How to take this GATE CSE Data Structures Mock Test

Treat this page like a real sectional test. Set a 40-minute timer, keep a rough sheet ready and use only a basic calculator, because GATE gives you an on-screen virtual calculator and nothing else. Do not open any answer until the timer ends. This test is part of the Free GATE CSE 2027 Test Series cluster on PiyushAI, and the full set of Programming and Data Structures sectional tests is in the GATE CSE 2027 Test Series on piyushwairale.com.

  • Q1 to Q10 carry 1 mark each and Q11 to Q20 carry 2 marks each, for a total of 30 marks.
  • The mix is 11 MCQ, 4 MSQ and 5 NAT, close to the format balance of recent GATE CS papers.
  • Questions get harder as you go: the first ten test core ideas, the last ten test longer tracing and reasoning.
  • Write your answers on paper first, then check them against the answer key table.
Question type 1-mark question 2-mark question Negative marking
MCQ (one correct option) +1 if correct +2 if correct minus 1/3 (1-mark), minus 2/3 (2-mark)
MSQ (one or more correct) +1 only if you select exactly all correct options +2 only if exactly all correct None, and no partial marks
NAT (type a number) +1 if within the accepted range +2 if within the accepted range None
Not attempted 0 0 None

How to self-score: add the marks of every correct answer, then subtract 1/3 for each wrong 1-mark MCQ and 2/3 for each wrong 2-mark MCQ. Wrong MSQ and NAT answers simply score zero. The score guide further down tells you what your total means.

Data Structures syllabus and weightage for GATE CSE 2027

The official GATE CS 2027 syllabus lists this section as: Programming in C. Recursion. Arrays, stacks, queues, linked lists, trees, binary search trees, binary heaps, graphs. Programming and Data Structures usually carries about 8 to 12 marks in recent GATE CS papers (approximate, varies by year), which makes it one of the highest-weight technical subjects. For theory, formulas and solved examples, read the GATE CSE Programming and Data Structures 2027 guide, and for the full paper structure see the GATE CS 2027 syllabus and exam pattern.

Syllabus topic Questions in this mock Typical GATE weight
Programming in C (pointers, strings, static variables) Q1, Q11, Q12, Q20 Very high
Recursion Q10, Q19 High
Arrays Q2, Q20 Medium
Stacks and queues Q3, Q4, Q13 High
Linked lists Q5, Q14 Medium
Trees and binary search trees Q6, Q9, Q15 Very high
Binary heaps Q7, Q16, Q17 High
Graphs (as data structures) Q8, Q18 Medium

Graph traversal algorithms (BFS, DFS, shortest paths) and hashing are listed under Algorithms in the GATE CS syllabus, so this mock tests graphs only as a data structure. Practise those in the GATE CSE Algorithms Mock Test.

GATE CSE Data Structures Mock Test: 20 questions

All code is standard C. Assume sizeof(int) = 4, that every header needed (stdio.h, string.h) is included, and that every program compiles and runs without errors. Open an answer only after you have written your own.

Section 1: one-mark questions (Q1 to Q10)

Q1. Programming in C: Pointers and precedence (MCQ) · 1 mark, minus 1/3 if wrong

What does the following C code print?

int a[] = {5, 10, 15};
int *p = a;
int x = *p++;
int y = (*p)++;
printf("%d %d %d", x, y, a[1]);

(A) 5 10 11
(B) 5 11 11
(C) 10 10 11
(D) 5 10 10

Show answer

Answer: (A) 5 10 11. Postfix ++ binds tighter than unary *, so *p++ means *(p++): x gets a[0] = 5 and p moves to a[1]. Then (*p)++ increments the value at a[1], but the postfix form returns the old value, so y = 10 and a[1] becomes 11. Output: 5 10 11.

Q2. Arrays: Row-major addressing (NAT) · 1 mark, no negative marking

A C array is declared as int A[10][20]; with sizeof(int) = 4 bytes and stored in row-major order starting at address 1000. What is the address of A[6][15]?

Show answer

Answer: 1540. Elements before A[6][15] = 6 full rows of 20 plus 15 = 6 × 20 + 15 = 135. Address = 1000 + 135 × 4 = 1000 + 540 = 1540.

Q3. Stacks: Infix to postfix (MCQ) · 1 mark, minus 1/3 if wrong

Using the usual precedence (* and / above + and -, all left-associative), what is the postfix form of a + b * (c - d) / e?

(A) a b c d – * e / +
(B) a b c d – e / * +
(C) a b + c d – * e /
(D) a b c – d * e / +

Show answer

Answer: (A) a b c d – * e / +. * and / have equal precedence and associate left, so b * (c – d) / e means (b * (c – d)) / e. Postfix of b * (c – d) is b c d – *; dividing by e gives b c d – * e /; adding a in front gives a b c d – * e / +. Option (B) corresponds to b * ((c – d) / e), a different expression tree.

Q4. Queues: Circular queue (MCQ) · 1 mark, minus 1/3 if wrong

A circular queue is stored in an array of size 8 (indices 0 to 7). front holds the index of the first element and rear holds the index of the next free slot, and one slot is always kept empty to tell full from empty. Currently front = 5 and rear = 2. How many elements are in the queue?

(A) 3
(B) 4
(C) 5
(D) 6

Show answer

Answer: (C) 5. Count = (rear − front + n) mod n = (2 − 5 + 8) mod 8 = 5. The elements sit at indices 5, 6, 7, 0 and 1. A common slip is to compute front − rear = 3.

Q5. Linked lists: Operation cost (MCQ) · 1 mark, minus 1/3 if wrong

A singly linked list keeps both a head pointer and a tail pointer, and each node stores only a next pointer. Which operation cannot be done in O(1) time in the worst case?

(A) Insert a node at the head
(B) Insert a node at the tail
(C) Delete the head node
(D) Delete the tail node

Show answer

Answer: (D) Delete the tail node. To delete the tail you must make the second-last node the new tail and set its next to NULL. With only next pointers, finding the second-last node needs a walk from the head, which is O(n). The other three operations only touch the head or the tail node and are O(1).

Q6. Trees: Node counting (NAT) · 1 mark, no negative marking

A binary tree has exactly 10 nodes with two children and exactly 5 nodes with one child. How many nodes does the tree have in total?

Show answer

Answer: 26. In every binary tree, leaves = (nodes with two children) + 1 = 10 + 1 = 11. Total = 10 + 5 + 11 = 26. Nodes with one child do not change the leaf count.

Q7. Binary heaps: Heap property (MCQ) · 1 mark, minus 1/3 if wrong

Which of the following arrays (index 0 is the root, children of index i are 2i + 1 and 2i + 2) is a valid max-heap?

(A) 50, 30, 40, 10, 20, 35, 25
(B) 50, 40, 30, 45, 20, 10, 25
(C) 50, 30, 40, 35, 20, 45, 25
(D) 40, 50, 30, 10, 20, 25, 35

Show answer

Answer: (A). In (A), 50 ≥ 30 and 40; 30 ≥ 10 and 20; 40 ≥ 35 and 25, so every parent is at least its children. (B) fails because 45 is a child of 40. (C) fails because 45 is a child of 40 (index 2). (D) fails at the root, since 50 is a child of 40.

Q8. Graphs: Representations (MSQ: one or more correct) · 1 mark, no negative marking

G is a simple undirected graph with V vertices and E edges. Which of the following statements is/are TRUE?

(A) The adjacency matrix of G is symmetric
(B) The adjacency matrix of G contains exactly 2E ones
(C) An adjacency list for G always needs Θ(V2) space
(D) With an adjacency matrix, listing all neighbours of a vertex v takes O(deg(v)) time

Show answer

Answer: (A) and (B). Each undirected edge {u, v} sets both M[u][v] and M[v][u], so the matrix is symmetric and has 2E ones (no self-loops in a simple graph). An adjacency list needs Θ(V + E) space, not Θ(V2). Listing neighbours from a matrix means scanning a whole row, which is Θ(V) whatever the degree.

Q9. Binary search trees: Traversals (MCQ) · 1 mark, minus 1/3 if wrong

The preorder traversal of a binary search tree is 40, 20, 10, 30, 60, 50, 70. What is its postorder traversal?

(A) 10, 30, 20, 50, 70, 60, 40
(B) 10, 20, 30, 40, 50, 60, 70
(C) 30, 10, 20, 70, 50, 60, 40
(D) 10, 30, 20, 60, 50, 70, 40

Show answer

Answer: (A). The first preorder key 40 is the root. Keys smaller than 40 (20, 10, 30) form the left subtree with root 20, children 10 and 30. Keys larger (60, 50, 70) form the right subtree with root 60, children 50 and 70. Postorder is left, right, root: 10, 30, 20, 50, 70, 60, 40. Option (B) is the inorder (sorted) order.

Q10. Recursion: Tracing (MCQ) · 1 mark, minus 1/3 if wrong

What does g(97531) return?

int g(int n) {
    if (n == 0) return 0;
    return (n % 10) + g(n / 10);
}

(A) 25
(B) 24
(C) 9
(D) 1

Show answer

Answer: (A) 25. g adds the last digit and recurses on the number without that digit, so it returns the digit sum: 1 + 3 + 5 + 7 + 9 = 25.

Section 2: two-mark questions (Q11 to Q20)

Q11. Programming in C: Static variables and recursion (MCQ) · 2 marks, minus 2/3 if wrong

What does f(5) return?

int f(int n) {
    static int c = 0;
    if (n <= 0) return c;
    c += n;
    int r = f(n - 2);
    return r + c;
}

(A) 36
(B) 27
(C) 22
(D) 18

Show answer

Answer: (A) 36. c is static, so there is one copy shared by all calls. Going down: f(5) makes c = 5, f(3) makes c = 8, f(1) makes c = 9, and f(−1) returns 9. Every return adds c after the recursive call has finished, so it adds the final value 9 each time: f(1) = 9 + 9 = 18, f(3) = 18 + 9 = 27, f(5) = 27 + 9 = 36. Adding the value of c at the time of each call (5, 8, 9) is the classic trap that leads to 22 or 27.

Q12. Programming in C: Strings, sizeof and strlen (NAT) · 2 marks, no negative marking

What does the following code print?

char s[] = "GATE2027";
char *p = s + 2;
printf("%d", (int)(sizeof(s) + strlen(p)) + (p[2] - '0'));
Show answer

Answer: 17. sizeof(s) counts the array including the terminating ‘\0’: 8 characters + 1 = 9. p points to “TE2027”, so strlen(p) = 6. p[2] is the character ‘2’, and ‘2’ − ‘0’ = 2. Total = 9 + 6 + 2 = 17.

Q13. Stacks and queues: Properties (MSQ: one or more correct) · 2 marks, no negative marking

Which of the following statements is/are TRUE?

(A) A queue can be implemented with two stacks so that any sequence of m enqueue and dequeue operations takes O(m) total time
(B) A stack can be implemented using two queues
(C) A circular queue in an array of size n that keeps one slot empty can hold n elements at the same time
(D) A valid postfix expression can be evaluated with a single stack without any parentheses

Show answer

Answer: (A), (B) and (D). (A) is true: push onto an in-stack, and pop from an out-stack, refilling it from the in-stack only when it is empty; each element moves at most once, so the amortised cost is O(1). (B) is true: keep elements in one queue and, on push, rotate so the newest element is at the front (or move elements on pop). (C) is false: keeping one slot empty means the capacity is n − 1. (D) is true: postfix needs no parentheses, because operator order is fixed by position.

Q14. Linked lists: Code tracing (MCQ) · 2 marks, minus 2/3 if wrong

The list 1 → 2 → 3 → 4 → 5 → 6 → 7 is passed to h (p points to node 1). What does h return?

struct node { int val; struct node *next; };

int h(struct node *p) {
    if (p == NULL || p->next == NULL) return 0;
    return p->val * p->next->val + h(p->next->next);
}

(A) 44
(B) 30
(C) 56
(D) 72

Show answer

Answer: (A) 44. h multiplies each pair of adjacent nodes and jumps two nodes ahead: 1 × 2 + 3 × 4 + 5 × 6 + h(node 7). At node 7, next is NULL, so it returns 0. Total = 2 + 12 + 30 = 44.

Q15. Binary search trees: Insertion order (NAT) · 2 marks, no negative marking

All 24 permutations of the keys 1, 2, 3, 4 are inserted, one permutation at a time, into an initially empty binary search tree. For how many permutations does the resulting BST have height 3? (A single node has height 0.)

Show answer

Answer: 8. Height 3 with 4 nodes means the tree is a chain: every insert must go one level deeper. That happens only when each new key is either the smallest or the largest of the keys still to be inserted. The first key must be 1 or 4, the second must be the min or max of the remaining three, and so on: 2 × 2 × 2 × 1 = 8 permutations (2n−1 for n keys).

Q16. Binary heaps: Build-heap (MCQ) · 2 marks, minus 2/3 if wrong

The array [4, 10, 3, 5, 1, 8, 9, 2] (index 0 is the root) is converted into a max-heap using the bottom-up build-heap method (sift down from the last non-leaf to the root). What is the resulting array?

(A) 10, 5, 9, 4, 1, 3, 8, 2
(B) 10, 5, 9, 4, 1, 8, 3, 2
(C) 10, 9, 5, 4, 1, 8, 3, 2
(D) 10, 5, 9, 2, 1, 8, 3, 4

Show answer

Answer: (B). n = 8, so the last non-leaf is index 3. Index 3 (5) has child 2: no change. Index 2 (3) has children 8 and 9: swap with 9 to get [4, 10, 9, 5, 1, 8, 3, 2]. Index 1 (10) has children 5 and 1: no change. Index 0 (4) has children 10 and 9: swap with 10, then 4 at index 1 has children 5 and 1: swap with 5, then 4 at index 3 has child 2: stop. Result [10, 5, 9, 4, 1, 8, 3, 2]. Option (A) is what you get by inserting the keys one by one, which is a different method.

Q17. Binary heaps: Structure (MSQ: one or more correct) · 2 marks, no negative marking

A max-heap holds 15 distinct keys in an array with 1-based indexing (root at index 1, children of i at 2i and 2i + 1). Which of the following statements is/are ALWAYS TRUE?

(A) The smallest key is at an index between 8 and 15
(B) The second largest key is at index 2 or index 3
(C) The third largest key is at index 2 or index 3
(D) The height of the heap is 3 (a single node has height 0)

Show answer

Answer: (A), (B) and (D). (A) True: the smallest distinct key cannot be a parent, so it is a leaf, and the leaves are indices 8 to 15. (B) True: the second largest key has only the maximum above it, so its parent is the root. (C) False: the third largest key may be a child of the second largest, for example at index 4 when the second largest is at index 2. (D) True: height = ⌊log2 15⌋ = 3.

Q18. Graphs: Adjacency list space (NAT) · 2 marks, no negative marking

An undirected graph with 12 vertices and 30 edges is stored as an adjacency list. The array of head pointers uses 8 bytes per vertex and every list node uses 8 bytes. How many bytes does the whole representation use?

Show answer

Answer: 576. Head array = 12 × 8 = 96 bytes. In an undirected graph each edge appears in two lists, so there are 2 × 30 = 60 list nodes = 480 bytes. Total = 96 + 480 = 576 bytes.

Q19. Recursion: Output order (MCQ) · 2 marks, minus 2/3 if wrong

What does the call pr(4) print?

void pr(int n) {
    if (n > 0) {
        pr(n - 1);
        printf("%d", n);
        pr(n - 2);
    }
}

(A) 1231412
(B) 1234121
(C) 4213121
(D) 12314

Show answer

Answer: (A) 1231412. Build the outputs bottom up. pr(0) and pr(−1) print nothing. pr(1) = pr(0) “1” pr(−1) = “1”. pr(2) = pr(1) “2” pr(0) = “12”. pr(3) = pr(2) “3” pr(1) = “1231”. pr(4) = pr(3) “4” pr(2) = “1231” + “4” + “12” = “1231412”.

Q20. Programming in C: 2D arrays and pointers (MSQ: one or more correct) · 2 marks, no negative marking

Consider the declarations below. Which of the following expressions evaluate to 7?

int a[3][4] = {{1, 2, 3, 4}, {5, 6, 7, 8}, {9, 10, 11, 12}};
int (*q)[4] = a;
int *r = &a[0][0];

(A) *(*(q + 1) + 2)
(B) *(r + 6)
(C) **(q + 1) + 2
(D) *(r + 1 * 3 + 2)

Show answer

Answer: (A), (B) and (C). q is a pointer to a row of 4 ints, so q + 1 is row 1 and *(q + 1) + 2 points to a[1][2] = 7: (A) is true. r walks the array element by element in row-major order; r + 6 is element 1 × 4 + 2 = a[1][2] = 7: (B) is true. **(q + 1) is a[1][0] = 5, and 5 + 2 = 7: (C) is true (it adds to the value, not the address). (D) is r + 5 = a[1][1] = 6, because the row length is 4, not 3.

Answer key: GATE CSE Data Structures Mock Test

Use this table to mark your sheet quickly. For NAT questions, your typed value must match exactly (all answers here are integers or exact strings).

Q no Type Marks Answer Topic
Q1 MCQ 1 (A) C pointers, precedence
Q2 NAT 1 1540 Arrays, row-major order
Q3 MCQ 1 (A) Stacks, expression conversion
Q4 MCQ 1 (C) Circular queue
Q5 MCQ 1 (D) Singly linked list
Q6 NAT 1 26 Binary tree properties
Q7 MCQ 1 (A) Max-heap property
Q8 MSQ 1 (A), (B) Adjacency matrix and list
Q9 MCQ 1 (A) BST, preorder to postorder
Q10 MCQ 1 (A) Recursion
Q11 MCQ 2 (A) Static variables, recursion
Q12 NAT 2 17 sizeof vs strlen, pointer offset
Q13 MSQ 2 (A), (B), (D) Stack and queue implementations
Q14 MCQ 2 (A) Linked list recursion
Q15 NAT 2 8 BST shape and insertion order
Q16 MCQ 2 (B) Bottom-up build-heap
Q17 MSQ 2 (A), (B), (D) Heap order and height
Q18 NAT 2 576 Adjacency list memory
Q19 MCQ 2 (A) Recursion tree, in-order output
Q20 MSQ 2 (A), (B), (C) Pointer to array, row-major

Score guide for the GATE CSE Data Structures Mock Test

Step 1: add 1 for every correct answer in Q1 to Q10 and 2 for every correct answer in Q11 to Q20. Step 2: subtract 1/3 for every wrong MCQ among Q1 to Q10 and 2/3 for every wrong MCQ among Q11 to Q20. Step 3: wrong or partly correct MSQ and NAT answers give zero, never a negative. Example: 16 marks correct, two wrong 1-mark MCQs and one wrong 2-mark MCQ gives 16 minus 1/3 minus 1/3 minus 2/3 = 14.67 out of 30.

Score out of 30 What it means Next step
24 to 30 Data Structures is a strength. Your concepts and speed are exam-ready. Move to full-length mocks and keep Data Structures sharp with one timed sectional test a week.
17 to 23.99 Good base with a few gaps, usually in the two-mark questions. Re-solve every wrong question without the solution, then take the Data Structures tests in the free test series.
10 to 16.99 Concepts are partly in place but tracing and accuracy break under time. Revise from the Programming and Data Structures guide, then attempt topic-wise tests before another sectional.
Below 10 Data Structures needs a fresh round of study. Rebuild the basics topic by topic with the revision checklist below, then retake this mock after a week.

These bands are guidance for self-study, not a prediction of your GATE score. Also check how many marks you lost to negative marking. If wrong MCQs cost you more than 2 marks here, you are guessing too often.

Take the full Programming and Data Structures tests, free

This GATE CSE Data Structures Mock Test is one sectional set. The free GATE CSE 2027 Test Series has more subject-wise tests on C output, recursion, trees and heaps, plus 10 full-length mocks and GATE CSE PYQ PDFs, all with detailed solutions and performance analysis.

Start the free GATE CSE 2027 Test Series

Most common mistakes in Data Structures (GATE CSE)

  • Reading *p++ as (*p)++. Postfix ++ binds tighter than *, so *p++ moves the pointer and returns the old value it pointed to.
  • Using the value of a static variable at call time when the expression is evaluated only after the recursive call returns. Trace the statement order exactly.
  • Mixing up sizeof and strlen. sizeof on a char array counts the ‘\0’; strlen does not, and sizeof on a pointer gives the pointer size.
  • Wrong height convention in tree and heap questions. Check whether a single node has height 0 or 1 before applying 2h+1 − 1 or ⌊log2 n⌋.
  • Confusing bottom-up build-heap with repeated insertion. The two methods can give different arrays, and build-heap runs in O(n), not O(n log n).

Topic-wise revision checklist for Data Structures

Topic Key formula or idea Must-know
Pointers in C a[i] = *(a + i); p + 1 moves by sizeof(*p) bytes *p++ vs (*p)++, pointer to array int (*q)[n]
Storage classes static variables are initialised once and keep their value Trace static values across recursive calls
Strings sizeof includes ‘\0’, strlen does not char s[] vs char *s, string literals are read-only
Recursion Draw the recursion tree; count calls level by level Output order of pre, in and post-position prints
Arrays Row-major: base + ((i × cols) + j) × size Column-major and non-zero lower bounds
Stacks Infix to postfix by precedence and associativity Postfix evaluation, valid stack permutations (Catalan number)
Queues Count = (rear − front + n) mod n Circular queue full condition, queue from two stacks
Linked lists Tail delete is O(n) in a singly list Reverse, middle node and cycle detection code
Binary trees and BSTs Leaves = nodes with two children + 1 Traversal reconstruction, BST insertion order and height
Binary heaps Children at 2i and 2i + 1 (1-based), build-heap O(n) Where the min and k-th largest can sit in a max-heap
Graphs Matrix Θ(V2) space, list Θ(V + E) 2E ones in an undirected matrix, 2E list nodes

Tick a row only when you can solve a fresh question on it in under 3 minutes. Then test yourself again with the timed sectional tests in the free GATE CSE 2027 Test Series.

Frequently asked questions

What is the GATE CSE Data Structures Mock Test?

It is a free 20-question, 30-mark sectional test on Programming in C, recursion and all GATE CS data structures, with MCQ, MSQ and NAT questions, GATE negative marking, worked solutions, an answer key and a score guide. It is part of the PiyushAI free GATE CSE 2027 practice series.

Is the GATE CSE 2027 Test Series free?

Yes. The GATE CSE 2027 Test Series by Piyush Wairale is free on piyushwairale.com. It includes 50+ subject-wise tests covering the full syllabus, 10 full-length mock tests on the real GATE pattern (65 questions, 100 marks, 3 hours), GATE CSE PYQ PDFs with solutions, MCQ, MSQ and NAT questions, detailed solutions and performance analysis.

How many marks does Programming and Data Structures carry in GATE CSE?

About 8 to 12 marks in recent GATE CS papers, which is approximate and varies by year. Together with Algorithms it forms one of the biggest scoring blocks in the paper.

Which programming language is used in GATE CSE questions?

Only C. The official syllabus says Programming in C, so all code-tracing questions use C syntax and semantics.

Are hashing and graph traversal part of Data Structures in GATE?

In the GATE CS syllabus, hashing and graph algorithms such as BFS, DFS and shortest paths are listed under Algorithms. The Data Structures section lists graphs as a structure, along with arrays, stacks, queues, linked lists, trees, BSTs and binary heaps.

How long should this mock take?

Give yourself 40 minutes for all 20 questions. In the real paper, a one-mark data structures question should take about 1.5 minutes and a two-mark question about 3 minutes.

What should I do if I score below 15 out of 30?

Revise the topics of the questions you got wrong using the subject guide, re-solve them without looking at the solutions, and then take topic-wise tests before another full sectional test.

Your next step after this mock

Take one more Programming and Data Structures sectional test this week, then a full-length GATE CS mock. Everything in the GATE CSE 2027 Test Series is free.

Start the free GATE CSE 2027 Test Series

More free GATE CSE 2027 resources

Written by Piyush Wairale (M.Tech, IIT Madras), founder of PiyushAI Edtech. Exam details as announced by IIT Madras; always confirm on gate2027.iitm.ac.in. Last updated 29 November 2026.

Share This Story, Choose Your Platform!
Join the PiyushAI AI & Data Science Community | Newsletter
📬 PiyushAI  ·  AI & Data Science Learning Community

Stay Ahead in AI, Data Science, Exams & Your Learning Journey

Join 20,000+ learners exploring AI & Data Science — GATE, Bank IT & PSU exam aspirants, IIT Madras BS Degree students, school teachers exploring the CBSE CT & AI curriculum, working professionals, and anyone starting their AI literacy journey. Tell us a little about yourself and get personalised updates, resources, and mentorship alerts — straight from Piyush Wairale.

🎯
Exam & Career Updates First
GATE, Bank IT Officer, PSU & Government job alerts — plus IIT Madras BS Degree guidance.
📚
Free Learning Resources
Study notes, PYQ analysis, practice questions & guides for exams, data science & AI.
🚀
AI Literacy & CBSE CT-AI
AI tools & concepts for everyone, CBSE CT & AI curriculum support for schools & teachers, plus early course access.
✍️ Join the Community — Fill the Form

Takes less than 60 seconds  •  No spam, only what helps you learn & grow

👨‍🎓 20,000+ Students
▶️ 44,000+ YouTube Subscribers
🎓 IIT Madras Alumnus Mentor

Recent Post

Connect with PiyushAI | YouTube & Telegram Community
🔗 Connect With Us

Learn Daily, Wherever You Are

Free lectures, exam updates, PYQ discussions, and job alerts — delivered through our YouTube channel and Telegram communities.

▶️
YouTube Channel
Piyush Wairale IITM
Free lectures on AI, Data Science, GATE preparation & exam strategy — trusted by 44,000+ subscribers.
Subscribe Now →
🌐
Official Website
piyushwairale.com
Complete courses, GATE DA test series, mock exams & structured preparation programs — all in one place.
Explore Courses →

Leave A Comment