Data Structure interview questions – page 29

893 questions. Tap “Show answer” to check yourself.

Advertisement
  1. How can I write XML with the parser?

  2. How can I find out the line number of the current line?

  3. Which data structure will you use for deadlock?

  4. How can I find out the depth of a node in the XML structure?

  5. If each element of the array X(7,9) occupies 4 bytes, what will be the starting address of the element X(2,3) of this array if the starting address of the array X is 3000

  6. What is a Pure Function?

  7. What's the difference between Text Content and CDATA sections?

  8. Virtual functions allow you to

  9. Write a generic macro swap which can be used for any data types like integer, float, pointer... etc

  10. What is store procedure and how can we call it ?

  11. What is union and what is difference between Union all or Union in Sql?

  12. FIFO and LIFO

  13. Advertisement
  14. Describe Tries data structure?

  15. What is the difference between array and link list. Advantage of link list over array and vice versa?

  16. Sql query management

  17. Tell me something computer

  18. Create sqare matrix of 0s and 1s.

  19. How to remove a node without head?

  20. How do you maintain the data base secretly

  21. You have given a tree (not necessarily a binary tree)... you need to do the level order traversal in such a way that it is spiral ( I am not sure whether it should be called spiral or something else ;) )

  22. Given two arrays of size n, find the intersection (The set intersection just like union) in O(n) time

  23. What is the differnce between Array and Hash Table?

  24. 3 Puzzles were asked

  25. Design a data structure to find the next higher element for each element in an array. For e.g. if array is 1 2 3 4 5 8 6 o/p should be (element) (next higher element) 1 2 2 3 3 4 4 5 5 8 8 noth...

  26. Advertisement
  27. Explain the three applications in which stacks are used?

  28. Which one is the efficient sorting technique for arranging the books in a library?

  29. Design a stack such that push(), pop() and minimum() can be done in constant time.

  30. Given a array of random integers, sort the odd elements in descending order and even numbers in ascending order. e.g. for i/p (1,4,5,2,3,6,7) O/p = (7,5,3,1,2,4,6) Optimize for time complexity.

  31. Which of the following abstract data types are NOT used by Integer Abstract Data type group?

  32. What is the difference between CHAR and VARCHAR2? If VARCHAR2 serves the uses of CHAR why CHAR is still used and not been discarded yet?

Advertisement