Dec 2025
Contents
The questions below are the paper as the University of Mumbai set it at the Dec 2025 examination, in the order it was set.
MarksPage
MarksPage
The Paper as Set
The questions in this volume are the questions asked at the Dec 2025 examination, reproduced as the University of Mumbai set them, in the order it set them. Nothing has been reworded, added or left out. Only the answers are ours. See the original question paper.
Duration 2 hours · Total marks 60 · 14 questions answered
How to use this volume
Solve the paper first, under exam conditions and against the clock. Then read the answers here and mark your own. Reading a solution before attempting the question feels productive and teaches very little, because recognising an answer is not the same as being able to write one.
1
Q.1
Attempt any THREE · 15 Marks
aExplain ADT. List the linear and non-linear data structures with examples.[5]
Answer
For full marks, cover: what an abstract data type is and why it is "abstract", one ADT written out with its values and operations, the list of linear data structures with an example of each, the list of non-linear ones with an example of each, and the one-line test that tells them apart.
Abstract data type (ADT)
An abstract data type is a description of a kind of data by two things only: the values it can hold and the operations that may be done on it. It says what each operation does. It does not say how the data is laid out in memory or how the operations are coded. That hidden part is the implementation.
The word "abstract" means the user of the type works only through its operations. A program that uses a stack ADT calls push and pop; whether the stack lives in an array or in a linked list does not change that program at all.
Example: the Stack ADT
- Values: a finite ordered sequence of elements, with one end called the top.
- create(): makes an empty stack.
- push(S, x): puts x on the top of S.
- pop(S): removes and returns the top element; an error (underflow) if S is empty.
- peek(S): returns the top element without removing it.
- isEmpty(S): true when S holds no element.
Linear data structures
The elements sit one after another in a single line, and each element has at most one element before it and one after it.
| Structure | Example of use |
|---|---|
| Array | marks of 60 students in int marks[60] |
| Linked list | a music playlist where songs are added and removed often |
| Stack | the undo history of a text editor |
| Queue | print jobs waiting for one printer |
Non-linear data structures
An element can be joined to several others, so the elements do not form one line.
| Structure | Example of use |
|---|---|
| Tree | folders and files on a disk, an expression tree |
| Graph | a road map, where cities are vertices and roads are edges |
| Heap (a special tree) | a priority queue of patients by urgency |
The test: if every element can be reached in one straight pass from the first element, the structure is linear; if an element can branch to more than one next element, it is non-linear.
Conclusion. An ADT fixes the values and operations of a data type and hides its implementation, as the Stack ADT shows. Arrays, linked lists, stacks and queues are linear; trees, graphs and heaps are non-linear.
The rest of the answers
You have read the paper as it was set and its first answer in full.
Every other answer, in every solved paper of this semester, opens with the solved papers.
Already bought it? Sign in and it opens.
What do you need?
Tap one.
The answers are on this page
You can read the first answer here. The box further down shows how to read all of them.
Read it here, any time
We keep checking and updating our papers and notes, and adding more. A saved copy would be an old version. Reading on munotes.in always gives you the latest one.
I paid, but I can't open it
Please type an email, or a 10-digit phone number.
Done
If we find your payment, we send a link to the email you paid with. Open it to read.
Check your email in 2 minutes. Also check Spam.
No email after 10 minutes?
Something else
Please write a little more, so we can help.
Your email app opens with this. You can add more there. We reply by email.
Found an error in this volume? Report it and we will check it against the paper.
Tip: use the left and right arrow keys to turn papers.