mf06.v1 - Last Name _ First Name _ McGill ID _ Make sure...

Info iconThis preview shows pages 1–4. 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 Tuesday, October 17, 2006 2:35 – 4:00 P. M. Faculty standard calculators allowed. Grading: Question Possible Points Your Grade 1-5 3 marks each 6-15 6 marks each 16 25 marks Total 100 Computers in Engineering 1 of 1 October 17, 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 Which of the following statements are true ? 1. FORTRAN is an example of a low-level programming language. 2. A compiler translates code from a human-readable form into a form that the computer can understand and execute. 3. SciTE is a compiler that supports many languages. 4. A variable declared as LOGICAL in FORTRAN, can take one of two values: .TRUE. or .FALSE. 5. In the WRITE (*,*) statement, the first * represents the format, while the second * represents the output file. A. 2, 3 B. 1, 2, 3 C. 3, 4, 5 D. 2, 4 E. None of the above Question 3 Which of the following statements are true? 1. Programs and data are both stored together in the memory of a computer 2. The CPU can obtain data values directly from input devices such as a keyboard 3. Assembly level instructions are decoded directly by the CPU 4. Registers are memory cells used by the CPU 5. The CPU can carry out arithmetic operations on data values. A. 1, 2, 4 B. 1, 4, 5 C. 2, 3 D. 4, 5 E. None of the above Computers in Engineering 2 of 2 October 17, 2006 Midterm test Version 1
Background image of page 2
Question 4 If the following code block is executed, assuming all variables have been properly declared and N is a constant, how many times will the user see the message “Hello”? DO I=1,10
Background image of page 3

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

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

Page1 / 14

mf06.v1 - Last Name _ First Name _ McGill ID _ Make sure...

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