midterm1_F06_key

midterm1_F06_key - Midterm 1 Fall 2006 Key: Short answers -...

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

View Full Document Right Arrow Icon
Short answers - There are 8 bits in one byte. - 111000. - 43. - List information about the FILEs (the current directory by default) use a long listing format. - Copy source [file] to the parent of the current directory. Problem 1 1. "*," is missing after the print statement. 2. OK 3. OK 4. "THEN" is missing following the "ELSE IF" statement. 5. OK 6. OK 7. Invalid iterative DO loop step count. 8. "THEN" needs to be removed OR "END IF" is missing after the IF statement. 9. "1" is an invalid input for logical variable. 10. "," needs to be removed from "1,234." AND "THEN" from the IF statement. Problem 2 1. SUM= 86. 2. 117 3. Why is Donkey Kong a monkey and not a donkey? 4. Less filling 10 10 Less filling 11 13 Less filling 12 16 Less filling 13 19 ..... Less filling 99 277 Less filling 100 280 5. F T F T 6. 0.0999 2. 2 2 7. DonaldDonaldDonald AAA 8. 8 3 7 8 9. 12 11 10 6 10. 2.25 2.25 2 2 Problem 3 - Sample program that reads three integers and prints them out in increasing order, without using MIN and MAX functions. PROGRAM Order
Background image of page 1

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

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

Page1 / 3

midterm1_F06_key - Midterm 1 Fall 2006 Key: Short answers -...

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

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