I got out of my Intel( it went well ), and they asked me the following questions for a entry level software engineer position:
-What is a class?
-What is a object?
-What is a friend function?
-What is a virtual function?
-What is a constructor and destructor?
-Should your destructor be virtual?
-What is scope resolution operator?
-Write a function to print out the first 10 prime numbers.
-You have a set of 3 light switches outside a closed door. One of them controls the light inside the room. With the door closed from outside the room, you can turn the light switches on or off as many times as you would like.
You can go into the room - one time only - to see the light. You cannot see the whether the light is on or off from outside the room, nor can you change the light switches while inside the room.
No one else is in the room to help you. The room has no windows.
Based on the information above, how would you determine which of the three light switches controls the light inside the room?
-You are given 8 identical-looking balls, one of which is heavier than the other 7 (all of which weigh the same). Using an old-fashioned mechanical set of scales you must identify the heavier ball using the scale as few times as possible. The scale is constructed using two bowls and an arm enabling the bowls to either balance or have one bowl rising while the other (and heavier bowl) falling. You can’t just add one ball at a time thinking its one weighing, however, you may put any number of balls in each bowl.
-I was asked about projects I did in the past.
-I was asked to look over code and find all the errors in the code.
-I was asked to look over a function, and given an input given what the return value would be.
-I was asked to solve some statistics problems(dealing with standard deviation).
Overall, it wasn’t hard but it took along time to finish. I’ll know next week if I get the job. =) Lets hope I get it!
Every java programmer should know a few design patterns. Why? Because Java uses them all over the place, and a good programmer understands how his tools work. So here is a list of patterns I notice in the Java api.
Did I miss any?
Find out how the visual effects masters at Industrial Light and Magic helped bring the Hulk to life with this behind the scenes look.
"The Machine that Changed the World" is a five part documentary on computing. It’s cool to watch if you are in to history and nerdy stuff. ;)
Today is going to be a slow day. I have finished all my freelance work earlier this week, and now I have nothing to do. Perfect time to get some hacking done. There is only one problem: I’m just not sure what to hack on.
Whatever the project for the day is going to be, I am going to write it in lua. I’ve been eyeing the language for a bit, but never messed with it. So today is the day.
Any ideas on what I should make?