Hardware
6 Questions
22 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

Which of the following statements about CPUs are correct?

  • The processor status register determines whether the CPU executes in privileged mode and has access to privileged registers. (correct)
  • b. The CPU stores essential data in registers such as the currently executed instruction, the program counter, the stack pointer, or the current time of the day.
  • c. RISC CPUs support powerful CPU instructions in order to reduce the size of the machine code (reduced instruction size CPUs).
  • d. The size of the registers of a CPU (e.g., 8 bits) does not necessarily imply the size of the address bus (e.g., 16 bits). (correct)
  • Which of the following statements about interrupts, system calls, and signals are correct?

  • An interrupt number is used to index into the interrupt vector in order to find the kernel function handling this type of interrupt. (correct)
  • b. Interrupts and signals both interrupt the current control flow of a process. While interrupts are handled by the kernel running in system mode, signals are handled by program code executed in the context of a process in user mode. (correct)
  • c. System calls are identified by a system call number, which is used to index into the system call table in order to find the kernel function implementing the requested system call. (correct)
  • d. Interrupt and signal masks can be used to temporarily suppress the handling of certain interrupts or signals. e. CPU registers used while processing interrupts must be restored to their original values before continuing with the interrupted control flow. (correct)
  • Which of the following statements about memory and caches are correct?

  • Cache misses cause CPUs to wait, which slows down the execution of programs and hence cache misses should be avoided. (correct)
  • b. In memory data organization avoiding locality leads to faster program execution.
  • c. The memory hierarchy expresses a trade-off between memory size and speed. (correct)
  • d. When using write through caches, the data stored in memory may not always reflect the state of the computation.
  • Which of the following statements about memory segments are correct?

    <p>A function pointer is stored in the text segment.</p> Signup and view all the answers

    Which of the following statements about stacks and stack frames are correct?

    <p>a. Memory allocation and deallocation on the stack is very efficient.</p> Signup and view all the answers

    Which of the following statements about the Von Neumann computer architecture are correct?

    <p>b. The control bus is used to transfer the control flow of a program from a CPU to I/O devices.</p> Signup and view all the answers

    Use Quizgecko on...
    Browser
    Browser