Pps Descriptive Bank 2024-25
Pps Descriptive Bank 2024-25
DESCRIPTIVE BANK
1. Write a C program that demonstrates the use of fseek, ftell, and rewind to perform random access
on a file. Show how to read from and write to different parts of the file.
2. Compare and contrast call by value and call by reference in terms of their impact on the original
variables. How does each method affect memory usage and the result of function calls?
3. Evaluate the advantages of using recursion over iteration for a Fibonacci series.
4. Describe how dynamic memory allocation works and explain why it is important in managing
memory during program execution.
5. Implement a binary search algorithm to find the number 77 in the sorted array
[11,22,33,44,55,66,77,88,99]. Demonstrate how the algorithm narrows down the search space
step by step.
6. With an example, describe the selection sort method and its time complexity.
7. Explain random file access functions. Write a C program to mere contents of two files into third
file.
8. What are the advantages and disadvantages of using recursion compared to iteration? Write a C
9. program to calculate the factorial of a given number using both recursive and non-recursive
methods.
10. Explain dynamic memory allocation functions in C. Why are they important for managing
memory during program execution?
11. Write and explain the binary search algorithm. Provide an example to demonstrate how the
algorithm works step by step.
12. With an example, describe the Bubble sort method and its time complexity.
18. Write a C program to find the Fibonacci series of n terms using recursion.
19. Describe how dynamic memory allocation works and explain why it is important in managing
memory during program execution.
20. With an example, describe the Insertion sort method and its time complexity.
24. Write a C program to find the factorial of given number using recursion.
27. Explain binary search method. Illustrate binary search on {2, 11, 15, 17, 19, 21, 25} and
28. search for element 17.
31. Discuss about recursive functions. Write a C program to find factorial of a given number N by
using recursive function.
32. Define Sorting. Explain bubble sort method with a program and example.
33. What is a function? What is meant by call-by value and call-by reference?
34. Sort the following 10 elements using bubble sort technique. Write the algorithm for the
35. same. 85 53 96 35 27 87 37 12 90 23