Data Structures previous question papers.
Open the verified June/July 2024 regular paper for Data Structures. The code, branch scope and exam session were checked against the official JNTUK timetable.
PDF · opens in a new tab · 4 sets · packet page 1
June/July 2024 regular
The linked institutional packet opens at Data Structures Set 1 and contains four R23 sets. It remains on the affiliated institution’s server and opens without a JNTUK Materials login.
- Subject
- Data Structures
- Applicable branches
- CSE, IT and CSE-allied branches
- File host
- Vignan's Nirula Institute
- Link checked
- 23 August 2026
Trace an iterative binary search
This example was written for JNTUK Materials to practise a related method. It is not taken from the linked university paper and does not constitute an official answer key.
Find 19 in the sorted array [3, 7, 11, 15, 19, 23, 27]. Use zero-based indices and mid = floor((low + high)/2). Count each visited middle element as one probe.
Show the worked steps and answer
- Start with low = 0 and high = 6. The middle index is 3, containing 15. Since 19 > 15, set low = 4.
- Now low = 4 and high = 6. The middle index is 5, containing 23. Since 19 < 23, set high = 4.
- Now low = high = 4. The middle element is 19: the search succeeds at index 4.
Answer Index 4 (the fifth element), after 3 middle-element probes.
Check your result: The visited indices are 3 → 5 → 4. The candidate interval shrinks at each step. Binary search needs a sorted input and has O(log n) worst-case search time.
Common mistake: Use mid + 1 or mid − 1 when discarding a half; retaining mid can cause an infinite loop.
Turn a paper into a revision session
- Attempt a section without notes; follow the time and choice rules printed on your selected set.
- Mark questions you could not finish. Revisit the corresponding topic in your syllabus or notes.
- Rework those questions and check the reasoning, units and final result—not just the answer.
Topics represented in the paper
This is an exam-paper index, not substitute lecture notes. Use these topic groups to plan timed practice against the R23 paper.
- 01algorithm complexity, searching and sorting
- 02singly, doubly and circular linked lists
- 03stacks and expression processing
- 04queues, circular queues and deques
- 05binary search trees and hashing
How this file was verified
- 01The PDF has a valid file structure and readable pages.
- 02The R23 code, semester, subject and exam session appear on the paper.
- 03The code and date match the official JNTUK examination timetable.
- 04The copy stays on a publicly accessible JNTUK-affiliated institution host.