{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

fin07f.v1 - December 2007 Final Examination VERSION 1 COMP...

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

View Full Document Right Arrow Icon
December 2007 Final Examination VERSION 1 COMP 208 -- Computers in Engineering Wednesday, December 19, 2007 9:00 – 12:00 A.M. Examiner: Prof. Nathan Friedman Assoc Examiner: Prof. Tim Merrett Student Name: McGill ID: INSTRUCTIONS: This is a CLOSED BOOK examination. This examination consists of 20 multiple choice questions and 2 (two) programming questions, for a total of 22 questions. o The Examination Security Monitor Program detects pairs of students with unusually similar answer patterns on multiple-choice exams. Data generated by this program can be used as admissible evidence, either to initiate or corroborate an investigation or a charge of cheating under Section 16 of the Code of Student Conduct and Disciplinary Procedures. Mark your multiple choice answers on the computer sheet using PENCIL ONLY. Answer questions 21 and 22 in the examination booklet provided. The examination consists of 13 pages including the cover page. FACULTY STANDARD CALCULATOR permitted ONLY. This examination paper and answer booklets MUST BE RETURNED Grading: o Questions 1 – 20 are worth 3 marks each o Questions 21 and 22 are worth 20 marks each COMP 208 1 of 1 December 19, 2007 Final Examination Version 1
Image of page 1

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

View Full Document Right Arrow Icon
Question 1 Which of the following statements (a-d) is false ? a) Programs written in a high level language are translated into assembly or machine level programs before being executed. b) Compilers do not translate comments. c) A compiler is a specialized text editor that uses indentation or colours to make the code easier to read d) A program is stored in memory by a loader before being executed e) All of these statements are true. Question 2 Consider an array containing {7, 6, 4, 20, 1, 22, 3, 8} Suppose the selection sort algorithm is used to sort this array into increasing order from left to right. What will be the arrangement of the elements after the first three passes?
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern