Qus : 2
AMU MCA PYQ
3
The following sequence of operation is performed on stack:
push(1), push(2), pop, push(1), push(2), pop, pop, pop, push(2), pop.
The sequence of popped out values are:
1
2,2,1,2,2 2
2,1,2,1,2 3
2,2,1,1,2 4
2,1,1,2,2 Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2020 PYQ
Solution Start: []
push(1) → [1]
push(2) → [1,2]
pop → 2 → [1]
push(1) → [1,1]
push(2) → [1,1,2]
pop → 2 → [1,1]
pop → 1 → [1]
pop → 1 → []
push(2) → [2]
pop → 2 → []
Popped sequence: 2,2,1,1,2
Qus : 4
AMU MCA PYQ
2
Which one of the following statements is true regarding Array and Linked List?
1
Elements of Array are not stored in adjacent memory locations while for Linked List, elements are stored in adjacent memory locations 2
Elements of Array are stored in adjacent memory locations while for Linked List, elements are not stored in adjacent memory locations 3
For Array and Linked List both, elements are not stored in adjacent memory locations 4
For Array and Linked List both, elements are stored in adjacent memory locations
Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2020 PYQ
Solution Array elements are stored contiguously. Linked list elements are not stored in adjacent memory.
Qus : 8
AMU MCA PYQ
1
Which sequence represents a max heap?
1
⟨46, 34, 28, 12, 26, 20, 2, 10, 11, 24⟩ 2
⟨24, 14, 10, 2, 20, 26, 12, 28, 34, 46⟩ 3
⟨6, 14, 8, 12, 26, 20, 2, 10, 14, 2⟩ 4
⟨2, 14, 10, 2, 20, 26, 12, 8, 14, 6⟩ Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Each parent node is greater than its children.
Qus : 9
AMU MCA PYQ
3
Which one of the following statements is not true regarding Doubly Linked List?
1
Has two pointers 2
Can traverse the list in backward direction 3
Can not traverse in forward direction 4
Delete operation is more efficient than single linked list Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Doubly linked list can traverse both forward and backward.
Qus : 19
AMU MCA PYQ
4
In a Dequeue:
1
Insertion can take place at both ends but deletion can take place only at one end 2
Deletion can take place at both ends but insertion can take place only at one end 3
Insertion can take place at one end and deletion can take place at another end 4
Insertion and deletion both can take place at any end Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Deque (Double Ended Queue) allows insertion and deletion at both ends.
Qus : 20
AMU MCA PYQ
3
If we have six stack operations; pushing and popping each of $A$, $B$ and $C$ such that push$(A)$ must occur before push$(B)$ which must occur before push$(C)$, then $A,B,C$ is a possible order for the pop operations. Which one of the following orders could not be the order the pop operations are run, if we are to satisfy the requirements described above?
1
ABC 2
CAB 3
BAC 4
CBA Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2022 PYQ
Solution Push order: $A \rightarrow B \rightarrow C$
Valid pop orders must follow stack (LIFO) constraints.
BAC cannot occur under stack rules with given push order.
Qus : 22
AMU MCA PYQ
1
What is the meaning of ‘Underflow’ in the context of data structure?
1
When a data structure is empty and an element is retrieved from that data structure 2
When a data structure is empty and an element is inserted into that data structure 3
When a data structure is full and an element is retrieved from that data structure 4
When a data structure is full and an element is inserted into that data structure Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2025 PYQ
Solution Underflow occurs when deletion is attempted on an empty data structure.
Qus : 28
AMU MCA PYQ
3
To sort many large objects or structures, it is most efficient to place
1
references to them in an array and sort the array 2
them in a linked list and sort the linked list 3
pointers to them in an array and sort the array 4
them in an array and sort the array Go to Discussion
AMU MCA Previous Year PYQ
AMU MCA AMU MCA 2021 PYQ
Solution Sorting pointers avoids copying large objects.
[{"qus_id":"16741","year":"2025"},{"qus_id":"16743","year":"2025"},{"qus_id":"16748","year":"2025"},{"qus_id":"16750","year":"2025"},{"qus_id":"16752","year":"2025"},{"qus_id":"16754","year":"2025"},{"qus_id":"16759","year":"2025"},{"qus_id":"16760","year":"2025"},{"qus_id":"16761","year":"2025"},{"qus_id":"16762","year":"2025"},{"qus_id":"16763","year":"2025"},{"qus_id":"16776","year":"2025"},{"qus_id":"16779","year":"2025"},{"qus_id":"16782","year":"2025"},{"qus_id":"16988","year":"2022"},{"qus_id":"16998","year":"2022"},{"qus_id":"16998","year":"2022"},{"qus_id":"17009","year":"2022"},{"qus_id":"17012","year":"2022"},{"qus_id":"17024","year":"2022"},{"qus_id":"17027","year":"2022"},{"qus_id":"17042","year":"2021"},{"qus_id":"17043","year":"2021"},{"qus_id":"17046","year":"2021"},{"qus_id":"17053","year":"2021"},{"qus_id":"17205","year":"2020"},{"qus_id":"17208","year":"2020"},{"qus_id":"17214","year":"2020"},{"qus_id":"17218","year":"2020"}]