collegeCurriculum

1st Sem

Previous Year C lab exam questions with answers

Previous Year C lab exam question papers

Question Paper 1

  1. Write a C program to display all Fibonacci Numbers…
  2. Write a C program to alphabetically sort the names…
  3. A company produces three types of products, Fan, Ac…
  4. Write a C program to read in a matrix of order MxN…

Question Paper 2

  1. Write a C program to read in two integers a and b and…
  2. Write a C program using the concept of array of structures…
  3. Write a C program to calculate the average of odd and even…
  4. Write a C program to calculate the volume and total surface area…

Question Paper 3

  1. Given a set of employees, Write a C program to calculate the… // program missing
  2. Write a C program using the concept of array of structures to calculate the Batting average…
  3. Given a set of numbers, Write a C program to find the number of even and odd numbers in it…
  4. Write a C program to read in a one dimensional array of integers in random order…

Question Paper 4

  1. Palindrome number
  2. Sum of Digits
  3. Reverse Number
  4. Write a C program to print number triangle
  5. Calculate nPr and nCr
  6. Program to generate multiplication table
  7. C Program to count number of digits in an integer
  8. Calculate the sum of natural numbers using the while loop
  9. C Program to reverse a string using pointer
  10. Add two distances (in Inch-Feet) system using structures
  11. Pyramid pattern using star*
  12. C Program to check whether the string is palindrome or not

Question Paper 5

  1. Write a C program to calculate the salary slip showing the net pay for each employee…
  2. Write a C program to read in a line of text and fine no. of capital letters, digits, words…
  3. Given the marks in two subjects for a number of students in a class. Write a C program to display…
  4. Create a user defined data type for storing the time in HH:MM:SS format. Write a C program using the concept of structures…

Question Paper 6

  1. Write a C program to find the sum and sum of squares…
  2. Write a C program using the concept of array of structures to display the applicant’s index mark…
  3. Write a C program to read in the rollno and the marks in two subjects(out of 100) for a set of students…
  4. Write a C program to create a structure to store Date in the format DD/MM/YYYY. Using the structure…

Question Paper 7

  1. Write a program to print the sum of all odd integers between 1 to 50.
  2. Write a program to find the sum of first 50 natural numbers.
  3. Write a program in C to compare two strings without using string library functions.
  4. Write a program in C to count the total number of alphabets, digits and special characters in a string.
  5. Write a program in C to get the largest element of an array using the function.
  6. Write a program in C to print the Fibonacci Series using recursion.
  7. Write a program in C to find the GCD of two numbers uding recursion.
  8. Write a program in C to count the total number of duplicate elements in an array.
  9. Write a program in C to find the maximum and minimum elements in an array.
  10. Write a program in C to find the sum of the right diagonals of a matrix.
  11. Write a program in C to accept two matrices and check whether they are equal.
  12. Write a program in C to check whether a given matrix is an identity matrix.
  13. C program to add two distances (in inch-feet system) using structures.
  14. C program to find simple interest.
  15. C program to calculate the difference between two time periods.