midterm1-winter-2015-with-solutions.pdf

midterm1-winter-2015-with-solutions.pdf - ENGINEER 1D04...

• Test Prep
• 14

This preview shows pages 1–3. Sign up to view the full content.

This preview has intentionally blurred sections. Sign up to view the full version.

Question 1 [1 mark] For an engineer, having a good understanding of computing can be a matter of life and death. Is this statement true or false? A. True. = B. False. ANSWER: The Therac-25 case study illustrates that a poor understanding of computing can result in human death. Question 2 [1 mark] In Python, the rational number 0.1 can be represented exactly by a value of type float . Is this statement true or false? A. True. B. False. = ANSWER: 0.1 is represented in Python by the value 0.10000000000000001. Hence 0.1 is not represented exactly by a float. Question 3 [1 mark] In Python, variables and constants are implemented exactly the same way. Is this statement true or false? A. True. = B. False. ANSWER: Variable and constants are indistinguishable in terms of how they are implemented in Python. In particular, both variables and constants can be rebound during run-time. Question 4 [1 mark] Ada Lovelace programmed the first electronic computer. Is this statement true or false?
This is the end of the preview. Sign up to access the rest of the document.
• Spring '10
• SMITH

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern