DS QB-1
DS QB-1
Question Bank -1
1. Define- Data Structure. Explain the classification of data Structure in detail
2. How the memory can be allocated at run time? Explain with an example.
3. Briefly explain: i) malloc( ) ii) calloc( ) iii) realloc( ) iv) free()
4. What is pointer? Explain pointer using pass by address.
5. Define: Recursion. Explain recursion for Towers of Hanoi problem.
6. The Fibonacci numbers are defined as f0=0,f1=1 and fi=fi-1+fi-2 for i>1 Write a recursive function to
compute fi.
7. Explain recursion in detail with the help of a program.