当面试的时候,遇到这种类型的questionnaire_Ruby_编程开发_程序员俱乐部

中国优秀的程序员网站程序员频道CXYCLUB技术地图
热搜:
更多>>
 
您所在的位置: 程序员俱乐部 > 编程开发 > Ruby > 当面试的时候,遇到这种类型的questionnaire

当面试的时候,遇到这种类型的questionnaire

 2011/10/27 8:16:10  夜鸣猪  http://hlee.iteye.com  我要评论(0)
  • 摘要:PleasedescribeyourexperiencewiththeDjangowebframeworkand/ortheRubyonRailswebframework.*Intheboxbelow,writeafunctioninRubyorPythonthattakesatextstringasinputandreturnsadatastructurethatcontainseachcharacterthatappearsinthestringmorethanonetime
  • 标签:面试 面试的


Please describe your experience with the Django web framework and/or the Ruby on Rails web framework. *

In the box below, write a function in Ruby or Python that takes a text string as input and returns a data structure that contains each character that appears in the string more than one time, and the number of total times that each such character appears. Assume that this function is going to be called by code written by other programmers. Write this code exactly as you would write it if this were a real work assignment. * Note: You may want to do the actual writing in a code editor or IDE and then just paste the result into the box below.

Reasoning

There are four closed doors in front of you. You know that each door has an animal painted on one side and a plant painted on the other side. The four doors have the following painted on the sides that you can see (one per door): a rose, a pine tree, a fox, and an eagle. You have been told that these doors satisfy the rule "if a door has a flower on its plant side, then it has a bird on its animal side". What is the smallest set of doors that you must check the hidden side of to determine conclusively whether this rule is true or false for these doors? *

    Just the door with the rose.
    Just the door with the eagle.
    Just the doors with the rose and the eagle.
    Just the doors with the rose and the fox.
    Just the doors with the rose, fox and eagle.
    Just the doors with the pine tree and eagle.
    All of the doors.


If studies were to conclusively demonstrate that, in the day prior to committing murder, American murderers watched far more hours of violent television per person than U.S. citizens do on average, then one can conclude from this research that: *

    Watching violent TV makes Americans more violent.
    Before committing murder, American murderers watched more total TV, on average, than non-murderer Americans.
    American murderers prefer watching violent TV shows to watching non-violent TV shows.
    An effective strategy to make a person less likely to commit murder would be to get them to cut back on violent television watching.
    All of the above.
    None of the above.


Suppose that you have an enormous pineapple that is 99% water (by weight). The pineapple weights 100 pounds. If the water content of the pineapple evaporates until it is 98% water (by weight), then approximately how much does the pineapple now weight? *

    99 pounds
    96 pounds
    95 pounds
    60 pounds
    50 pounds
    49 pounds


Your neighbor has two young, genetically unrelated cats named Boots and Mindy that you see often. They look quite similar, but based just on the markings on their fur, you have been able to correctly identify which is which 12 out of the last 14 times you have seen them. You know that Boots is blind, but the last time you saw Mindy she did not have eye problems. You see a cat on your neighbor's porch which, based on the markings on its fur, appears to you to be Mindy. On further inspection, you can tell that it is blind. It is most rational to conclude that: *

    A. The cat is most likely Mindy.
    B. The cat is most likely Boots.
    C. The cat is most likely neither Boots nor Mindy, but rather, a stray cat or a cat belonging to someone else.
    D. The cat is equally likely to be Mindy or Boots.
    There is no reasonable way to decide between A, B, C or D.


Suppose that in a group of people you find that X percent of people in the group have heights that are greater than the average (that is, the mean) height in that group. Which of the following is a true statement about X? *

    X can be any percentage.
    X cannot be bigger than 25%.
    X can be bigger than 25% but cannot be bigger than 50%.
    X can be bigger than 50% but cannot be as high as 99.9%.
    X can be bigger than 99.9% but cannot be equal to 100%.


Suppose that you are at a casino playing roulette. The strategy you are using is to, before each bet, flip a coin to determine whether to place your bet on red or on black (which, according to the rules of the game, should each have a 50% chance of occurring). Suppose that you lose fifty five times in a row (i.e. for fifty five consecutive plays, after you've placed your bet on black the ball then lands on red, and after you've placed your bet on red the ball then lands on black). From this experience, it is most rational to conclude that: *

    Using a coin toss to determine whether to bet on red or black is in general a very bad strategy for playing roulette
    The game is somehow rigged against you and the casino or its employees are cheating you
    You are very likely to win on your next bet if you continue this coin flip based strategy
    The roulette game is broken, but there is no reason to assume that it was broken intentionally
    You were merely very unlucky
    One cannot reasonably conclude which of the above options is more likely


Simone is 30 years of age, unmarried, well-spoken, and very bright. While a student (majoring in philosophy) she was concerned with issues of social justice and prejudice, and also participated in anti-war demonstrations. Which of the following statements is most likely to be true? *

    A. Simone is a baker.
    B. Simone is a baker and is active in the feminism movement.
    C. Simone is a baker and is not active in the feminism movement.
    D. Simone is a baker and an olympic silver medalist.
    There is no good way to decide whether A, B, C or D is the most likely.


大家啥想法,我第一想法,这个家伙一定不肯出钱
发表评论
用户名: 匿名