Software Development Interview Questions

37,027 software development interview questions shared by candidates

• Puzzle Question: If we have 4 tablets which are physically same (Same colour, shape, size, dimension, weight). 2 are for fever and 2 are for cough. The person has to take 1 tablet for fever and 1 for cough. How will he/she decide?
avatar

Software Development Engineer

Interviewed at Expedia Group

3.7
Oct 24, 2016

• Puzzle Question: If we have 4 tablets which are physically same (Same colour, shape, size, dimension, weight). 2 are for fever and 2 are for cough. The person has to take 1 tablet for fever and 1 for cough. How will he/she decide?

Identify whether four sides (given by four integers) can form a square, a rectangle or neither. Input: Each line of the input describes a single polygon, and contains four space-separated integers, which represent the length of the sides of the polygon. The input lines will follow the 'A B C D' order as in the following representation: A ------| | D B | c ------| Output: A single line which contains 3 space-separated integers, representing the number of squares, number of rectangles and number of other polygons with 4 sides. Note that squares shouldn't be counted as rectangles. Invalid polygons should also be counted as 'other polygons'. Constraints The four integers representing the sides will be such that: -2000 <= X <= 2000 (Where X represents the integer)
avatar

Software Development Team Leader

Interviewed at Booking.com

4.1
Oct 17, 2017

Identify whether four sides (given by four integers) can form a square, a rectangle or neither. Input: Each line of the input describes a single polygon, and contains four space-separated integers, which represent the length of the sides of the polygon. The input lines will follow the 'A B C D' order as in the following representation: A ------| | D B | c ------| Output: A single line which contains 3 space-separated integers, representing the number of squares, number of rectangles and number of other polygons with 4 sides. Note that squares shouldn't be counted as rectangles. Invalid polygons should also be counted as 'other polygons'. Constraints The four integers representing the sides will be such that: -2000 <= X <= 2000 (Where X represents the integer)

Viewing 3371 - 3380 interview questions

Glassdoor has 37,027 interview questions and reports from Software development interviews. Prepare for your interview. Get hired. Love your job.