Friday, April 23, 2021

PPSUC LAB EXAM SAMPLE QUESTIONS

 1)a)Write a C program to convert a string to a long integer

  b)Write a program in C which is a Menu-Driven Program to compute the area of the various geometrical shape


2)a)Write a program in C to swap numbers using call by reference.

  b)Write a program in C to sort elements of array in ascending order.


3)a) Write a C program to demonstrate the Nested Structures

  b) Write a Program to demonstrate the use of pointer to pointer variable.


4)a)Write a C program to demonstrate the array of structures

  b)Write a program to find the factorial of the given number using recursive function call


5)a)Write a C program to compute the perimeter and area of a rectangle with a height of 7 Inches and width of 5 inches

  b)Write a C program to check whether a given number is an Armstrong number or not.


6)a)Write a C program that accepts 4 integers p, q, r, s from the user where r and s are positive and p is even. If q is greater than r and s is greater than p and if the sum of r and s is greater than the sum of p and q print "Correct values", otherwise print "Wrong values".

  b)Write a program in C to find transpose of a given matrix


7)a) Write a C Program to print contents of file

  b) Write a C program to add two matrix of the size 2X2.


8)a) Write a C program to check whether a given number is an Armstrong number or not.

  b) Write a program in C to swap numbers using call by reference.


9)a) Write a program in C to add two numbers using pointers.

  b) Write a program to read & display the student data using structure


10)a)Write a C program to write some text to a text file

   b)Write a program to read & display the student data using UNION


No comments:

Post a Comment