{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

midterm1_F06

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

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

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

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

View Full Document
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 CBL = CL * ZITEMP CBR = CR * ZITEMP IF (IFLUX .EQ. 0 .OR. NPFLUX .EQ. 0) GO TO 25 IRO = ILY + IRWN - 1 IF (IXORY .EQ. 0) IRO = ILX + IRWN - 1 7.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### 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
Ask a homework question - tutors are online