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

Info icon This 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
Image of page 1

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

View Full Document Right 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’
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern