CPDS UNIT 2 QuestionBank
CPDS UNIT 2 QuestionBank
UNIT – II
1 MARK QUESTIONS:
10 MARK QUESTIONS:
1. a. Develop the code in C for printing Fibonacci Series up to an index n using Recursive
Function.
b. Develop the code to print Prime Number Series up to n.
2. Given an array a[ ]={6,3,1,9,25,55,35,22,11,40}, apply the bubble sort to sort the given
array.
3. What are various types of User defined Functions in C? Explain each type with suitable
example program.
4. Explain different storage classes available in C. Provide a suitable example for the use of
each class.
5. What is binary search? Develop the code for Binary Search to find the particular key in an
array.
6. Develop the code for Linear Search to find the particular key in a given array.
7. Develop the code for Matrix Multiplication.
8. Develop the code for Insertion Sort.
9. Develop the code for Selection Sort.
10. (i) Write a C program to find factorial of n using recursion.
(ii) Develop the code for printing array elements using a function.