Questions For File
Questions For File
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
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
10. write a programme to find prime numbers within the given range
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
15. Write a program to print multiplication table of any number entered by the user
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
2 3
4 5 6
1 2
1 2 3
**
***
.... * * * *
***
**
***
*****
..... * * * * * * *
*****
***
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
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
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
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
49 Write a program to sort array of 10 integer elements using insertion sort method
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