My Cart
Your Cart 0

    Your cart is empty.

  • Total (Amount) ₹0.00
Previous year question hub

Programming and Data Structures - Computer Science & Information Technology Previous Year Questions

Practice Programming and Data Structures - Computer Science & Information Technology previous year questions organised from real papers, with year-wise coverage and clear topic navigation.

29Papers
18Years
176Questions
1Topics

Programming and Data Structures question pattern

Every graph below is calculated only from this selection.

Questions by year

Compare question counts across years.

Difficulty distribution

How the classified questions are distributed by difficulty.

Medium 95 54%
Easy 80 45.5%
Hard 1 0.6%

Question type distribution

MCQ, numerical, multiple-select and other formats found in these papers.

MCQ 115 65.3%
Numerical Answer Type (NAT) 54 30.7%
MSQ 7 4%

Subject weightage

Top subjects by unique question coverage.

Computer Science & Information Technology
176 Qs

Most asked topics

Top topics across the included previous year papers.

Programming and Data Structures
176 Qs

Subtopic coverage

Top subtopics inside this exact selection.

C Programming and Recursion
94 Qs
Trees, Heaps and Graphs
52 Qs
Linear Data Structures
30 Qs

Paper coverage

Question coverage for the most populated papers. Every active PYP paper remains listed below.

Computer Science and Information Technology (CS) 2026
9 Qs
Computer Science and Information Technology (CS) 2026
8 Qs
Computer Science & Information Technology (CS) 2025 [Session 2]
8 Qs
Computer Science & Information Technology (CS) 2025 [Session 1]
7 Qs
Computer Science & Information Technology (CS) 2024 [Session 2]
6 Qs
Computer Science & Information Technology (CS) 2024 [Session 1]
5 Qs
Computer Science & Information Technology (CS) 2023 [Session 2]
5 Qs
Computer Science & Information Technology (CS) 2022 [Session 2]
7 Qs
Computer Science & Information Technology (CS) 2021 [Session 2]
6 Qs
Computer Science & Information Technology (CS) 2021 [Session 1]
3 Qs
Computer Science & Information Technology (CS) 2020 [Session 2]
7 Qs
Computer Science & Information Technology (CS) 2019 [Session 2]
8 Qs
Computer Science & Information Technology (CS) 2018 [Session 2]
8 Qs
Computer Science & Information Technology (CS) 2017 [Session 2]
8 Qs
Computer Science & Information Technology (CS) 2017 [Session 1]
4 Qs
Computer Science & Information Technology (CS) 2016 [Session 1]
6 Qs
Computer Science & Information Technology (CS) 2016 [Session 2]
6 Qs
Computer Science & Information Technology (CS) 2014 [Session 2]
7 Qs
Computer Science & Information Technology (CS) 2014 [Session 1]
3 Qs
Computer Science & Information Technology (CS) 2014 [Session 3]
2 Qs
Computer Science & Information Technology (CS) 2013 [Session 1]
5 Qs
Computer Science & Information Technology (CS) 2013 [Session 3]
5 Qs
Computer Science & Information Technology (CS) 2013 [Session 4]
5 Qs
Computer Science & Information Technology (CS) 2013 [Session 2]
1 Qs
Computer Science & Information Technology (CS) 2011
6 Qs
Computer Science & Information Technology (CS) 2010
7 Qs
Computer Science & Information Technology (CS) 2009
6 Qs
Computer Science & Information Technology (CS) 2008
8 Qs
Computer Science & Information Technology (CS) 2007
10 Qs

Browse by subtopics

Open a focused page built from the same verified paper data.

Included previous year papers

Newest papers appear first. Search these papers or sort by year and name.

Paper nameYearPDFAttempt
9 questions in this view
2026
8 questions in this view
2026
7 questions in this view
2025
8 questions in this view
2025
5 questions in this view
2024
6 questions in this view
2024
5 questions in this view
2023
7 questions in this view
2022
3 questions in this view
2021
6 questions in this view
2021
7 questions in this view
2020
8 questions in this view
2019
8 questions in this view
2018
4 questions in this view
2017
8 questions in this view
2017
6 questions in this view
2016
6 questions in this view
2016
3 questions in this view
2014
7 questions in this view
2014
2 questions in this view
2014
5 questions in this view
2013
1 questions in this view
2013
5 questions in this view
2013
5 questions in this view
2013
6 questions in this view
2011
7 questions in this view
2010
6 questions in this view
2009
8 questions in this view
2008
10 questions in this view
2007

Sample previous year questions

A varied preview from the papers represented in this selection, with every available option.

1
2007 · Computer Science & Information Technology · Programming and Data Structures · Trees, Heaps and Graphs
Computer Science & Information Technology (CS) 2007
The height of a binary tree is the maximum number of edges in any root to leaf path. The maximum number of nodes in a binary tree of height \( h \) is:
Open complete paper
2
2008 · Computer Science & Information Technology · Programming and Data Structures · C Programming and Recursion
Computer Science & Information Technology (CS) 2008
Which combination of the integer variables x, y and z makes the variable a get the value 4 in the following expression?
\[ a = ( x > y ) ? ( ( x > z ) ? x : z ) : ( ( y > z ) ? y : z ) \]
Open complete paper
3
2009 · Computer Science & Information Technology · Programming and Data Structures · C Programming and Recursion
Computer Science & Information Technology (CS) 2009
Consider the program below:
#include <stdio.h> int fun(int n, int *f_p) { int t, f; if (n <= 1) { *f_p = 1; return 1; } t = fun(n-1, f_p); f = t + *f_p; *f_p = t; return f; } int main() { int x = 15; printf("%d\n", fun(5, &x)); return 0; }The value printed is :
Open complete paper
4
2010 · Computer Science & Information Technology · Programming and Data Structures · Trees, Heaps and Graphs
Computer Science & Information Technology (CS) 2010
In a binary tree with \(n\) nodes, every node has an odd number of descendants. Every node is considered to be its own descendant. What is the number of nodes in the tree that have exactly one child?
Open complete paper
5
2013 · Computer Science & Information Technology · Programming and Data Structures · Trees, Heaps and Graphs
Computer Science & Information Technology (CS) 2013 [Session 1]

Which one of the following is the tightest upper bound that represents the time complexity of inserting an object into a binary search tree of n nodes?

Open complete paper
6
2013 · Computer Science & Information Technology · Programming and Data Structures · C Programming and Recursion
Computer Science & Information Technology (CS) 2013 [Session 2]
What is the return value of f(p, p), if the value of p is initialized to 5 before the call? Note that the first parameter is passed by reference, whereas the second parameter is passed by value. int f (int &x, int c) { c = c - 1; if (c==0) return 1; x = x + 1; return f(x, c) * x; }
Open complete paper