COMP-202--final-exam--2009-12.pdf

56 views26 pages

For unlimited access to Study Guides, a Grade+ subscription is required.

First Name:Last Name:
McGill ID:Section:
Faculty of Science
COMP-202A - Introduction to Computing I (Fall 2009) - All Sections
Final Examination
Wednesday, December 16, 2009 Examiners: Mathieu Petitpas [Section 1 and 3]
9:00–12:00 Kamal Zellag [Section 2]
Instructions:
DO NOT TURN THIS PAGE UNTIL INSTRUCTED
This is a closed book final examination; notes, slides, textbooks, and other forms of documentation
are not allowed.
Non-programmable calculators are allowed (though you should not need one).
Computers, PDAs, cell phones, and other electronic devices are not allowed.
Answer all questions on this examination paper and return it. If you need additional space, use
pages 22-23 or the booklets supplied and clearly indicate where each question is continued. In order
to receive full marks for a question, you must show all work.
This final examination has 26 pages including this cover page, and is printed on both sides of the
paper. Pages 24-26 contain information about useful classes and methods.
1 2 3 Subtotal
/5 /5 /5 /15
4 5 Subtotal
/10 /15 /25
6 7 8 Subtotal
/30 /15 /15 /60
Total
/100
1
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 26 pages and 3 million more documents.

Already have an account? Log in
COMP-202A - Fall 2009 - Final Examination Page 2
Section 1 - Short Questions
1. In one or two sentences, explain each of the following concepts. BE BRIEF; overly long answers[5]
will be grounds for mark deductions.
(a) Loop
(b) Method
(c) Reference variable
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 26 pages and 3 million more documents.

Already have an account? Log in
COMP-202A - Fall 2009 - Final Examination Page 3
(d) Class (in the context of object-oriented programming)
(e) Constructor
Unlock document

This preview shows pages 1-3 of the document.
Unlock all 26 pages and 3 million more documents.

Already have an account? Log in

Get access

Grade+
$10 USD/m
Billed $120 USD annually
Homework Help
Class Notes
Textbook Notes
40 Verified Answers
Study Guides
1 Booster Class