Interview questions

Software Engineer interview questions – page 6

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

  1. Explain Polymorphism,Constructors,Destructors,Classes

  2. Explain Encapsulisation

  3. Remove duplicates in linked lists

  4. Explain mergesort and implement it in code

  5. Design the underlying data structure behind a login page

  6. State the maximum number of trees that can be planted such that all the trees are equidistant from one another

  7. When would the angle between minute and hour hands of the clock be 180 degrees from 1:00pm to 2:00pm?

  8. 4. Which traversal would I prefer for finding a cycle in a graph?

  9. Explain time and space complexities of hashmap

  10. Trace the output of a C/C++ code snippet containing extensive pointers and references

  11. Explain segmentation fault

  12. Explain BFS and DFS

  13. You are given two cubes. Represent the date of a month (01 ­ 31) using both the cubes by placing numbers on the given cubes

  14. Given an array containing repeated characters, find the character repeated most number of times

  15. Program to reverse a singly linked list both recursively and iteratively

  16. There are 12 balls which are identical in size and appearance but one is an odd weight (could be light or heavy). Find it in minimum number of weighings using a balance

  17. Program to reverse a singly linked list in groups of k recursively

  18. Program to find the length of the longest substring without repeating characters in a string

  19. Program to find the intersection point of two singly linked lists in O(n)

  20. Program to swap kth and kth to last element of a singly linked list in one pass. You are not given the length of the linked list before hand

  21. Program to reverse the ordering of words in a sentence

  22. Number of rectangles/squares in chess board

  23. some basic problems (OOP concept,basic datastructures)

  24. Vertical sum of binary tree

  25. calculate the top 10 words , which comes frequently in 1 hour time span , on facebook, (dynamically)

  26. defective ball puzzle problem

  27. What is virtual memory? Will we need virtual memory even if we have infinite amount of RAM?

  28. Given an array, Find out maximum length of subarray where max of subarray

  29. Calculate the level sum of the binary tree

  30. Tell me about your internship, B.Tech project(BTP), CV

Companies that ask Software Engineer questions