You have an array randomly filled with red, blue and green items. How do you order this list so the red items are at the beginning, followed by the blue ones, followed by the green ones? The algorithm should be in-place (no extra storage, or only constant extra storage) and the algorithm should only walk threw the array once (every position can only be read once).
Management Development Programme Interview Questions
25,411 management development programme interview questions shared by candidates
How would you cut a rectangular cake into two equal pieces when a rectangular piece has already been cut out of it? The cut piece can be of any size and orientation. You are only allowed to make one straight cut.
I was given a logic question where you have 5 balls. One of the balls is heavier than the others. What's the fewest number of times you have to compare weights to figure out which ball is heavier.
They had a mix of technical and the weird type of manhole cover questions. I found the questions geared towards tripping you up. One question seemed to indicate a binary search, but that turned out to be the wrong approach. You have two XBoxes and a 100 floor building. If you drop the XBox from a floor it either shatters or it doesn't. How do you reliably find the highest floor from which you can drop your XBox? Both XBoxes can break in the process. How many trials does your approach take in the worst case?
write a sql query to swap the genders i.e. from male to female and vice versa ?
The programs that i encountered: 1.Get the average marks from user and if avg>=80&&avg>=100 print grade A. avg>=60&&avg<=79 print grade B,else grade C. 2.write a program for the series 1,2,2,4,8,32. 3.write a function that accepts int array as parameter and print the sorted array. 4.draw a flow chart for the question 1. 5.write a function that accept string as a parameter and prints the number of vowels . 6.write an abstract class and performs the string length and reverse string operation. 7.write a class program with default and parameterized constructor and perform constructor overloading operation. 8.write a program for string validation. • Should not start with ‘.’ And should end with ‘.’ • The string must contain at least 3 spaces. • Size of the string not more than 20. 9.write a program for email validation • There is only one @ symbol • ‘.’ should come after the @ symbol • Should not start with ‘.’
Write code to return a sorted array of int, when passed in 2 sorted array of int to the method.
See above for type of question?
Do you have any children?
what is 2^4
Viewing 21 - 30 interview questions