Interview questions
Software Developer interview questions – page 30
945 questions. Tap “Show answer” to check yourself.
-
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.
-
Code to print * in five consecutive lines
-
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.
-
Which is the best and less time consuming way to calculate factorial of a number?
-
Have you ever be in a situation where your task is not completed in time and you have to make quick decisions?
-
class hierarchy, List the number of VTables created
-
When to use List and Vector of Standard Template Library ?
-
Given a string "I LOVE CODING", print "CODING LOVE I"
-
Write a program for an operator(=) such that it behaves differently for integer and character
-
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
-
Different types of polymorphism, the diamond problem, and how can it be avoided?
-
Given a chessboard find the maximum number of squares present?
-
What is C++? Difference between deep and shallow copy?
-
What is pre initialization ?
-
Reverse a linked list with and without using Recursion
-
Find Minimum and Maximum of an array in only one traversal
-
Normalized form is better or storing in a single table/ 2 tables is better?
-
Write a query to find name of a player with maximum number of runs in a match on given date and given venue
-
What is foreign key? can foreign key be Null?
-
What is normalization? why should we do normalization?
-
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
-
What is primary key? unique key?
-
Can unique key be a primary key?
-
Template classes, WAP operator= for template class such that it behaves differently for int and char *
-
Difference between deep and shallow copy?
-
inheritance concepts, private/public/protected concepts?
-
Whats "preinitialization" View Answer
-
Different versions of polymorphism, how to solve the problem of multiple inheritance
-
Find Min and Max of an array in only one traversal
-
Given a chessboard find maximum number of squares present