Developer Interview Questions

268,884 developer interview questions shared by candidates

A rustic village contains one million married couples and no children. Each couple has exactly one child per year. Each couple wants a girl, but also wants to minimize the number of children they have, so they will continue to have children until they have their first girl. Assume that children are equally likely to be born male or female. Let p(t) be the percentage of children that are female at the end of year t. What is p(t)? "Can't tell" is a potential answer if you don't have sufficient information.
avatar

Senior Java Developer

Interviewed at Acuitus

4.4
Apr 6, 2010

A rustic village contains one million married couples and no children. Each couple has exactly one child per year. Each couple wants a girl, but also wants to minimize the number of children they have, so they will continue to have children until they have their first girl. Assume that children are equally likely to be born male or female. Let p(t) be the percentage of children that are female at the end of year t. What is p(t)? "Can't tell" is a potential answer if you don't have sufficient information.

One of Mr. Bajaj, his wife, their son and Mr. Bajaj's mother is an Engineer and another is a Doctor. If the Doctor is a male, then the Engineer is a male. If the Engineer is younger than the Doctor, then the Engineer and the Doctor are not blood relatives. If the Engineer is a female, then she and the Doctor are blood relatives. Can you tell who is the Doctor and the Engineer
avatar

Software Developer

Interviewed at Zoho

4.2
Aug 11, 2017

One of Mr. Bajaj, his wife, their son and Mr. Bajaj's mother is an Engineer and another is a Doctor. If the Doctor is a male, then the Engineer is a male. If the Engineer is younger than the Doctor, then the Engineer and the Doctor are not blood relatives. If the Engineer is a female, then she and the Doctor are blood relatives. Can you tell who is the Doctor and the Engineer

Viewing 321 - 330 interview questions

Glassdoor has 268,884 interview questions and reports from Developer interviews. Prepare for your interview. Get hired. Love your job.