FF08_E - December 2008 Final Examination VERSION 1 COMP 208...

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

View Full Document Right Arrow Icon
COMP 208 1 of 17 December 11, 2008 Final Examination Version 1 December 2008 Final Examination VERSION 1 COMP 208 -- Computers in Engineering Thursday, December 11, 2008 9:00 – 12:00 A.M. Examiner: Prof. Nathan Friedman Assoc Examiner: Prof. Daniel Pomerantz Student Name: McGill ID: INSTRUCTIONS: This is a CLOSED BOOK CLOSED BOOK CLOSED BOOK examination. This examination consists of 25 multiple choice questions and 2 (two) programming questions, for a total of 27 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 PENCIL ONLY. Answer questions 26 and 27 in the examination booklet provided. The examination consists of 17 pages including the cover page. FACULTY FACULTY STANDARD CALCULATOR STANDARD CALCULATOR STANDARD CALCULATOR permitted ONLY. This examination paper and answer booklets MUST BE RETURNED MUST BE RETURNED MUST BE RETURNED MUST BE RETURNED Grading: Grading: Grading: o Questions 1 Questions 1 Questions 1 – 20 20 20 are worth are worth are worth 2 marks each marks each marks each o Questions 21 Questions 21 Questions 21 – 25 are worth 4 25 are worth 4 25 are worth 4 marks each marks each marks each o Questions 26 and 27 Questions 26 and 27 are worth 20 marks each are worth 20 marks each are worth 20 marks each are worth 20 marks each
Background image of page 1

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

View Full DocumentRight Arrow Icon
COMP 208 2 of 17 December 11, 2008 Final Examination Version 1 Question 1 The C function free() is used to a) Close a file that has been opened by the program b) Reclaim dynamically allocated storage c) Reset the counter for determining how many operations a program performs d) Restart a random number generator e) None of the above Question 2 The term recursive refers to a function that: a) has multiple arguments b) returns a value c) calls itself d) has a loop in it e) curses again Question 3 Joe the programmer is writing a program which uses a numerical method to estimate the integral of a function. He wrote a function called integrate(), which takes 2 arguments. These 2 arguments represent the bounds of integration. Unfortunately, every time Joe wants to integrate a different mathematical function, he has to modify the function integrate() directly. Which concept in C would easily allow Joe to not have to change integrate() every time?
Background image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 01/15/2010 for the course COMP COMP 206 taught by Professor Vybihal during the Spring '04 term at McGill.

Page1 / 17

FF08_E - December 2008 Final Examination VERSION 1 COMP 208...

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

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