Docsity
Docsity

Prepare for your exams
Prepare for your exams

Study with the several resources on Docsity


Earn points to download
Earn points to download

Earn points by helping other students or get them with a premium plan


Guidelines and tips
Guidelines and tips

Programming Questions in C, Assignments of Computer Science

Contains every type of basic programming questions possible in C language given in every college in Computer Science.

Typology: Assignments

2022/2023

Uploaded on 04/04/2024

soumila-roy
soumila-roy 🇮🇳

1 document

1 / 4

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
CS Questions:
1. WAP to display the sum, difference, product and quotient of two
nos.
2. WAP to calculate the area of circle.
3. WAP to find simple interest.
4. WAP to convert Celcius to Farenheit.
5. WAP to check whether the no. is or not.
2𝑛
6. WAP to print the grade of a student depends on the marks.
Marks Grade
<40 Fail
>=40 Pass
7. WAP to print the grade of a student depends on the marks.
Marks Grade
<40 Fail
>=40 but <60 2ND Division
>=60 but <75 1ST Division
>=75 but <=100 Star
>100 Invalid Input
8. WAP to print the biggest among three integers using only if
statement.
9. WAP to print the commission value from the sales value.
Comission Value Sales Value
< ₹10000 0
pf3
pf4

Partial preview of the text

Download Programming Questions in C and more Assignments Computer Science in PDF only on Docsity!

CS Questions:

  1. WAP to display the sum, difference, product and quotient of two nos.
  2. WAP to calculate the area of circle.
  3. WAP to find simple interest.
  4. WAP to convert Celcius to Farenheit.
  5. WAP to check whether the no. is 2 or not. 𝑛
  6. WAP to print the grade of a student depends on the marks. Marks Grade <40 Fail >=40 Pass
  7. WAP to print the grade of a student depends on the marks. Marks Grade <40 Fail >=40 but <60 2 ND Division >=60 but <75 1 ST Division >=75 but <=100 Star >100 Invalid Input
  8. WAP to print the biggest among three integers using only if statement.
  9. WAP to print the commission value from the sales value. Comission Value Sales Value < ₹10000 0

=₹10000 but <₹50000 ₹1000 + 10% excess sales over ₹ =₹50000 but <₹100000 ₹2000 + 20% excess sales over ₹ = ₹100000 30%

  1. WAP to print the ascii code of the character.
  2. WAP to print the quotient and remainder of given two nos.
  3. WAP to print the size of different variables.
  4. WAP to check the given no. is even or odd.
  5. WAP to check the character is vowel or consonant.
  6. WAP to compute the roots of a quadratic equation.
  7. WAP to print the sum of n nos.
  8. WAP to print the sum of the given series: 1 𝑚 + 2 𝑚 + 3 𝑚 +......... + 𝑛 𝑚
  9. WAP to print the address of a variable.
  10. WAP to check the no. is prime or not.
  11. WAP to check the no. is perfect or not.
  12. WAP to check the no. is armstrong or not.
  13. WAP to check the no. is palindrome or not.
  14. WAP to check the no. is Krishnamurthy no. or not.

(g) A (h) 1 A B A 1 2 1 A B C B A 1 2 3 2 1 A B C D C B A 1 2 3 4 3 2 1 A B C D E D C B A 1 2 3 4 5 4 3 2 1

  1. WAP to print the sum of following series: 1+ (1+2)+(1+2+3)+......+(1+2+3+.......+n)
  2. WAP to print the sum of following series: 1/(1!) + 2/(2!) + 3/(3!) + ....... + 𝑛/(𝑛!)
  3. WAP to sort n numbers in ascending order.
  4. WAP to take two matrices from user and the print the sum of the two matrices.
  5. WAP to multiply two matrices and display the resultant matrix.
  6. WAP to display the transpose of a given matrix.