midterm1_F06 - MAE-10 Midterm Examination I Fall 2006 Short...

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

View Full Document Right Arrow Icon
MAE-10 Midterm Examination I Fall 2006 Short answers Give short answers to the following questions. All the answers for the entire test must be on separate sheets of paper. (2 pts each) How many bits are in one byte? Express the decimal number 56 in binary. Express the binary number 101011 in decimal. What does the UNIX command ls -l mean? What does the UNIX command cp . . mean? Problem 1 Identify any compilation errors in the following FORTRAN statements. If you believe there are no errros, write “OK”. (2 pts each) 1. REAL A, B, C A = 1. B = 2. C = A + 1.*( + 3.) PRINT A, B, C 2. DATA A, B, C /1.0, 2*3.0/ DATA X, Y /1.0, 2+3.0/ 3. INTEGER A INTEGER B INTEGER C REAL ABC, DEF, XYZ INTEGER DE
Background image of page 1

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

View Full DocumentRight Arrow Icon
4. IF (I .GT. 10 .AND. X .LT. 1.) THEN X = X/2. I = I + 1 ELSE IF (I .LE. 10 .OR. X .GE. 1.) X = 2. * X I = I - 1 ELSE PRINT *, ’HOW DID WE GET HERE?’ END IF 5. CHARACTER*2, SMALL SMALL = ’Big’ WRITE(*,*) ’Small is ’,Small, SMALL 6. INBD = (IRWN -1)*NSPEC + IP +(JL-1)*NSPEC*NROWS
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 08/31/2010 for the course ENGRMAE 10 taught by Professor Staff during the Spring '08 term at UC Irvine.

Page1 / 5

midterm1_F06 - MAE-10 Midterm Examination I Fall 2006 Short...

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