Pergunta de entrevista da empresa Rakuten

What happens when you enter an address in a browser? What is the difference between inheritance and function overloading? How to write swap function without using temporary variable? In an warehouse, you need boxes to deliver products. Each type of box has a fixed capacity. You don't know the amount of product you have to deliver beforehand. What is the minimum amount of boxes you need to keep so that you can deliver any amount of product using minimum number of boxes? Customer is asking you to change a feature such that it is inefficient for the system. What do you do?

Resposta da entrevista

Sigiloso

26 de jul. de 2016

What happens when you enter an address in a browser? Your computer looks up the host of the url you just typed. If it exists in your local cache, it uses that information. If not, then it opens a connection and sends a request to the host. If the host sends back the required response, then your browser uses the HTML parser to present the website. What is the difference between inheritance and function overloading? Inheritance is creating a new class from a previously created class. Overloading is adding a new parameter to a function that doesn't take that many parameters. For example: def string_together(string1,string2) string_together("abc","cba","xyz") Customer is asking you to change a feature that is inefficient for the system. What do you do? I would sit down with the client and explain to them why that change would be inefficient. If they are still insistent on changing it, then I would try to change in a way that is as efficient as possible.

5