Basic Loops & Conditionals (1–10)
1. Print numbers from 1 to N using a loop.
2. Check whether a number is even or odd.
3. Find the sum of first N natural numbers.
4. Print multiplication table of a given number.
5. Check whether a number is positive, negative, or zero.
6. Find factorial of a number using a loop.
7. Count the number of digits in a number.
8. Reverse an integer number.
9. Check whether a number is a prime number.
10. Print all prime numbers between 1 and N.
📦 Arrays Practice Questions (11–25)
11. Find the largest element in an array.
12. Find the smallest element in an array.
13. Find the second largest number in an array.
14. Find the third largest number in an array.
15. Reverse an array.
16. Sort an array in ascending order.
17. Sort an array in descending order.
18. Count even and odd numbers in an array.
19. Find the sum of all elements in an array.
20. Find the average of array elements.
21. Check if an array is sorted or not.
22. Remove duplicate elements from an array.
23. Search an element using linear search.
24. Search an element using binary search.
25. Merge two arrays.
🧵 Strings Practice Questions (26–35)
26. Reverse a string.
27. Check whether a string is a palindrome.
28. Count number of vowels in a string.
29. Count number of consonants in a string.
30. Remove spaces from a string.
31. Convert lowercase to uppercase without using built-in function.
32. Count frequency of each character in a string.
33. Check whether two strings are anagrams.
34. Find the first non-repeating character.
35. Find the length of a string without using built-in function.
🧠 Logic-Based Questions (36–40)
36. Swap two numbers without using a third variable.
37. Find GCD (HCF) of two numbers.
38. Find LCM of two numbers.
39. Generate Fibonacci series up to N terms.
40. Check if a number is an Armstrong number.