Computer Architecture Quiz: Hardware Components
40 Questions
2 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 module does the Arithmetic Logic Unit (ALU) belong to?

  • I/O Peripherals
  • Data Path (correct)
  • Control Unit
  • Memory

In the compilation process, which stage is responsible for constructing a symbol table and abstract syntax tree?

  • Assembler
  • Backend
  • Linker
  • Syntax Analyzer (Parser) (correct)

What is the primary function of the linker in the compilation process?

  • Arranges the symbol table in memory
  • Performs syntax rules checking
  • Combines partial programs and libraries (correct)
  • Translates assembly language code

During the Fetch Stage of the instruction cycle, which hardware components are active?

<p>Instruction Memory and Program Counter (D)</p> Signup and view all the answers

What is the primary purpose of a benchmark in computer systems?

<p>To compare the performance of different computers (C)</p> Signup and view all the answers

What is the primary function of the IO or Peripherals?

<p>To act as an interface between the processor and the outside world (B)</p> Signup and view all the answers

What is the primary factor that contributes to propagation delay in digital circuits?

<p>All of the above (D)</p> Signup and view all the answers

What component of the CPU is responsible for storing a small number of pieces of information?

<p>Registers (A)</p> Signup and view all the answers

Which component of the CPU carries data between different components?

<p>Interconnection (A)</p> Signup and view all the answers

What is the primary function of the ALU?

<p>To perform calculations and operations on data (A)</p> Signup and view all the answers

What component of the CPU stores a large number of pieces of information?

<p>Memory (D)</p> Signup and view all the answers

What is the role of the component that contains the ALU and Registers?

<p>To coordinate the flow of information (A)</p> Signup and view all the answers

What is the 32-bit hexadecimal representation of the instruction 'divu $s4, $a3'?

<p>0x02C7001B (C)</p> Signup and view all the answers

What is the maximum amount of memory that can be accessed in the MIPS architecture?

<p>Up to 4GB (D)</p> Signup and view all the answers

What is the purpose of the 'nor' instruction in MIPS?

<p>To perform a bitwise NOR operation (B)</p> Signup and view all the answers

What instruction should be used to implement an 'if (a!=b)' decision in assembly?

<p>bne (C)</p> Signup and view all the answers

What is the purpose of the 'addi' instruction in MIPS?

<p>To add an immediate value to a register (B)</p> Signup and view all the answers

What register is automatically updated by the 'jal' instruction in MIPS?

<p>$ra (B)</p> Signup and view all the answers

What is the number of symbols used in the decimal number system?

<p>10 (B)</p> Signup and view all the answers

What is the correct binary representation of the decimal value 35 in 8-bit 2's complement format?

<p>00100011 (D)</p> Signup and view all the answers

What is the correct hexadecimal representation of the binary value 0000101011111100 using 4 hex places?

<p>0x0AFC (A)</p> Signup and view all the answers

What indicates an even number in the two's complement representation?

<p>The least significant bit is 0 (D)</p> Signup and view all the answers

What is the result of the binary addition 00000011 + 00101011 in 8-bit 2's complement format?

<p>00101110 (C)</p> Signup and view all the answers

What is the decimal representation of the 2's complement value 11011100?

<p>-24 (A)</p> Signup and view all the answers

What is the 2's complement representation of the decimal value -32 using 8 bits?

<p>11001000 (A)</p> Signup and view all the answers

What is the decimal representation of the 2's complement value 11101111?

<p>-1 (B)</p> Signup and view all the answers

What is the most significant byte of a multi-byte datatype stored in a big-endian system?

<p>At a higher address than the least significant byte (B)</p> Signup and view all the answers

What exception will occur if a variable of type unsigned short stores a value of 65535 and is incremented?

<p>Overflow (B)</p> Signup and view all the answers

Which register is read from as the instruction subu $t1, $v1, $t3 is executed?

<p>$v1 (C)</p> Signup and view all the answers

What is the purpose of the sra instruction?

<p>To perform arithmetic right shift (A)</p> Signup and view all the answers

What is the primary advantage of increasing instruction count?

<p>Increased throughput (B)</p> Signup and view all the answers

What is the reason a load instruction can cause a stall?

<p>The memory read operation takes too long (D)</p> Signup and view all the answers

Can forwarding alone resolve all hazards in the given code?

<p>False, due to dependencies between instructions (C)</p> Signup and view all the answers

What is the description of a 1-bit history table branch prediction?

<p>A history table is used to store a single bit, mapped to the branch instruction address (B)</p> Signup and view all the answers

What is required to implement a pipelined design in a single-cycle processor?

<p>All of the above options (D)</p> Signup and view all the answers

What type of memory technology is typically used for main system memory?

<p>DRAM (C)</p> Signup and view all the answers

What type of memory should be placed close to the CPU in a memory hierarchy design?

<p>SRAM (A)</p> Signup and view all the answers

Which type of memory is the cheapest?

<p>Disk (C)</p> Signup and view all the answers

What type of locality is a level 1 cache focused on supporting?

<p>Temporal Locality (B)</p> Signup and view all the answers

What is the name of an architecture that executes one instruction on many sets of data at a time?

<p>SIMD (B)</p> Signup and view all the answers

More Like This

Computer Science Overview
32 questions

Computer Science Overview

SatisfyingMilwaukee avatar
SatisfyingMilwaukee
Informatique Chapitre 2 - Architecture Matérielle
45 questions
IN1006: Systems Architecture History Quiz
5 questions
Use Quizgecko on...
Browser
Browser