Google

Google Interview Questions - 1

Why are manhole covers round?

A man pushed his car to a hotel and lost his fortune. What happened?

Explain the significance of "dead beef".

Write a C program which measures the the speed of a context switch on a UNIX/Linux
system.

Given a function which produces a random integer in the range 1 to 5, write a function which produces a random integer in the range 1 to 7.

Describe the algorithm for a depth-first graph traversal.

Design a class library for writing card games.

You need to check that your friend, Bob, has your correct phone number, but you cannot ask him directly. You must write a the question on a card which and give it to Eve who will take the card to Bob and return the answer to you. What must you write on the card, besides the question, to ensure Bob can encode the message so that Eve cannot read your phone number?

How are cookies passed in the HTTP protocol?

What is the size of the C structure below on a 32-bit system? On a 64-bit?

struct foo {
char a;
char* b;
};

Design the SQL database tables for a car rental database.

Write a regular expression which matches a email address.

Write a function f(a, b) which takes two character string arguments and returns a string containing only the characters found in both strings in the order of a. Write a version which is order N-squared and one which is order N.

You are given a the source to a application which is crashing when run. After running it 10 times in a debugger, you find it never crashes in the same place. The application is single threaded, and uses only the C standard library. What programming errors could be causing this crash? How would you test each one?

Explain how congestion control works in the TCP protocol.

2 comments:

Nageshwar M June 12, 2008 at 10:15 AM  

The questions have been of immense help to me.I found more such questions in this blog.
http://placementsindia.blogspot.com/search/label/Google

Nageshwar M June 12, 2008 at 10:24 AM  

the answer to this is the first solution on the post

http://placementsindia.blogspot.com/2007/12/solutions-to-few-google-top-interview.html

easier than what I anticipated.

To link to this blog, copy and paste the code below into your site.

  © Blogger template 'Tranquility' by Ourblogtemplates.com 2008

Back to TOP