Interview Questions and answers for Fortune 500 companies

Source: Internet
Author: User
The interview questions and answers of Fortune 500 companies prompt the Interview Questions and Answers of Fortune 500 companies
Source: Computer World Network
Responsible editor: lujiezheng
    
[04-5-27] by Blair Watson (US)
    
Difficulties and sharp turning of Intelligence
    
    
◆ 1. There is a rectangular cake that has been cut off (the size and position are random). How can you directly cut the remaining cake into two equal parts?
    
    
Answer: link the center of the complete cake to the center of the cut cake. This method also applies to cubes! Note that the size and position of the cut-off cake are random. Do not think about the way you cut your birthday cake.
    
    
◆ 2. There are three baskets of fruit, one basket is full of apples, the second basket is full of oranges, and the third basket is mixed with oranges and apples. Tags on the basket are deceptive. (For example, if the tags are orange, you can be sure that there are not only oranges in the basket, and there may be apples.) Your task is to take out one of the baskets, take only one fruit from it, and correctly write the labels for three baskets of fruit.
    
    
Tip: Take a fruit from the basket marked with a "mixed" label to know what the other two baskets contain.
    
    
◆ 3. You have eight balls. One of them is damaged, so it is lighter than other balls. You have a balance to compare the weights of these balls. If it is called twice, how can we find the broken ball?
    
    
◆ 4. Why is the manhole cover of the sewer circular?
    
    
Tip: the diagonal line of the square is longer than the side!
    
    
Other answers: A circular manhole cover can be moved by a person because it can be rolled on the ground. 2 circular manhole covers do not have to rotate its position to stand on the wellhead.
    
    
◆ 5. How many cars are there in the United States?
    
    
◆ 6. You have asked some people to work for you for seven days. You should pay for it with a gold bar. Gold bars are divided into seven small pieces and each piece is provided every day. If you only cut the gold bars twice, how do you distribute them to these workers?
    
    
◆ 7. A train with a speed of 15 miles departs from Los Angeles to New York. Another 20-mile train departs from New York to Los Angeles. How far does a bird fly at a speed of 25 miles per hour, departing from Los Angeles at the same time, between two trains, and by the time the train met?
    
    
Tip: Think about the relative speed of a train.
    
◆ 8. You have two jars with 50 red glass balls and 50 blue glass balls respectively. Pick up a jar and take out a glass ball from it. How can I maximize my chances of getting a red ball? In this way, what is the chance of getting a red ball?
    
    
◆ 9. Suppose you stand in front of the mirror, raise your left hand, raise your right hand, and look at yourself in the mirror. When you raise your left hand, it seems that you are raising your right hand in the mirror. But when you look up, the mirror is also looking up, rather than looking down. Why does the image in the mirror seem to be upside down, but not upside down?
    
    
◆ 10. You have 5 bottles of medicine. Each pill weighs 10 grams and only one contaminated bottle of pills has changed in weight. Each pill weighs 9 grams. Give you a balance, how can you determine which bottle is contaminated?
    
    
Answer:
    
    
1 to 5 bottles marked with 1, 2, 3, 4, 5.
    
    
2. Take 1 pill from bottle 1, 2 pills in bottle 2, 3 pills in bottle 3, and 4 pills in bottle 4, 5 pills in bottle 5.
    
    
3. Place all of them on the balance to weigh them.
    
    
4 now we subtract the measured weight from the result of 1x10 + 2x10 + 3x10 + 4x10 + 5x10.
    
    
5. The result is the number of the bottle containing the contaminated pill.
    
    
◆ 11. If you have a bucket with a capacity of 5 Kafu and a bucket with a capacity of 3 Kafu, how can you accurately produce 4 Kafu of water?
    
    
◆ 12. In which direction should I rotate the key when the car is locked?
    
    
◆ 13. If you can move any of the 50 states, Which one will you choose? Why?
    
    
◆ 14. Four dogs (Four ants or four people) are located in four corners of a square. All of a sudden, they will catch up with a person in the clockwise direction at the same speed, and will keep up with this target. How long does it take for them to meet and where are they located?
    
    
Tip: they will meet in the center of the square, and the distance they run is irrelevant to their route.
    
    
◆ 15. Put two trains down from the air. Each train carries a parachute and lands on an endless straight railway. The distance between the two trains is unclear. Both trains face the same direction. After landing, the parachute fell onto the ground and was separated from the train. Both trains have a micro-chip to control their movements. The two chips are the same. Neither train knows its location. You need to write code into the chip to let the two trains meet each other. Each line of code has a certain amount of time to execute the command.
    
    
You can use the following commands (and only these commands can be used ):
    
    
Mf-let the train go forward
    
    
MB-move the train backward
    
    
If (P)-if there is a parachute next to the train, this condition is met.
    
    
Goto
    
    
Answer:
    
    
A: MF
    
    
If (P)
    
    
Goto B
    
    
Goto
    
    
B: MF
    
    
Goto B
    
    
Explanation: the first line is to let them leave their respective parachutes. They must leave their own parachutes so that the trains behind them can discover the parachutes of the previous train. This satisfies a condition that they can jump out of the code they followed at first. At first they all cycle in the Part A until the train behind them finds the parachute of the previous train, then they are transferred to B: And falls into the cycle of B. The train did not find a parachute, so it kept repeating in. Since each line of code has a certain amount of command execution time, completing the loop is more time-consuming than completing B, so the train (in the B loop) will eventually catch up with the previous train.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.