Google Interview Question for Principal Software Engineers


Country: United States
Interview Type: In-Person




Comment hidden because of low score. Click to expand.
2
of 2 vote

1)Browser contacts the DNS for the ipAddress 
2)DNS returns the IP address
3)Browser establishes a TCP/IP connection with the IP address
4) Browser starts rendering the code

- Danish Shaikh (danishshaikh556@gmail.com) March 24, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 votes

ad 3) connect with socket (TCP port + IP), not IP address.
there is much more happening, such as:
- NAT, if host has no public to map private IP to external IP
- routing the IP packets from the client machine to the server (or a proxy)
- IP to MAC address translations (ARP)

Probably I still missed some protocols/steps...

- Chris May 28, 2014 | Flag
Comment hidden because of low score. Click to expand.
0
of 0 vote

1. figure out what code changes between today and yesterday, only consider covered code changes by the input test cases.
2. use some runtime performance tools to check affected functions
3. read source code, guess, reverse back... check it again.

Any experienced programmers have better ways to handle this?

- samuel February 22, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

Programmatically these are the approaches that I would take.
1. Test it on multiple browsers and check if the behavior(delay) is same or occurring only particular browser.
2. use the time collected from past few weeks and observe for any patterns.
3. Write some complete end to end integration/regression test cases.
4. Rely on some unit tests that are written for the code developed from yesterday to today.
5. see if there are any data structures in the back end are changed.
6. see if the datasource/database queries are changed.

- Boyer Moor February 22, 2014 | Flag Reply
Comment hidden because of low score. Click to expand.
0
of 0 vote

On top of my head, the url will first go to either your local cache or DNS server to get ip. It will then send to http request to the target ip and get response from the server with that ip.

I might think the other way, if my browser cache is cleaned, it would take more time then yesterday. It would also because the website was updated yesterday. More css, js or resource file need to be parsed. I would try a few more times before give the conclusion that there were something wrong with my code.

- soysauce February 23, 2014 | Flag Reply


Add a Comment
Name:

Writing Code? Surround your code with {{{ and }}} to preserve whitespace.

Books

is a comprehensive book on getting a job at a top tech company, while focuses on dev interviews and does this for PMs.

Learn More

Videos

CareerCup's interview videos give you a real-life look at technical interviews. In these unscripted videos, watch how other candidates handle tough questions and how the interviewer thinks about their performance.

Learn More

Resume Review

Most engineers make critical mistakes on their resumes -- we can fix your resume with our custom resume review service. And, we use fellow engineers as our resume reviewers, so you can be sure that we "get" what you're saying.

Learn More

Mock Interviews

Our Mock Interviews will be conducted "in character" just like a real interview, and can focus on whatever topics you want. All our interviewers have worked for Microsoft, Google or Amazon, you know you'll get a true-to-life experience.

Learn More