0% found this document useful (0 votes)
18 views

Basic Coding Questions For Practice

Uploaded by

Musiclover Huu
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
18 views

Basic Coding Questions For Practice

Uploaded by

Musiclover Huu
Copyright
© © All Rights Reserved
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

1.

Write a code to reverse a number

2. Write the code to find the Fibonacci series upto the nth term.

3. Write code of Greatest Common Divisor

4. Write code of Perfect number

5. Write code to Check if two strings are Anagram or not

6. Write code Check if the given string is Palindrome or not

7. Write code to Calculate frequency of characters in a string

8. Write code to check if two strings match where one string contains wildcard
characters

9. Write a code for bubble sort

10. How is the merge sort algorithm implemented?

11. Write to code to check whether a given year is leap year or not.

13. Write a code to replace a substring in a string.

14. Write a code for Heap sort.

15. Write a code to replace each element in an array by its rank in the array

16. Write a code to find circular rotation of an array by K positions.

18. Write a code to check for the longest palindrome in an array.

19. Write a code to find the factorial of a number.

20. Write the code to for Armstrong number

21. Write a program to find the sum of Natural Numbers using Recursion.

23. Write a Program to Find the Sum of Natural Numbers using Recursion.

24. Write code to check a String is palindrome or not?

25. Write a program for Binary to Decimal to conversion

26. Write a program to check whether a character is a vowel or consonant

27. Write a code to find an Automorphic number

28. Write a code to find Find the ASCII value of a character

29. Write a code to Remove all characters from string except alphabets

30. Write a code to Print the smallest element of the array

31. Write a code to Reverse the element of the array

32. Write a code to Sort the element of the array


33. Write a code to Sort the element of the array without sort method

34. Write a code to Replace a Substring in a string

35. Write a code to Remove space from a string

36. Write a code to Count Inversion

37. Write a code to find consecutive largest subsequence

38: Write a Program to Find out the Sum of Digits of a Number.

39: Write a Program to Find out the Power of a Number

40: Write a Program to Find out the Sum of Digits of a Number.

41: Write a Program to Add two Fractions

42: Write a Program to Find the Largest Element in an Array.

43: Write a Program to Find the Roots of a Quadratic Equation

44: Write a Program to Find the Prime Factors of a Number.

45: Write a Program to Convert Digits to Words.

46: Write a Program to Find the Factorial of a Number using Recursion.

47: Write a Program to Reverse an Array

48. Write code to check if two strings match where one string contains wildcard
characters

49: Write a Program to find out the Spiral Traversal of a Matrix.

50. Write a code to find Fibonacci Series using Recursion

You might also like