Professional Documents
Culture Documents
QP. Code
QP. Code
CODE
1. a. Develop a ‘C’ program to find the greatest of ’N’ numbers stored in an array. (50)
b. Develop a ‘C’ program for implementing linear search on a sorted array of ‘N’ numbers.
(50)
2. a. Develop a ‘C’ program to implement a simple calculator using switch case statement. (50)
b. Develop a ‘C’ program to sort an array of ‘N’ numbers using bubble sort. (50)
3. a. Develop a ‘C’ program to find the sum of the digits of a given number using while
statement. (40)
b. Develop a ‘C’ program to sort an array of ‘N’ numbers using merge sort. (60)
4. a. Develop a ‘C’ program for evaluating postfix expression using array implementation of a
stack. (50)
b. Write a program in C to find the addition of two matrices. (50)
5. a. Develop a ‘C’ program using function to compute the factorial of a given number. (40)
b. Develop a ‘C’ program to sort an array of ‘N’ numbers using quick sort. (60)
7. a. Write a program in C to check whether the given string is Palindrome or not. (50)
b. Write a Program to implement Binary Search Tree. (50)
9. a. Develop a ‘C’ program to sort an array of ‘N’ numbers using insertion sort. (50)
b. Develop a program to implement Binary search (50)
10. a. Define a structure called cricket that will describe the following information:
Player Code
Player Name
Team Name
Batting Average.
Using cricket, declare an array player with ‘N’ elements and develop a ‘C’ program to read the
information about all the ‘N’ players and print a team wise list containing names of players with
their batting average. (50)
b. Develop a ‘C’ program for implementing a stack using arrays. Illustrate the operations that
can be performed on the same. (50)
11. a. Develop a ‘C’ program for implementing a Queue using arrays. Illustrate the operations
that can be performed on the same. (60)
b. Write a Program in C to find the factorial of the given number. (40)
14. a. Write a program in C to find the largest number using dynamic memory allocation. (60)
b. Write a program in C to swap two numbers using call by reference. (40)
15. a. Write a C program to read a one dimensional array, print sum of all elements along with
input as array elements using Dynamic Memory Allocation. (60)
b. Write a Program in C to find the biggest number in an array. (40)
16. a. Write a program in C to find the smallest number using dynamic memory allocation. (50)
b. Write a program in C to evaluate infix expression using stack. (50)
17. a. Write a program in C to evaluate Postfix expression using stack. (50)
b. Write a Program in C to sort the names in alphabetical order. (50)