You are on page 1of 2

QUESTION BANK CHAPTER 1, 2 AND 3

Chapter 1
Answer the following question (2 marks)
1. Differentiate between linear and non-linear data structures on any two parameters?
2. Write any four operations that can be performed on data structure?
3. Define the term algorithm with properties?
4. Explain the term: time complexity and Space Complexity?
5. What is data structure and give its classification?
6. What is the Abstract data type with example?
7. Give any two applications or real-life examples of Data structure?
8. What is Big O notation?

Chapter 2
Answer the following question (2 marks)
1. Define sorting and give its type?
2. Define searching and give its type?
3. Difference between linear search and binary search on any two parameters?
4. Write an algorithm of bubble sort?
5. Write an algorithm of Quick Sort?

Answer the following question (4 Marks)


1. Sort the given number in ascending order using Radix sort: 348, 14, 641, 3851, 74
2. Describe the working of the Bubble sort method with an example?
3. Describe working of linear search with an example?
4. Differentiate between binary search and sequential search (linear search)?
5. Find the position of element 30 using Binary search method in array
A = {10, 5, 20, 25, 8, 30, 40}
6. Describe the working of Selection Sort Method. Also sort the given input list in
ascending order using selection sort.
Input list: 50, 24, 5, 12, 30
7. Sort the following numbers in ascending order using quick sort. Given numbers
50, 2, 6, 22, 3, 39, 49, 25, 18, 5
8. Sort the following number using Bubble sort 13,32,26,35,10
9. Write a C program for linear search (input array should be 10,7,3,5,1)?
10. Write a C program for Bubble Sort (input array should be 13,32,26,35,10)?
Chapter 3
Answer the following question (2 marks)
1. Define the term overflow and underflow with respect to stack.
2. Write algorithm for POP operation
3. Write algorithm for PUSH operation
4. Show the memory representation of the stack using an array with the help of a
diagram.

Answer the following question (4 Marks)


1. Show the effect of PUSH and POP operation on the stack of size 6. PUSH(10)
PUSH(20),PUSH(30),POP(30), PUSH(40)
2. Difference between memory representation of stack using array and Linked list

You might also like