midterm2_W2009 - MAE-10 Midterm Examination II 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 II Winter 2009 Short answers Give short answers to the following questions. (2 pts each) Express the octal number 777 in binary. Express the hexadecimal number FFF in decimal. In what city and country is the supercomputer Mare Nostrum located? What is the smallest number that can be printed with the format F3.0? What is the most significant advantage of the FORTRAN language compared to Java? History Give short answers to the following questions. (2 pts each) 1. Who was the father of the Difference Engine? 2. What was the main contribution of Augusta Ada King, Countess of Lovelace to the field of computing? 3. Which technology is considered superior: vacuum tubes or raw transistors? Why? UNIX Clearly state exactly what each of following UNIX commands accomplish. (2 pts each) 1. a.out > cat 2. a.out >> cat
Image of page 1

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

View Full Document Right Arrow Icon
Problem 1 State what is the exact output that will be produced by each of the following code segments. Use underscores to denote spaces when output format is specified. (5 points each) 1. PROGRAM ONE REAL X,Y,Z,RESULT,D,NAME X = 7. Y = 8. D = 123. Z = F(X,Y) RESULT = NAME(X,Y,RESULT,Z) 10 WRITE(*,*) X,Y,Z,RESULT,D END REAL FUNCTION F(X,Y) REAL X, Y F = X + Y RETURN END REAL FUNCTION NAME(X,Y,Z,D) REAL X,Y,Z PRINT *, D D = 456.
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