Quiz5.sp09 - Signature Name Student ID cs30x Score Quiz 5...

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

View Full Document Right Arrow Icon
Signature __________________ Name _________________________ cs30x____ Student ID _________________ Score: Quiz 5 CSE 30 Spring 2009 #1. Order the following storage elements/types from fastest to slowest A) L1 cache C) Tape E) Hard Disk B) RAM (Main Memory) D) Registers F) L2 cache ______ (Fastest) ______ ______ ______ ______ ______ (Slowest) List the 2 main events that would cause a full context switch: 1) 2) The ________________ is responsible for combining all object files into a single executable file. The ________________ is responsible for getting an executable from disk into memory and ready to run. The ________________ is responsible for ensuring all symbols are known/defined. How many bits are needed in a SPARC Format 3 instruction to encode a specific register? ________ How many bits are available in a SPARC Format 3 instruction to encode an immediate constant? ________ #2. What gets printed if the following function is invoked as recurse( 6, 3 ) ? int recurse( int a, int b ) { int local = a + b; int result; if (local >= 6) result = recurse( a - 1, b ) + local; else result = local; printf( "%d\n", result ); return result;
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