2006%20Winter%20Midterm

2006%20Winter%20Midterm - Last Name _ First Name _ McGill...

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

View Full Document Right Arrow Icon
Last Name _____________________________________ First Name _____________________________________ McGill ID ______________________________________ Make sure the version number is marked on your scantron sheet. This is Version 1 McGill University COMP 208 -- Computers in Engineering Mid-Term Examination Thursday, February 9, 2006 2:35 – 4:00 P. M. Faculty standard calculators allowed. Grading: Question Possible Points Your Grade 1-8 3 marks each 9-13 6 marks each 14-15 8 marks each 16 30 marks Total 100 Computers in Engineering 1 of 8 February 9, 2006 Midterm test Version 1
Background image of page 1

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

View Full DocumentRight Arrow Icon
Question 1 The Fortran statement X = Y means: A. The value of X is the same as the value of Y B. The memory cell X is the same as the memory cell Y C. The value stored in Y should be copied to X D. The value stored in X should be copied to Y E. None of the above Question 2 Comments are useful because they help the compiler translate programs written in a high level language into a machine executable form. A. True B. False C. Neither of the above Question 3 Mod(a,b) is a Fortran function that returns the result of dividing a by b and rounding down to the next integer A. True B. False C. Neither of the above Question 4 Suppose we want to divide some expression by a value X. However we want to avoid trying to carry out the division when X is zero. The programming construct we should use to
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 / 8

2006%20Winter%20Midterm - Last Name _ First Name _ McGill...

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