midterm1_W2009

midterm1_W2009 - MAE-10 Midterm Examination I Winter 2009...

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 Winter 2009 Short answers Give short answers to the following questions. (2 pts each) Express the decimal number 3499 in hexadecimal. Express the binary number 10001 in octal. Name two high-level computer languages other than FORTRAN. Name the two FORTRAN compilers that we are exposed in class. Name two operating systems. Problem 1 Identify any compilation errors in the following FORTRAN statements. Warnings and “bad program- ming” are acceptable. If you believe there are no errros, write “OK”. (2 pts each) 1. INTEGER I J I = 1.234 J = 1234 DO J= 11,13 Print ’hello’ END DO 2. REAL I,J I = 1.234 J = 1234 DO 20 J= 11,13 write(*,*) i;j,I+J,I*J,INT(J) 20 CONTINUE 3. DO 10 i = 1, 10 DO 10 j = 10, 1, -1 PRINT *, I, J 10 CONTINUE
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. DO i = 1, 10 DO j = 10, 1, -1 PRINT *, I, J END DO 5. PROGRAM TRICKY INTEGER J DO 99 J = 1, 100 WRITE(*,*) J, SQRT(J) 99 CONTINUE end 6. PROGRAM PRINT REAL temp, ws, hum READ *, TEMP, WS READ (*,*) HUM WRITE(*,*) TEMP, WS, HUM END 7. character*15 first, last character x first = ’Donald’ last = ’Dabdub’ X = ’MAE-10’ PRINT *, Last,’,’,’First’,First
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 03/10/2009 for the course MAE 10 taught by Professor Dabdub during the Spring '09 term at UC Irvine.

Page1 / 6

midterm1_W2009 - MAE-10 Midterm Examination I Winter 2009...

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