ppslabexternalexam
ppslabexternalexam
2 a) Write a C program that uses non recursive function to search for a Key value in a given
sorted list of integers using binary search method.
b) Write a C program to count the number of times a character occurs in a text file.
3 a) Write a C program that implements the Bubble sort method to sort a given list of
integers in ascending order.
b) To find the factorial of a given integer.
4 a) Write a C program that sorts the given array of integers using selection sort in
descending order
b) To find the GCD (greatest common divisor) of two given integers.
5 a) Write a C program that sorts the given array of integers using insertion sort in ascending
order
b) write a C Program to find mean, variance and standard deviation
6 a) Write a C Program to convert all lower case letters to upper case letters in a file
b) Write a C Program to display the contents of a file to a standard output device