The document contains a list of programming exercises in C language for BCA 1st semester students. It includes tasks such as displaying messages, performing arithmetic operations, checking conditions, and calculating areas and salaries. Each exercise is designed to help students practice and enhance their programming skills in C.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
14 views3 pages
C Language Question Bca 1st Sem
The document contains a list of programming exercises in C language for BCA 1st semester students. It includes tasks such as displaying messages, performing arithmetic operations, checking conditions, and calculating areas and salaries. Each exercise is designed to help students practice and enhance their programming skills in C.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3
C LANGUAGE (BCA 1st Sem)
1. Write a program to display “Hello Computer science”.
2. Write a program to display “Hello Friends”. 3. Write a program to display “Hello BCA Student”. 4. Write a program to display two number (A=5 & B=6). 5. Write a program to display two float variable (A= 3.7 & B=9.2). 6. Write a program to display to find sum of two integer value where A=9 & B=7. 7. Write a program to display three character B, C, A. 8. Write a program to find area of rectangle where length= 3.9 & Breadth =2.7. 9. Write a program to find area of circle where radius= 3.7. 10. Write a program to find sum of digit of a given number N= 1234. 11. Write a program to find odd digit sum and even digit sum of number N= 1234. 12. Write a program to display integer variable which take from user. 13. Write a program to display value of integer and float variable which take from user. 14. Write a program to find addition of four integer value. 15. Write a program to display basic arithmetic operation. 16. Write a program to convert kilometer to meter. 17. Write a program to find value of S= (a+b+c)^2. 18. Write a program to convert a temperature from Fahrenheit to Celsius. 19. Write a program for swapping of two number value using third variable. 20. Write a program before swapping of two number value using third variable. 21. Write a program to display number is positive. 22. Write a program to check two number are equal. 23. Write a program for eligibility for voting age given by user. 24. Write a program to check the given number greater than 10 but less than 100. 25. Write a program to find a number within a range i.e. the number is either greater than 100 or less than 500. 26. Write a program to check a given number is positive or not. 27. Write a program to check two number are equal or not. 28. Write a program to find a given number is even or odd. 29. Write a program to find greatest of two number. 30. Write a program to find smallest of two number. 31. Write a program to find greatest of two number. 32. Write a program to find a number which is divisible by 5 & 6. 33. Write a program to find gross salary of an employee gross salary = basic salary + HRA + DA, user give only basic salary condition if basic salary more than 1000 then HRA = 25 % of basic salary DA = 40 % of basic salary otherwise HRA = 50 % of basic salary DA = 30 % of basic salary. 34. Write a program to find the point whether it is on the circle inside the circle or outside the circle. take from user X, Y and radius = R. 35. Write a program to check root of the quadratic equation are real and imaginary. 36. Write a program to find square of a number whose least significant digit is 5. 37. Write a program to find largest of three numbers. 38. Write a program to find smallest of three numbers. 39. Write a program to calculate the electricity consumption bill. Reading the starting and ending meter reading charge No of units Consumed Rate in (RS) 200 - 500 3.50 100 - 200 2.50 1. Less than 100 1.50 40. Write a program to find largest of five number. 41. Write a program to difference colour display using switch 1 – Red 2 – Green 3 – White 4 – Pink 42. Write a program to display Menu for difference shape. A – Circle B – Rectangle C – Square D – Triangle 43. Write a program to make basic CALCULATOR. 44. Write a program in C to find maximum of largest two number using conditional operator or ternary operator. 45. Write a program in C to check a number is even or odd using conditional operator. 46. Write a program in C to check given number is positive or negative using conditional operator. 47. Write a program to print first ‘n’ natural number using ‘FOR’ loop. 48. Write a program in C to find sum of first ‘n’ natural number using ‘FOR’ loop. 49. Write a program in C to print sum of even number or sum of odd number of first ‘n’ natural number. 50. Write a program in C to print a number which id divisible by 5 and 7 between 1 to 1000. 51. Write a program to find square of number between 1 to 10. 52. Write a program in C to find cubic in the given range 1 to 100. 53. Write a program in C to find sum and square sum between 1 to 10. 54. Write a program in C to find all number between 7 to 100 which is exactly divisible by 4. 55. Write a program in C to find a number between 7 to 100 which is exactly divisible by 4 and if divided by 5 and 6 remainder obtained should be 4. 56. Write a program to display a number from 1 to 9 and their square root. 57. Write a program to find one student marks in the form of percentage as per following condition: 1. Enter any five subject marks. 2. If percentage greater than 60 or less than equal to (<=) 100 than print 1 st division. 3. If percentage greater than 45 and less than 60 then print 2nd division. 4. If percentage less than 45 then print 3rd division.