Download Final Exam Study Guide with Answers
Final Exam Study Guide with Answers
Final Exam Study G and more Exams Mathematics in PDF only on Docsity!
Final Exam Study Guide with Answers
(LSP 121)
This guide is just that - a guide, and is not meant to be a complete list of all possible things that may be on the midterm exam. It would be in your best interest to study all lecture notes, look over any homework assignments, and individually redo each in-class activity. No lecture notes, cell phones, or flash drives allowed during the exam. You are allowed a one-sided 8.5x11 inch crib sheet. Calculators are not necessary as there is a calculator in Windows Probability
- What is the probability of a 200-year flood this year? 1/
- What is the probability of not rolling a double-6 with two dice? 35/36, or 0.
- Suppose event A has a 0.98 probability of occurring and event B has a 0.94 probability of occurring. Compute the odds for event A and the odds for event B. 0.98/0.02, or 49 0.94/0.06, or 15.
- What is the probability of the next five births at a hospital all being girls? ½ x ½ x ½ x ½ x ½ = 0.
- Studies have shown that Peoria, Illinois is hit by a tornado about every 30 years. What is the probability that Peoria will be hit by a tornado this year? What is the probability that Peoria will be hit by tornados in three consecutive years? What is the probability that Peoria will be hit by at least one tornado in the next 30 years? 1/ 1/30 x 1/30 x 1/30 = 3.7 x 10 -^5 1 – (29/30)^30 = 0.
- Suppose that license plates are made with three letters followed by three numerals (0-9). How many different license plates are possible? 17,576,000 plates
- An insurance policy sells for $500. Based on past data, an average of 1 in 50 policyholders will file a $5000 claim, an average of 1 in 100 policyholders will file a $10,000 claim, and an average of 1 in 200 policyholders will file a $30,000 claim. What is the expected value of a single policy to the insurance company? = 500 – (1/50 * 5000) – (1/100 * 10000) – (1/200 * 30000) = 500 - 100 - 100 - 150 = 150
Correlation
- Using both Excel and SPSS/PASW and given the data set WineConsumption.xls, determine if there is a correlation between the average annual amount of wine consumed and the heart disease death rate. R-squared = 0.7103; appears to be a strong correlation Correlations Consumption DeathRate Consumption Pearson Correlation Sig. (2-tailed) 1 -.843** . N 19 19 DeathRate Pearson Correlation Sig. (2-tailed) -.843** . 1 N 19 19 **. Correlation is significant at the 0.01 level (2-tailed). -0.843 is a strong negative correlation Number Systems
- Convert 2.3 kilometers per second into miles per hour. 2.3 km/sec x 0.62137 miles/km x 3600 sec/hour = 5144.94 miles/hour
- Let’s assume some day we switch to 12-digit telephone numbers (4-digit area code followed by 8-digit phone number). Using the rules that the first digit of the area code and the first digit of the phone number cannot be a 1 or 0, how many telephone numbers would we now have? If they assign 1000 telephone numbers an hour, how long in years will they be able to assign telephone numbers? (xxxx) yyy – zzzzz = (8 x 10 x 10 x 10) x 8 x 10 x 10 x 10 x 10 x 10 x 10 x 10 = 640,000,000,000 phone numbers 640,000,000,000 phone numbers x (1 hour / 1000 phone numbers) x (1 year / 8760 hours) = 73059.36 years
- Convert the binary number 100101 to decimal. Show your work for credit. 100101 = 32 + 4 + 1 = 37
- Convert the binary number 10010101 to decimal. Show your work for credit. 10010101 = 128 + 16 + 4 + 1 = 149
- What is the binary value of decimal 57? Show your work for credit. 57 = 32 + 16 + 8 + 1 = 111001
- What is the binary value of decimal 121? Show your work for credit. 121 = 64 + 32 + 16 + 8 + 1 = 1111001 . Logarithms
- Using an Excel spreadsheet, calculate the data rate in bits per second using Shannon’s equation (data rate = frequency x log 2 (1 + signal level/noise level). Hold the signal level at 0. watts, the noise level at 0.0002 watts, and vary the frequency from 1000 to 10,000 Hz in increments of 500. Copy and paste the spreadsheet into your Word document. Frequency Hz bps Formula = a2 * log(1+0.4/0.0002,2) 1000 10966.51 (the last 2 represents the log base) 1500 16449. 2000 21933. 2500 27416. 3000 32899. 3500 38382. 4000 43866. 4500 49349. 5000 54832. 5500 60315.
6000 65799. 6500 71282. 7000 76765. 7500 82248. 8000 87732. 8500 93215. 9000 98698. 9500 104181. 10000 109665.
- The pH scale describes the relative acidity or basicity of a substance. To the chemist, pH is a measure of the concentration of positive hydrogen ions, H+, in a solution. The pH scale generally ranges from 1 to 14. Pure distilled water at 25˚C (about room temperature) is said to be neutral and has a pH of 7. Solutions with pH less than 7 are acidic and solutions with pH greater than 7 are basic. The relationship between pH and the hydrogen ion concentration is a logarithmic function with the following formula: pH = - log([H+]) where [H+] is the symbol for hydrogen ion concentration. a) Convert the above formula to exponent form. b) Borax, a cleaning agent, has a pH of 9.2. Is it basic or acidic? What is the H+ concentration? a. 10^-pH = [H+] b. Basic; [H+] = 10^-pH = 10^-9.2 = 6.31e- 10 Computers and Algorithms
- Using Alice, create a world in which the main character repeats a loop 4 times and makes one decision based upon the time of day.
Methods
World.my first method ( ) No variables IceSkater.prepare to skate Loop 4 times times IceSkater.do simple spin IceSkater.jump If ( is AM ) IceSkater.skate howManySteps = 2 Else
IceSkater.skate backwards howManySteps = 2
- What are the four basic types of operations in a computer program and give an example of each. a. sequential statement (assign the value of 0 to Counter) b. conditional (if X < 100 then print(“Not today”) c. iterative (loop 4 times) d. call a pre-existing function (=log(32,2))
- Using Visual Basic, create an if else statement that performs operation A if the value of Total is > 100, else performs operation B if Total is not > 100. If Total > 100 Then Operation A Else Operation B End If
- Using Visual Basic, create an if else statement that performs operation X if the value of Sum = 0, else performs operation Y if Sum <> (not equal) to 0. If Sum = 0 Then Operation X Else Operation Y End If
- Using Visual Basic, create a loop statement that performs operations C and D 100 times. For Row = 1 To 100 Operation C Operation D Next Row
- Using Visual Basic, create a loop statement that performs operations M, N, O, and P as long as Total Taxes < 5000.00. While TotalTaxes < 5000.00 Operation M Operation N Operation O Operation P End While
- Given the following binary string, show the resulting run length
compression: 000000100000000000110000000000000000010000000011000001 6 11 0 17 8 0 5
- Encrypt the following message: meet me at the coffee shop now using the transposition-based cipher introduced in Activity 15. The key word is COMPUTER. 14358726 computer meetmeat thecoffe eshopnow MTEAFOEEHEHSTCOTEWEFNMOP
- What parity bit should be added to the following ASCII character: 1001010 1
- Is the following UPC correct or incorrect? 3 24500 00234 8 9 + 2 + 12 + 5 + 0 + 0 + 0 + 0 + 6 + 3 + 12 + 8 = 57 Does not end in 0, so there is an error.
- We want to send the data 10101010 and we want to perform error correction on this data using a Hamming code. What are the four check bits that are generated before we send the data? c8 c4 c2 c 0 1 0 0 The 12 bit character is then: 101001011000
- We have just received the following 12-bit Hamming code: 001001100010 Is there an error in the code received? If so, which bit is in error? Show the parity calculations. c8 had an error c4 did not have an error c2 did not have an error c1 had an error So if you take the 8 of c8 and the 1 of c1 and add them, you have 9. That tells you that an error occurred in bit 9.