Advertisement

Responsive Advertisement

C Tier 2

Tier 2: Novice Coding Questions for C

  1. Write a program to check if a given year is a leap year or not.
  2. Write a program to check if a number is even or odd.
  3. Write a program to find the factorial of a number.
  4. Write a program to check if a number is a palindrome.
  5. Write a program to find the greatest common divisor (GCD) of two numbers.
  6. Write a program to find the least common multiple (LCM) of two numbers.
  7. Write a program to check if a number is prime.
  8. Write a program to print the first n prime numbers.
  9. Write a program to reverse a given number.
  10. Write a program to calculate the sum of digits of a number.
  11. Write a program to find the length of a string.
  12. Write a program to count the number of vowels in a string.
  13. Write a program to convert a binary number to decimal.
  14. Write a program to convert a decimal number to binary.
  15. Write a program to find the power of a number using recursion.
  16. Write a program to generate the Fibonacci series up to n terms using recursion.