Important Questions
Important Questions
Q2) What is an array? How to declare and initialize arrays? Explain with examples
Q3) How can we declare and initialize 2D arrays? Explain with examples.
Q4) Explain how two dimensional arrays can be used to represent matrices. (or) Define an array and how the memory is allocated for a 2D
array?
Q5) Write a program to perform matrix addition.
Q6) What is a sparse array?
Q4)Write an algorithm for transforming infix to postfix expression.Convert the following Infix to postfix using the algorithm
A+(B*C-(D/E^F)*G)*H
Q5)write short notes on
a)Recursion
b)Tower of Hanoi
Unit-3-Linked List
Unit-4- Trees
Q1)Explain Binary tree with example
Q2)Explain complete binary tree
Q3)Give Linked representation of binary tree
Q4)Explain different ways of traversing binary trees.Write algorithm for all of these
Q5)Explain Binary search tree.Write an algorithm for searching an item in binary search tree
Q6) Write an algorithm for insert and delete an item in binary search tree
Unit-5 B-Trees
Q1)Define B-Tree. How can we search ,insert and delete an item in B-Tree
Q2)Insert 5,3,21,9,13,22,7,10,,11,14,8,16 into B-tree of order=4.What will be the output after deleting 16
Unit-6
Q1)Write an algorithm for bubble sort.Sort the following using bubble sort