Questions for the programming file
1. write a programme to find surface area and volume of a sphere
2. write a programme to take 5 digit number as an input and find the sum of its digits
3. write a programme to enter coefficients of a quadratic equation and find its root
4. write a programme to enter 3 numbers and find greatest of them
5. write a programme to check whether a year is leap year or not
6. write a programme to enter 4 numbers and find greatest of them
7. WAP to find the value of case 1 Y=1+X , case 2 Y=1+(X/n) , case 3 Y= 1+(X^(n)) , case 4 Y= 1+(X*n)
8. write a programme to take 5 digit number as an input and find the sum of its digits using for loop
9. write a programme to find whether the given number is prime or not
10. write a programme to find prime numbers within the given range
11. write a programme to print reverse of the input number
12. write a programme to find whether the given number is palindrome or not
13. write a programme to swap the given 2 numbers without using 3rd variable
14. write a programme to find factorial of the given number
15. Write a program to print multiplication table of any number entered by the user
16. write a programme to print fibonacci series
17. write a programme to print the sum of given series till given number of terms 1/1! + 1/2! + 1/3!
+ ....
18. write a programme to print the sum of sine series till given number of terms
19. write a programme to print following pattern
2 3
4 5 6
7 8 9 10 ....... till n number of rows
20. write a programme to print following pattern
1 2
1 2 3
1 2 3 4 ....... till n number of rows
21. write a programme to print following pattern
**
***
* * * * ....... till n number of rows
22. write a programme to print following pattern
.... * * * *
***
**
* till n number of rows
23. write a programme to print following pattern
***
*****
* * * * * * * ....... till n number of rows
24. write a programme to print following pattern
..... * * * * * * *
*****
***
* till n number of rows
25. write a programme to print diamond pattern
26. Write a programme to find LCM and HCF of given two numbers
27. Write a programme to count the number of +ve, -ve and zeros in a given set of integer numbers
28. Write a program to sort 10 integer elements of an array
29. Write a program to search an element in an array without any duplicate entry
30. Write a program to search an element and display its all positions in an array with duplicate
entry
31 Write a program to delete a given element from given position from an array (delete means
overwrite and print array till n-1)
32 Write a program to delete a given element from an array, compatible with duplicate terms
(delete means overwrite and print array till n-1)
or
Write a program to delete duplicate element from an array.
33 Write a program to insert a given element of an array
34 write a programme to add two matrices
35 write a programme to find transpose of given matrix
36 write a programme to multiply two matrices
37 write a programme to check whether the given matrix is identity matrix or not
38 write a programme to check whether the given matrix is upper triangular matrix or not
or
write a programme to check whether the given matrix is lower triangular matrix or not
39 write a programme to find sum of principle diagonal (trace) of matrix
40 write a programme to print frequency of each element of an array (preferable size 10)
41 write a programme to check for palindrome string without using string handling functions
42 write a programme to find a substring in a given string and give its position
43 write a programme to sort all the characters of a given string according to dictionary
44 write a programme to understand Call by value
45 write a programme to understand Call by reference
46 Write a programme to check a whether given number as prime or armstrong number using user
defined functions
47 Write a programme to convert a binary number into a decimal number using user defined
functions
48 Write a program to convert a given matrix into upper triangular matrix.
49 Write a program to sort array of 10 integer elements using insertion sort method
50 Write a program to delete duplicate characters from a given string
51 Write a program Evaluate the cosine series up to n terms
52 write a programme to find the factorial of a number using recursion
53 write a programme to find the fibonacci series using recursion
54 write a programme to define a structure student that will contain roll no, name and total marks
of a student. The program will ask the user to input the details of five students and print the details
of all the students whose total marks is greater than a given value
55 Write a C program to take 5 names as input and print the longest name
56 Write a C program to take 5 names as input and print them in dictionary order
PRACTICE QUESTIONS
WAP in C to count the digits of a given number using recursion
WAP in C to find the sum of digits of a number using recursion
WAP in C to get the largest element of an array using recursion
WAP in C to reverse a string using recursion
Write a program in C to check a number is a prime number or not using recursion