AlfaTechLab
Some important coding question for interview
Q1. Write a code to check whether the given number is prime number or not.
Q2. Write a code to find sum of digits of a given number.
Q3. Write a code to find GCD of two numbers.
Q4. Write a code to find perfect number.
Q5. Write a code to print fibonacci series.
Q6. Write a code to check whether the number is even or odd.
Q7. Write a code to count the number of digits in a number.
Q8. Write a code to find whether a number is power of two or not.
Q9. Write a code to swap two numbers without using temporary variable.
Q10. Write a code to make a simple calculator.
Q11. Write a code to reverse a string.
Q12. Write a code to sort the characters in a given string.
Q13. Write a code to find length of a string.
Q14. Write a code to check whether the given number is palindrome or not.
Q15. Write a code to check whether the two strings are anagram of each other or not.
Q16. Write a code to find sum of array elements.
Q17. Write a code to find largest element in an array.
Q18. Write a code to add two matrices.
Q19. Write a code to print all distinct elements of a given integer array.
Q20. Write a code to check armstrong number.
Q21. Write a code to check whether a character is vowel or consonant.
Q22. Write a code to check whether the string is substring of given string or not.
Q23. Write a code to find LCM of two numbers.
Q24. Write a code to delete duplicate elements from array.
Q25. Write a code to find smallest element in an array.
Q26. Write a code to find pairs with given sum in an array.
Q27. Write a code to search element in array using binary search algorithm.
Q28.Write a code to sort array elements in ascending order using bubble sort.
Q29. Write a code for Left array rotation.
Q30. Write a code to print pascal’s triangle.
Q31. Write a code To check friendly pair.
44. Write a code to print half inverted pyramid pattern using stars.
59. Write a code to find square root of a number.
55. Write a code to check automorphic number.
60. Write a code to find the missing number in array.
63. Write a code to print multiplication table of a number.
46. Write a code to print upper triangular elements of an array.
48. Write a code to convert number from decimal to binary number.
51. Write a code to check whether a number is positive or negative.
41. Write a code to print floyds triangle.
36. Write a code to sort array elements in ascending order using Insertion Sort.
34. Write a code to sort array elements in ascending order using selection sort algorithm.
39. Write a code to subtract two matrices.
43. Write a code to print half pyramid pattern using stars.
61. Write a code to check harshad (or niven) number.
64. Write a code to remove all occurrences of a character in a string.
33. Write a code to sort array elements in descending order using bubble sort.
37. Write a code to sort array elements in descending order using Insertion Sort.
47. Write a code to concatenate two string without using library function.
54. Write a code to find square root of a number.
58. Write a code to check strong number.
62. Write a code to print the numbers divisible by 5 or 7.
3. Write a code to check whether the given year is leap year or not.
24. Write a code to print all permutations of a given string.
20. Write a code to check whether the given string is pangram or not.
22. Write a code to count occurrences of a given character in a string.
42. Write a code to print full pyramid pattern using stars.
45. Write a code to print lower triangular elements of an array.
52. Write a code to find greatest of three numbers.
49. Write a code to count total number of vowels and consonants in a string.
40. Write a code to multiply two matrices.
35. Write a code to sort array elements in descending order using selection sort algorithm.
56. Write a code to check abundant number.
13. Write a code to find factorial of a number.