CSE2001 B
CSE2001 B
PRESIDENCY UNIVERSITY
BENGALURU
1.a. Write the correct syntax of creating an array. (CO1) (04 Marks)
1.b. Write the insert and delete methods for Doubly Linked List. (CO1) (06 Marks)
1.c. Write the following methods dequeue(), queueSize(), display() for Queue using LinkedList.
(CO1) (10 Marks)
OR
2.a. Write isEmpty() function for Stack. (CO1) (04 Marks)
2.b. Explain the 5 operations in the Stack Abstract Data type. (CO1) (06 Marks)
2.c. Write the following methods isempty(), enqueue(), display() for Queue using LinkedList.
(CO1) (10 Marks)
3.a. Evaluate the following postfix expression 4 5 + 3 * 7 –. (CO2) (04 Marks)
4.b. Write the algorithm for converting infix expression to postfix expression. (CO2) (06 Marks)
4.c. Write the algorithm for the insertion at specific position in the circular singly linked list.
(CO2) (10 Marks)
Page 1 of 2
5.a. List two applications of Queue. (CO3) (04 Marks)
5.b. Explain with the help of an example insertion and deletion in a Binary Search Tree.
(CO3) (06 Marks)
5.c Write the following functions deleteFirst(), deleteLast() and display for Circular Singly Linked List.
(CO3) (10 Marks)
OR
6.a. List two applications of Stack. (CO3) (04 Marks)
6.b. Write methods for preorder, postorder and inorder traversal in a binary tree.
(CO3) (06 Marks)
6.c. Write the following functions insertAtFirst(), insertAtLast(), and display for Circular Singly Linked
List. (CO3) (10 Marks)
Page 2 of 2