PPS Lab External(24-25)
PPS Lab External(24-25)
1. a)Write a simple program that prints the results of all the operators available in C
(including pre/ post increment , bitwise and/or/not , etc.). Read required operand values
from standard input.
2. a)Write a program to convert one data type to another data type using auto conversion.
b)Write a program to find the factorial using recursion.
c)Write a program to convert the file data from lower case to upper case.
3. a)Write a program for finding the max and min from the three numbers.
b)Write a Program to find GCD of given integers.
c)Write a C program that uses functions to perform to insert a sub-string in to a given main
string from a given position.
5. a) Write a program that declares Class awarded for a given percentage of marks, where
mark <40%= Failed, 40% to <60% = Second class, 60% to <70%=First class, >= 70% =
Distinction. Read percentage from standard input.
b)Write a program for addition of two matrices
7. a)Write a C program, which takes two integer operands and one operator from the user,
performs the operation and then prints the result. (Consider the operators +,-,*, /, % and use
Switch Statement)
b)Write a Program to find Xn using recursion.
1
1 2
1 2 3
10. a)Fibonacci sequence is defined as follows: the first and second terms in the sequence
are 0 and1.Subsequent terms are found by adding the preceding two terms in the sequence.
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)
c)Write a C program that implements the following sorting methods to sort a given list of
integers in ascending order using selection sort.