Intern Interview Questions in Chicago, IL | Glassdoor

# Intern Interview Questions in Chicago, IL

From retail to finance to medicine, every industry needs interns to provide additional support and assistance. Interview questions will vary greatly depending on the industry and role you are looking for. Expect to answer questions about how you work on teams and provide examples of any relevant work experience. To ace your interview, make sure to research the particular position you are applying for.

## Top Interview Questions

Sort: RelevancePopular Date

Feb 21, 2012
 You have three barrels. One barrel is filled with apples, one with oranges, and one with both apples and oranges. Each barrel is mislabeled. You can take out as many fruit as you like form each barrel and look at it. What is the minimum number of fruits you need to remove to correctly label the barrels?8 AnswersJust one. Take a fruit from the barrel labeled apples and oranges. You know this barrel is not the apples and oranges barrel, so whatever fruit you take must be the only fruit in that barrel. The other two barrels are mislabeled, so you can figure out the other two as well.Two. Take a fruit from A+O, if its an O then this barrel is O ...Now take out a fruit from A, if its an O then this barrel is A+O...and the 3rd is by default barrel AOne. Start of from A+O, the fruit u pick say O should be the barrel name. now that means that the barrel labelled A can be A+O or A... But since we know that barrels are mislabelled it cant be A. hence, we concluded it to be A+O and the last remaining barrel is A.Show More Responses1Trick question, just look inside the barrel...One. Since it's mislabeled, A can be labeled as O or A+O. Similarily, O = {A, A+O} and A+O = {O, A}. Case 1: Take 1 from A+O label, it turns out to be A. Relabel it. We have A, O mislabels left, and A+O, O real labels left. Mislabeled ones can ot be the same as real labels. So the mislabeled O should be A+O and A should be O. Case 2: also choose from A+O, but it turns out to be O. Solving the same as case 1.None, you don't need to move any of the fruit to correctly label the barrels. You need to change the labels.All three are mislabeled and you cannot look inside the barrels. If you take one out of the apples+oranges barrel, whatever fruit you pull out is the fruit of the barrel. And Since you know the other two are mislabeled, you would switch the labels. So you need to take out only one fruit

Aug 16, 2011
 To write down code for x^n in O(logn) time.6 Answerslinear: A^8 = A*A*A*A*A*A*A*A log: A^8 = (A^4)*(A^4) A^4 = (A^2)*(A^2) A^2 = A*Aint power(int x, unsigned int y) { int temp; if( y == 0) return 1; temp = power(x, y/2); if (y%2 == 0) return temp*temp; else return x*temp*temp; } Time Complexity of optimized solution: O(logn)slightly optimized one: template T power(T base, unsigned int n) { if (0 == n) return 1; if (1 == n) return base; T tmp = power(base, n / 2); tmp *= tmp; if (0 == n % 2) { return tmp; } return base * tmp; }Show More Responsesdef powlogn(x, n): if x == 0: return 1 elif x == 1: return x elif n%2: return x * powlogn(x*x, (n-1)/2) else: return powlogn(x*x, n/2)Use Intel compiler, it does it automatically.A^(2k)=A^k*A^k A^(2k+1)=(A^k)*(A^k)*A

Jun 12, 2012

### Intern at ALDI was asked...

Nov 30, 2018
 Explain a time you had too much to do in too little time5 AnswersWhen the lines were very long I feel that can be something to do in too little time just to get the customers out quickly as possible.I Prioritized my tasks, and found a way to multi task to complete everything that needed to be done to reach my production goals.I speak up immediately to ask for assistance in staying on schedule. I earn the ability to make the request by always supporting the rest of my team in the same fashion.Show More ResponsesFocus on the most important things to get done first.. complete goals 1 step at a time and ask team member for help if i couldn't finish everything.Work as hard as I can and ask for help

Mar 2, 2010

Feb 8, 2014

Apr 11, 2012
 Swap two variables without using a temp.5 AnswersCan be done using adding/subtracting, multiply/divide, xor.in c/c++: x^=y^=x^=y;You don't want to use +-/* as you might face under/overflow.Show More Responsesa= a*b; b = a/b; a = a/b;+/- is correct even with overflow

Oct 21, 2012
 A king has 1000 bottles of water, exactly one of which is poisoned. Servants die the day after consuming the poison. The king holds a party and has his servants drink the bottles. The next morning, the king finds out which servants are dead. What is the minimum number of servants that the king needs at the party to determine which bottle is poisoned?4 AnswersThe king needs 10 servants. Label the bottles in binary: 0000000000, 0000000001, 0000000010, 0000000011, ... The 1st servant drinks all bottles where the 1st digit is 1, not 0. The 2nd servant drinks all bottles where the 2nd digit is 1, not 0. The 3rd servants drinks all bottles where the 3rd digit is 1, not 0. The rest of the servants drink similarly. After finding out which servants are dead, the king can match the unique binary number to determine which bottle is poisoned.You need 6 servants.Since the king has to wait to the next morning to know, it will require 999 servants.Show More Responseswe dont know the capacity of a bottle, and a person can drink at an avg of 6 litre of water per day

 I'm giving you a choice between two games. In the first game, you roll two six-sided dice. For every number by which their sum exceeds 10, I will give you $1 and$0 if their sum is equal to or less than 10. In the second game, you still have two dice but once is already set to 5 so you can only roll one die. The same rules apply: you get a dollar for each number over 10 and get nothing if the sum is equal to or less than 10. Which game would you prefer to play, and how much would you be willing to pay me to play the preferred game over the other game?4 AnswersExpected value of the first game is (2/36)($1) + (1/36)($2) = 1/9 of $1. The expected value of the second game is (1/6)($1) = 1/6 of a dollar. Therefore, the second game is preferred and you would pay (1/6 of $1) - (1/9 of$1) = 1/18 of $1 to play the second game instead of the first game.I believe the interview candidate's answer is incorrect. The expected value of game #1 is (3/36)($1) + (33/36)($0) = 1/12 of$1. The expected value of game #2 is (1/6)($1) = 1/6 of$1. The second game is preferred, and you'd pay 1/12 of $1 to play the second over the first.The interview candidate's answer is correct. The wording states that in the first game, you receive$1 for every number by which the sum of the dice exceeds 10. This means that rolling a sum of 12 gives you $2 and rolling a sum of 11 gives you$1, so the expected value of the first game is indeed 1/9 of \$1.Show More Responsesthe E(X1) = 1/12, and E(X2) = 1/6