The document lists a series of C programming tasks for offline assessment scheduled from April 7 to April 12, 2025. The tasks cover a wide range of topics including number manipulation, string processing, array operations, and sorting algorithms. Each task specifies a particular programming challenge, such as checking for prime numbers, finding palindromes, and sorting techniques.
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)
3 views3 pages
Practice Questions
The document lists a series of C programming tasks for offline assessment scheduled from April 7 to April 12, 2025. The tasks cover a wide range of topics including number manipulation, string processing, array operations, and sorting algorithms. Each task specifies a particular programming challenge, such as checking for prime numbers, finding palindromes, and sorting techniques.
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 programs for offline assessment for the week 07/04/2025 to 12/04/2025
1. Program to swap two numbers without using third variable.
2. Program to check given number is Power of 2 or not. 3. Program to check given char is vowel or not 4. Program to find area of triangle 5. Program to perform division of two numbers 6. Program to print a random number. 7. Program to find the largest in the two given numbers 8. Program to check given number is even or odd 9. Program to check given number is even or odd without using if else control statement 10. Program to check given number is even or odd without using % operator. 11. Program to find smallest number from the given 3 numbers 12. Program to find smallest odd number from the array 13. Program to find sum of even numbers in user given range 14. Program to print a random number in the user given range 15. Program to find sum of prime digits in a given number. 16. Program to check given number is prime or not 17. Program to print primes in the user given range 18. Program to count primes in the user given range 19. Program to check the difference of max prime and min prime in the user given range 20. Program to check given number is palindrome or not 21. Program to check given number is palindromic prime or not. Ex: 11, 101, 131, 151, 181, 191,313…. Are palindromic primes. 22. Program to print palindromes in the user given range 23. Program to print palindromic primes in the user given range 24. Program to check given number is Armstrong number or not. 25. Program to print Armstrong numbers in the user given range. 26. Program to count Armstrong numbers in the user given range. 27. Program to print primes in the array. 28. Program to find sum of primes in the array 29. Program to count of primes in the array 30. Program to find sum of evens in the array 31. Program to find smallest prime in the array 32. Program to find largest even in the array 33. Program to find smallest odd in the array 34. Program to find kth smallest even number in the array 35. Program to find kth largest prime in the array 36. Program to check if the array contains all primes between smallest and largest primes of the array. Ex: Input: a=[25,11, 12,7,19,45,13,60,17,80] Output: True Explanation: smallest prime: 7 Largest prime: 19 Array has all primes between 7 to 19, hence the output : True. 37. Program to find union of two arrays. 38. Program to find intersection of two arrays 39. Program to find the difference of two sets. 40. Program to find and count duplicate elements from the array 41. Program to find and count unique elements from the array 42. Program to find the element that is repeated for more number of times in the array 43. Program to find the difference between smallest and largest elements of the array 44. Program to check given array is a palindrome array or not 45. Program to check every element is a palindrome or not in the array 46. Program to find and print unique elements in the array. 47. Program to print majority element from the array. (An element which is repeated for more times is called majority element) 48. Program to segregate the even and odds in the given array 49. Program to segregate the positive and negative numbers. 50. Program to segregate the Non-zero and zero elements in the array. 51. Find the smallest digit from the largest number in the array 52. Find the largest digit from the smallest number in the array 53. Find sum of digits in in the given number 54. Find reverse of a given number 55. Check given number is palindrome or not 56. Check given string is palindrome or not without using any predefined function 57. Count number of digits in the string 58. Count number of consonants in the string 59. Find sum of digits in the string 60. Find sum of numbers in the string 61. Find largest digit in the string 62. Find largest number in the string 63. Find smallest digit in the string 64. Find smallest number in the string 65. Print Fibonacci series up to given number n by using recursive function. 66. Program to find nth term in the Fibonacci series 67. Find factorial of a given number using recursive function. 68. Find the GCD of two numbers 69. Find the LCM of two numbers 70. Print random number between given x and y. 71. Count number of special characters in the string 72. Check given string is a valid password or not. 73. Check given string contains only alphabets or not. 74. Check a string is valid phone number or not. 75. Count lower case letters in a string. 76. Program to print doubleCharacter string for the given string. Ex: Input: s=”abc” Output: “aabbcc” 77. Program to check XYZ is in Middle or not. Ex: Input: s=”abcXYZpqr” Output: True 78. Program to find largest digit in the largest number in the given string. 79. Program to count number of unique characters in the given string. 80. Program to print most repeated character in the given string. 81. Program to print most repeated digit in the given string. 82. Program to print most repeated special character from the given string. 83. Program to find and print duplicate character from the string. 84. Program to print unique special character from the string 85. Program to print all possible sub strings Example: Input: s=”pen”; Output: “p”, “pe”, “pen”, “e”, “en”, “n”. 86. Program to print largest substring that contains unique characters. 87. Program to print largest palindrome substring from the given string 88. Program to print most repeated character from the given string. 89. Program to find factorial of a given number by using recursive function 90. Program to print Fibonacci series up to user given number by using recursive function 91. Program to find sum of the digits by using recursive function. 92. Program to compute ab for any given a and b by using recursive function 93. Program to find GCD of given two numbers by using recursive function. 94. Program to check given number is palindrome or not by using recursive function 95. Program to find sum of numbers in the given range by using recursive function 96. Program to sort array elements by using merge sorting technique 97. Program to sort array elements by using Quick Sorting technique 98. Program to sort array elements by using selection sorting technique 99. Program to sort array elements by using Insertion sorting technique 100. Program to arrange characters in ascending order with respect to their ascii values