My Cart
Your Cart 0

    Your cart is empty.

  • Total (Amount) ₹0.00
Previous year question hub

Programming, Data Structures and Algorithms - Data Science & Artificial Intelligence Previous Year Questions

Practice Programming, Data Structures and Algorithms - Data Science & Artificial Intelligence previous year questions organised from real papers, with year-wise coverage and clear topic navigation.

3Papers
3Years
30Questions
1Topics

Programming, Data Structures and Algorithms question pattern

Every graph below is calculated only from this selection.

Questions by year

Year-wise coverage for Programming, Data Structures and Algorithms. Each bar uses a separate theme-derived color.

Difficulty distribution

How the classified questions are distributed by difficulty.

Medium 16 53.3%
Easy 12 40%
Hard 2 6.7%

Question type distribution

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

MCQ 15 50%
MSQ 8 26.7%
Numerical Answer Type (NAT) 7 23.3%

Subject weightage

Top subjects by unique question coverage.

Data Science & Artificial Intelligence
30 Qs

Most asked topics

Top topics across the included previous year papers.

Programming, Data Structures and Algorithms
30 Qs

Subtopic coverage

Top subtopics inside this exact selection.

Python Programming and Data Structures
13 Qs
Searching, Sorting and Divide-and-conquer
10 Qs
Graphs, Traversals and Shortest Paths
7 Qs

Paper coverage

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

Data Science and Artificial Intelligence (DA) 2026
9 Qs
Data Science & Artificial Intelligence (DA) 2025
9 Qs
Data Science & Artificial Intelligence (DA) 2024
12 Qs

Browse by subtopics

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

Included previous year papers

Newest papers appear first. Sort by year, question coverage or name.

PaperYear / sessionQuestions in this viewOpen
Data Science and Artificial Intelligence (DA) 202620269View paper
Data Science & Artificial Intelligence (DA) 202520259View paper
Data Science & Artificial Intelligence (DA) 2024202412View paper

Sample previous year questions

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

1
2024 · Data Science & Artificial Intelligence · Programming, Data Structures and Algorithms · Graphs, Traversals and Shortest Paths
Data Science & Artificial Intelligence (DA) 2024
Consider performing depth-first search (DFS) on an undirected and unweighted graph \( G \) starting at vertex \( s \). For any vertex \( u \) in \( G \), \( d[u] \) is the length of the shortest path from \( s \) to \( u \). Let \( (u, v) \) be an edge in \( G \) such that \( d[u] < d[v] \). If the edge \( (u, v) \) is explored first in the direction from \( u \) to \( v \) during the above DFS, then \( (u, v) \) becomes a ______ edge.
Open complete paper
2
2025 · Data Science & Artificial Intelligence · Programming, Data Structures and Algorithms · Searching, Sorting and Divide-and-conquer
Data Science & Artificial Intelligence (DA) 2025
Consider a hash table of size 10 with indices {0,1,…,9}, with the hash function
\(h(x) = 3x \ (\text{mod } 10)\),
where linear probing is used to handle collisions. The hash table is initially empty and then the following sequence of keys is inserted into the hash table: 1, 4, 5, 6, 14, 15. The indices where the keys 14 and 15 are stored are, respectively
Open complete paper
3
2026 · Data Science & Artificial Intelligence · Programming, Data Structures and Algorithms · Searching, Sorting and Divide-and-conquer
Data Science and Artificial Intelligence (DA) 2026
Consider that the quick sort algorithm is used to sort an array of \(n\) distinct randomly ordered elements. In every call, the pivot is chosen as the first element of the current subarray.
Let \(T(n)\) denote the expected time to sort the array. Assume that the time to partition is linear in the size of the current subarray.
Which of the following recurrence relations correctly represents \(T(n)\) in this scenario?
Open complete paper
4
2024 · Data Science & Artificial Intelligence · Programming, Data Structures and Algorithms · Searching, Sorting and Divide-and-conquer
Data Science & Artificial Intelligence (DA) 2024
Consider performing uniform hashing on an open address hash table with load factor \(\alpha = \frac{n}{m} < 1\), where n elements are stored in the table with m slots. The expected number of probes in an unsuccessful search is at most \(\frac{1}{1-\alpha}\). Inserting an element in this hash table requires at most ______ probes, on average.
Open complete paper
5
2025 · Data Science & Artificial Intelligence · Programming, Data Structures and Algorithms · Python Programming and Data Structures
Data Science & Artificial Intelligence (DA) 2025
Consider the following Python declarations of two lists.
A = [1, 2, 3]
B = [4, 5, 6]
Which one of the following statements results in A = [1, 2, 3, 4, 5, 6]?
Open complete paper
6
2026 · Data Science & Artificial Intelligence · Programming, Data Structures and Algorithms · Python Programming and Data Structures
Data Science and Artificial Intelligence (DA) 2026
Consider the given Python program.

def append_to_lst(val, lst=[]):
    lst.append(val)
    return lst
print(append_to_lst(1))
print(append_to_lst(2))
print(append_to_lst(3, []))

Which of the following is the correct output of this program?
Open complete paper