Top programming questions asked in interview

Programming questions are asked to check how much you familiar with fundamental concept of programming.
In coding interview questions are asked from data structure, algorithm along with logical questions. If you mastered in
array, string, linked list, binary tree, pattern printing etc. You easily crack the interview.

Here we are listing top programming questions asked in interview.

  1. How is a binary search tree is implemented ?
  2. How do you swap two numbers without using third variable ?
  3. Write a program to find prime factors of an integer ?
  4. How to reverse a singly linked list ?
  5. How do you find depth of a binary tree ?
  6. Print out all leaf nodes of a binary tree ?
  7. In an array 1-100 numbers are stored , one number is missing , how do you find it ?
  8. How to remove duplicate elements from array ?
  9. How can you reverse a string ?
  10. How to reverse a number ?
  11. How do you remove nth node from end of a linked list ?
  12. How do you find the largest and smallest number in an unsorted integer array ?
  13. How do you find the sum of two simply linked lists using stack?
  14. How do you find the length of a singly link lists ?
  15. How is radix sort algorithms implemented ?

  16. How do you convert a given string into an integer like atoi() ?
  17. How do you design a vending machine ?
  18. How to add an element at the middle of the linked list ?
  19. How do you find all the permutation of a string ?
  20. What is the difference between array and linked lists ?
  21. How do you perform inorder traversal in a given binary tree ?
  22. How do you perform preorder traversal in a given binary tree ?
  23. How is merged sort algorithm implemented ?
  24. How can you check a string contains only digits ?
  25. Program to find sum of all array elements ?
  26. Program to delete duplicate elements from an array ?
  27. What is the difference between SQL and NoSQL database ?
  28. Write a program to check whether two strings are anagram or not ?
  29. What is difference between NULL vs VOID in programming ?
  30. What is data structure ?
  31. What are some real world applications of stack ?
  32. How to check if two strings are rotation of each other ?
  33. How to calculate square root of a given number ?
  34. Write a program to transpose a matrix ?
  35. How to reverse a given string using recursion ?
Share This!

Leave a Reply

Your email address will not be published.