Professional Documents
Culture Documents
) Code a C Program to implement the following various operations for Stack ADT using array
.
implementation. i.) Push ii.) Pop iii.) Display. (40)
b.) Code a C Program to check whether the given number is in the list using linear search. (40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
2 a.) Code a C Program to implement the following various operations for Queue ADT using
.
array implementation. i.) Insert ii.) Delete iii.) Display. (40)
b.) Code a C Program to check whether the given number is in the list using binary search. (40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
3 a.) Write a C Program to implement the following various operations for List ADT using array
. implementation. i.) Create ii.) Insert iii.) Erase iv.) Traverse (40)
b.) Write a C Program to sort the following numbers using Insertion sort:
67, 53, 82, 7,11,3, 101 (40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
b.) Write a C Program to sort the following numbers using Bubble sort:
35 25 10 10 100
20
5. a)Code a C program to implement Stack ADT by using linked list for the following operations i.)
Push b.) Pop c.) Display. (40)
b.) Write a C Program to sort the following numbers using Selection sort: 241,37,78, 16, 15,7
(40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
35 25 10 10 100
20
35 25 10 10 100
20
35 25 10 10 100
20
35 25 10 10 100
20
10. a.) Write a C program to implement the addition of two polynomials using linked list. (40)
b.) Code a C Program to check whether the given number is in the list using linear search. (40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
35 25 10 10 100
20
35 25 10 10 100
20
(40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
35 25 10 10 100
20
35 25 10 10 100
20
35 25 10 10 100
20
17. a.) Write a C program to implement FIFO structure using array. (40)
b.) Write a C Program to convert the infix expression a+ (b*c-d)/e into postfix expression (40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
18. a.) Write a C program to implement the operations of List ADT using linked list and perform the
following (40)
i. Create a Linked list with the elements 11,22,44,55 ii)Insert 33 after 22
iii Delete the element 22 from the list. iv)Display the elements.
b.) Code a C Program to check whether the given number is in the list using linear search. (40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
a.) Write a C Program to implement LIFO structure. Use Linked List implementation.(40)
b.) Write a C Program to implement to find the element in a list in a sequential order. (40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
20. a.) Implement First In First Out order of queue ADT using arrays in C. (40)
b.) Code a C Program to check whether the given number is in the list using linear search. (40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
21. a.) Execute the push and pop operations performed on a stack of size 5 using C program. (40)
b.) Write a C program to sort the n elements using Selection sort. (40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
b.) Write a C Program to convert the infix expression a+ (b*c-d)/e into postfix expression.
(40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
Internal Examiner External Examiner
23. a.) Write a C program to implement queue ADT using linked list implementation (40)
b.) Write a C program to sort the elements using bubble sort (40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
35 25 10 10 100
20
35 25 10 10 100
20
35 25 10 10 100
20
35 25 10 10 100
20
35 25 10 10 100
20
35 25 10 10 100
20
35 25 10 10 100
20
32
a.) Write a C program to implement stack ADT using linked list implementation (40)
b.) Explain programmatically using C, how to perform the different traversals in a binary
tree. (40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
33.
a.) Create a node for BinaryTree and implement the following operations in the tree Create,
Search and Preorder traversal and Postorder traversal using C program. (40)
b.) Write a C Program to sort the following numbers using Insertion sort:
16, 43, 92, 9, 71, 88, 7,3 (40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
Internal Examiner External Examiner
35.
a.) Write a C Program for BinarySearchTree with the following operations Create, Insert,
Findmin and Findmax. (40)
b.) Write a C Program to sort the following numbers using Selection sort: 24,17,48, 6, 19,8
(40)
Output Mark
Aim & Viva-
Program Record Total in
Procedure Voce
Results Words
35 25 10 10 100
20
35 25 10 10 100
20
39. a.)Write a C Program to create a binary tree and obtain the order of the nodes by applying various
tree traversal methods. (40)
35 25 10 10 100
20