Skip to main content
Engineering LibreTexts

2.7: Exercises

  • Page ID
    55501
  • \( \newcommand{\vecs}[1]{\overset { \scriptstyle \rightharpoonup} {\mathbf{#1}} } \) \( \newcommand{\vecd}[1]{\overset{-\!-\!\rightharpoonup}{\vphantom{a}\smash {#1}}} \)\(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\) \(\newcommand{\id}{\mathrm{id}}\) \( \newcommand{\Span}{\mathrm{span}}\) \( \newcommand{\kernel}{\mathrm{null}\,}\) \( \newcommand{\range}{\mathrm{range}\,}\) \( \newcommand{\RealPart}{\mathrm{Re}}\) \( \newcommand{\ImaginaryPart}{\mathrm{Im}}\) \( \newcommand{\Argument}{\mathrm{Arg}}\) \( \newcommand{\norm}[1]{\| #1 \|}\) \( \newcommand{\inner}[2]{\langle #1, #2 \rangle}\) \( \newcommand{\Span}{\mathrm{span}}\)\(\newcommand{\AA}{\unicode[.8,0]{x212B}}\)

    Below are some questions based on this chapter.

    2.7.1 Quiz Questions

    Below are some quiz questions.

    1) Draw a picture of the Von Neumann Architecture.

    2) What architecture component connects the memory to the CPU?

    3) Where are programs stored when the computer is turned off?

    4) Where must programs be located when they are executing?

    5) How does cache memory help overall performance?

    6) How many bytes does a C++ integer declared with the declaration int use?

    7) On the Intel X86-64 architecture, how many bytes can be stored at each address?

    8) Given the 32-bit hex \(004C4B40_{16}\) what is the:

    1. Least Significant Byte (LSB)
    2. Most Significant Byte (MSB)

    9) Given the 32-bit hex \(004C4B40_{16}\), show the little-endian memory layout showing each byte in memory.

    10) Draw a picture of the layout for the rax register.

    11) How many bits does each of the following represent:

    1. al
    2. rcx
    3. bx
    4. edx
    5. r11
    6. r8b
    7. sil
    8. r14w

    12) Which register points to the next instruction to be executed?

    13) Which register points to the current top of the stack?

    14) If al is set to \(05_{16}\) and ax is set to \(0007_{16}\), eax is set to \(00000020_{16}\), and rax is set to \(0000000000000000_{16}\), and show the final complete contents of the complete rax register.

    15) If the rax register is set to \(81,985,529,216,486,895_{10}\) (\(123456789ABCDEF_{16}\)), what are the contents of the following registers in hex?

    1. al
    2. ax
    3. eax
    4. rax ​​​​​​​


    2.7: Exercises is shared under a not declared license and was authored, remixed, and/or curated by LibreTexts.

    • Was this article helpful?