c262f97t1 - Possible answers to the test are below the test...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
Possible answers to the test are below the test. CSc 262 Test 1 Friday, 19 September 1997 Each question worth 20 points. 1. You are designing a pseudo-code for a machine with 512 words of data memory, 512 words of a separate program memory, where each memory location stores an unsigned 22-bit word. What form would an instruction take? Design a single arithemetic instruction, e.g., +, and a single logical instruction, and explain, in detail, what they would do. 2. Explain the principles of Regularity and Simplicity. For both FORTRAN and pseudocode give examples illustrating each of the two principles. 3. Suppose two differnt FORTRAN subprograms, say SUBA and SUBB, respectively, have the following COMMON declarations: COMMON /COM1/ A(3,4), B(4,20) COMMON /COM1/ B(4,20), A(3,4) and both subprograms have the same DIMENSION statement: DIMENSION A(3,4), B(4,20) Which variable in the second subprogram corresponds to the variable A(2,2) in the first subprogram? Which variable in the first subprogram corresponds to the variable A(1,1) in the second subprogram? 4. In FORTRAN the assigned GOTO and the computed GOTO are redundant. Choose one of the two to eliminate and explain
Image of page 1

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

View Full Document Right Arrow Icon
Image of page 2
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