20-ENFD-112 Fundamentals of Programming Spring, 2008

Preparedness Exam Answers

  1. 2.1666...
  2. 3
  3. 2
  4. 1
  5. Yes
  6. No
  7. No
  8. Yes
  9. The integers from 2 to 5.
  10. Yes, one of the elements in the second row can be replaced by two numbers - then the mapping is ambiguous for at least one x value.
  11. The integers from 0 to 4.
  12. 2
  13. 3
  14. {1,2,3,4}
  15. {2,3}
  16. 6500000000*(1.013)^(y-2006) where y is the year.
  17. Population expectation:
    Year Population
    1845812,500,000
    18981,625,000,000
    19523,250,000,000
    20066,500,000,000
    205913,000,000,000
    211326,000,000,000
    216752,000,000,000
  18. The population doubles about every 53 and a half years at the current rate.
  19. Let r be an integer with the meaning shown in the table below:

       r    Epoch
    -3 Population was an eighth of current
    -2 Population was a quarter of current
    -1 Population was half current
    0 Current population
    1 Population will be double current
    2 Population will be four times current
    3 Population will be eight times current

    So year = r*log(2)/log(1.013)+2006 = r*53.66 + 2006

  20. a^2+b^2=h^2
  21. arcsin(a/h)
  22. 10
  23. 3628800
  24. 1/2
  25. The number of possible outcomes is 36. The possible ways the dice can total seven are: 1+6, 6+1, 2+5, 5+2, 3+4, 4+3 so the total number of ways to roll a total of 7 is 6. Hence the probability that the total is 7 is 6/36 = 1/6.
Scoring             
Greater than 17 correct   ...   No Problem
Greater than 10, no greater than 17   ...   Dicey but possible to turn it around with effort
Greater than 5, no greater than 10   ...   Will require great effort to catch up
0 to no greater than 5   ...   Serious - will need an interview to find out what to do