0% found this document useful (0 votes)
2 views

ppslabexternalexam

The document outlines a series of programming tasks in C, including searching algorithms (linear and binary), file operations (merging files and counting characters), sorting methods (bubble, selection, and insertion), mathematical computations (factorial, GCD, mean, variance, standard deviation), and basic operations (matrix addition and multiplication, prime number generation, and distance calculation). Each task is presented with a specific requirement to implement a non-recursive function or perform a particular operation. The document serves as a comprehensive guide for practicing various programming concepts in C.

Uploaded by

nivas.salla1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
2 views

ppslabexternalexam

The document outlines a series of programming tasks in C, including searching algorithms (linear and binary), file operations (merging files and counting characters), sorting methods (bubble, selection, and insertion), mathematical computations (factorial, GCD, mean, variance, standard deviation), and basic operations (matrix addition and multiplication, prime number generation, and distance calculation). Each task is presented with a specific requirement to implement a non-recursive function or perform a particular operation. The document serves as a comprehensive guide for practicing various programming concepts in C.

Uploaded by

nivas.salla1
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

1 a) Write a C program that uses non recursive function to search for a Key value in a given

list of integers using linear search method.


b) Write a C program to merge two files into a third file (i.e., the contents of the first file
followed by those of the second are put in the third file).

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

7 a)Write a C Program to find Maximum and Minimum from three numbers


b) Write a C Program to show binary equivalent of a number

8 a) Write a C Program to check whether the given number is prime or not


b) Write a C Program to illustrate Arithmetic operators using switch case statement
9 a) Write a C Program to add two matrices
b) Write a C Program to generate all prime numbers between 1 and n

10. a) Write a C Program to multiply two matrices


b) Write a C Program to calculate the distance travelled using the formula
s=u*t + ½ * a * t * t

You might also like