midterm1-Ver1 - ENG 1D04 SOLUTIONS ENGINEER 1D04 Midterm...

Info iconThis preview shows pages 1–4. Sign up to view the full content.

View Full Document Right Arrow Icon

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

View Full DocumentRight Arrow Icon

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

View Full DocumentRight Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: ENG 1D04 SOLUTIONS ENGINEER 1D04 Midterm Test 1 McMaster University Answer Key Day Class 03, 04, Version 01 Dr. S. Smith DURATION: 2 hours February 10, 2011 Please CLEARLY print : NAME: Student ID: This examination paper includes 12 pages and 30 questions. You are responsible for ensuring that your copy of the examination paper is complete. Bring any discrepancy to the attention of your invigilator. Special Instructions : 1. It is your responsibility to ensure that the answer sheet is properly completed. Your examination result depends upon proper attention to these instructions: A heavy mark must be made, completely filling the circular bubble, with an HB pencil. Print your name, student number, course name, course number and the date in the space provided on the top of Side 1 and fill in the corresponding bubbles underneath. Fill in the bubble corresponding to your version number. Mark only ONE choice from the alternatives (1, 2, 3, 4, 5 or A, B, C, D, E) provided for each question. If there is a True/False question, mark 1 (or A) for True, and 2 (or B) for False. The question number is to the left of the bubbles. Make sure that the number of the question on the scan sheet is the same as the number on the examination paper. Pay particular attention to the Marking Directions given on the scan sheet. Begin answering the questions using the first set of bubbles, marked 1. Answer all questions. 2. The use of notes and textbooks is not permitted. 3. Calculators, computers, cell phones, and all other electronic devices are not to be utilized. 4. Read each question carefully. 5. Try to allocate your time sensibly and divide it appropriately between the questions. 6. Select the best answer for each question. continued on page 2 ENG 1D04 SOLUTIONS 2/12 Question 1 [1 mark] Nobody has ever died from a software error. Is this statement true or false? A. True. B. False. = ANS Question 2 [1 mark] The process of associating a file with a variable in a program is called opening the file. Is this statement true or false? A. True. = ANS B. False. Question 3 [1 mark] Which values in Python are mutable? A. Values of type int , long , or float . B. Values of type str . C. Boolean values. D. Objects. = ANS E. All of the above. Question 4 [1 mark] What is the theoretical value of a Turing machine? A. It facilitates understanding the limits of mechanical computation. = ANS B. It provides a design for building very efficient computers. C. It proves that Artificial Intelligence is possible. D. A and B. E. All of the above. continued on page 3 ENG 1D04 SOLUTIONS 3/12 Question 5 [1 mark] Given a string s , what is the value of r after the following code executes? The value of s will consist of several substrings concatenated together with commas to separate them; that is, s = s1 + "," + s2 + "," + ... + "," + sn ....
View Full Document

Page1 / 12

midterm1-Ver1 - ENG 1D04 SOLUTIONS ENGINEER 1D04 Midterm...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online