Interview questions

Software Developer interview questions – page 30

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

  1. Given a set of time intervals in any order, merge all overlapping intervals into one and output the result which should have only mutually exclusive intervals.

  2. Code to print * in five consecutive lines

  3. A ball is left from a height of 10 meters. After bouncing first time it looses 10% of its previous height the next time it bounces. Write a code to calculate the number of bounces the ball goes through until it comes to rest.

  4. Which is the best and less time consuming way to calculate factorial of a number?

  5. Have you ever be in a situation where your task is not completed in time and you have to make quick decisions?

  6. class hierarchy, List the number of VTables created

  7. When to use List and Vector of Standard Template Library ?

  8. Given a string "I LOVE CODING", print "CODING LOVE I"

  9. Write a program for an operator(=) such that it behaves differently for integer and character

  10. Given an array, sort the zeroes from non zeros for example Input: 1 2 0 0 7 4 42 0 0 0 6 Output: 1 2 7 4 42 6 0 0 0 0 0

  11. Different types of polymorphism, the diamond problem, and how can it be avoided?

  12. Given a chessboard find the maximum number of squares present?

  13. What is C++? Difference between deep and shallow copy?

  14. What is pre initialization ?

  15. Reverse a linked list with and without using Recursion

  16. Find Minimum and Maximum of an array in only one traversal

  17. Normalized form is better or storing in a single table/ 2 tables is better?

  18. Write a query to find name of a player with maximum number of runs in a match on given date and given venue

  19. What is foreign key? can foreign key be Null?

  20. What is normalization? why should we do normalization?

  21. Given a tree, WAP such that a matrix is generated so that: Tree: 1 / 2 3 | / 4 5 6 Matrix: 0 1 2 3 4 5 6 1 0 1 1 1 1 1 2 0 0 0 1 0 0 3 0 0 0 0 1 1 4 0 0 0 0 0 0 5 0 0 0 0 0 0 6 0 0 0 0 0 0

  22. What is primary key? unique key?

  23. Can unique key be a primary key?

  24. Template classes, WAP operator= for template class such that it behaves differently for int and char *

  25. Difference between deep and shallow copy?

  26. inheritance concepts, private/public/protected concepts?

  27. Whats "preinitialization" View Answer

  28. Different versions of polymorphism, how to solve the problem of multiple inheritance

  29. Find Min and Max of an array in only one traversal

  30. Given a chessboard find maximum number of squares present

Companies that ask Software Developer questions