# Companies matching "investment banking"

## investment banking Interview Questions

Assume there is a method provided getNextperson() which gives Person objects which have comparable interface implemented, now read from a file records and sort it and give first 1000 records, write code on the paper maybe use tree data structure tree data structure ? i hope u meant to say "TreeSet"; but the question doesnt say that getNextPerson() will be unique. So let us not bank on treeSet. So just add them on to a arrayList and do a Collections.sort(arrayList); The question is actually quite simple since you were given that Comparable interface is already implemented (eg, public int compareTo(Object o) method is overridden in Person object). First step, 'read from a file all records' and store each Person object returned by getNextPerson() in List records = new ArrayList(). Next step, call Collections.sort(records) to sort (by criteria specified in compareTo() method, such as Last and First name, or any other meaningful parameter). Final step, 'give first 1000 records' -- either by iterating over first 1000 (checking size() >= 1000) or by returning the list consisting of only 1000 records (either copy into a new list with size 1000 or by using removeRange method in ArrayList. Show More Responses |

Write code to return a sorted array of int, when passed in 2 sorted array of int to the method. |

You have 2 buckets...one 3 gallon bucket, one 5 gallon bucket. How do you get 4 gallons of water? |

How would you deal with a task that you have no clue how to do and no one is available to help you? |

There are 9 balls one of which is lighter than the others. How would you find the lighter ball in 2 tries |

I was asked about how to avoid data corruption in relational databases. (very broadly, not specifics) |

If you invested $100 right now and earned 10% returns in your first year and then lost 10% in year 2, how much money would you have at the end of year 2? |

Describe a data structure for phone numbers in a particular area. |

Are you ready for your SAS exam? |

If 80% of Ford's sales is in Europe, what would happen to company's annual revenue if the exchange rate decline from 1.5 to 1. |

**1**–

**10**of

**1,252**Interview Questions