Pps External Lab Important Questions
Pps External Lab Important Questions
(An Autonomous Institution Under 2(f) and 12(B) of UGC Act 1956, New Delhi)
Set 1:
a) Write a C program that uses non recursive function to search for a Key value in a given
c) Write a program for finding the max and min from the three numbers.
Set 2:
22
333
4444
Set 3:
a) Write a C program to count the number of words, lines, characters in a text file.
c) Write a C program that implements the Bubble sort method to sort a given list of
integers in ascending order.
set 4:
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 sta
input.
1 2
1 2 3
c) Write a C program that sorts the given array of integers using insertion sort in ascending order.
Set 5 :
a) . Write a simple program that converts one given data type to another using auto conversion and casting. Take th
values from standard input
c) Write a C program that sorts the given array of integers using selection sort in ascending order
Set 6:
a) write a program to insert a sub-string into a given main string from a given position
1 2
1 2 3
c) 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.
Set 7:
a) Write a C program to find the roots of a Quadratic equation
Set 8:
*
* *
* * *
set 9:
a)Write a program for reading elements using a pointer into an array and display the values using the array.
b)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.
Set 10:
b) Write a C program, which takes two integer operands and one operator from the user, performs the operati
then prints the result. (Consider the operators +,-,*, /, % and use Switch Statement
Set 11:
Set 12:
Set 13:
a)write a C program which copies one file to another, replacing all lowercase characters
b)Write a program for display values reverse order from an array using a pointer.
set 14:
b) Write a program for reading elements using a pointer into an array and display the values using the array.
set 15:
a)Write a program that prints a multiplication table for a given number and the number of rows in
the table. For example, for a number 5 and rows = 3, the output should be:
5x1=5
5 x 2 = 10
5 x 3 = 15
1 2
1 2 3