How CPUs Work
- 30Unfamiliar
- 0Learning
- 0Familiar
- 0Mastered
What is the primary role of a CPU in a device?
What is the primary role of a CPU in a device?
30 questions
- 1
What is the primary role of a CPU in a device?
- A
It provides power to the other components.
- B
It acts as the brain of the device, executing instructions.
- C
It stores all user data permanently.
- D
It manages the display and graphics output.
Correct answer
BIt acts as the brain of the device, executing instructions.
Explanation
The CPU is described as 'the brain of the device', responsible for processing instructions.
- A
- 2
How many transistors did the 6502 processor have?
- A
4528 transistors
- B
352 transistors
- C
2.3 million transistors
- D
16 billion transistors
Correct answer
A4528 transistors
Explanation
The 6502 chip is built from 4528 transistors.
- A
- 3
How many calculations per second can the M1 processor perform?
- A
Around 430 thousand
- B
Around 10 billion
- C
Around 1 billion
- D
Around 3 trillion
Correct answer
DAround 3 trillion
Explanation
The M1 processor can perform around 3 trillion calculations a second.
- A
- 4
What is the 'technological DNA' common to all processors?
- A
The use of silicon as a semiconductor
- B
Transistors and logic gates
- C
The Fetch, Decode, Execute cycle
- D
The von Neumann architecture
Correct answer
CThe Fetch, Decode, Execute cycle
Explanation
The video states that the shared technological DNA is the Fetch, Decode, Execute cycle, not transistors or logic gates.
- A
- 5
In the CPU analogy, what do the bookshelves represent?
- A
The CPU cache
- B
The SSD storage chips
- C
The DRAM
- D
The registers
Correct answer
BThe SSD storage chips
Explanation
Bookshelves represent the storage devices like SSD chips, which hold semi-permanent long-term data.
- A
- 6
In the CPU analogy, what does the cart represent?
- A
The cache memory
- B
The registers
- C
The DRAM
- D
The ALU
Correct answer
CThe DRAM
Explanation
The cart represents the DRAM, which is temporary and limited capacity working memory.
- A
- 7
In the CPU analogy, what does the open book on the table represent?
- A
The accumulator
- B
The instruction set
- C
The program counter
- D
The cache memory
Correct answer
DThe cache memory
Explanation
The open book represents the very limited capacity cache memory inside the CPU.
- A
- 8
In the CPU analogy, what does the sheet of paper represent?
- A
The ALU
- B
The registers
- C
The instruction decoder
- D
The control unit
Correct answer
BThe registers
Explanation
The single sheet of paper represents the registers, used for storing values being actively used.
- A
- 9
In the CPU analogy, what does the calculator represent?
- A
The control unit
- B
The ALU
- C
The instruction decoder
- D
The cache
Correct answer
BThe ALU
Explanation
The calculator represents the Arithmetic Logic Unit (ALU).
- A
- 10
In the CPU analogy, what does the robot controller represent?
- A
The instruction decoder
- B
The clock generator
- C
The control unit
- D
The ALU
Correct answer
CThe control unit
Explanation
The automated robot is called a control unit or controller, which orchestrates operations.
- A
- 11
What is the special name for the display of the ALU calculator in the analogy?
- A
Accumulator
- B
Instruction register
- C
Register
- D
Program counter
Correct answer
AAccumulator
Explanation
The ALU calculator's display that outputs the result is called the accumulator.
- A
- 12
Which of the following is NOT a function that the ALU can perform?
- A
Logical AND, OR, XOR
- B
Bit shifting
- C
Multiplying by 10 in decimal
- D
Addition and subtraction
Correct answer
CMultiplying by 10 in decimal
Explanation
The ALU works in binary; bit shifting is like multiplying by 2, not by 10. Multiplying by 10 in decimal is not an ALU function.
- A
- 13
In binary, a bit shift of one position to the left is equivalent to multiplying by what?
- A
2
- B
10
- C
1
- D
8
Correct answer
A2
Explanation
In binary, adding a zero to the end (left shift) multiplies the number by 2.
- A
- 14
What happens when the ALU compares two numbers and they are equal?
- A
The comparison result is stored in a register.
- B
The program counter jumps to a new address.
- C
The equals flag goes up.
- D
The accumulator is set to 1.
Correct answer
CThe equals flag goes up.
Explanation
When two numbers are equal, an equals flag goes up; the less than and greater than flags stay down.
- A
- 15
In the CPU analogy, what are the two types of pages found in the books?
- A
Variables and constants
- B
Instructions and data
- C
Headers and footers
- D
Code and comments
Correct answer
BInstructions and data
Explanation
Books contain two types of pages: instructions (like a recipe) and data (like ingredients).
- A
- 16
What is the function of the program counter (PC)?
- A
It stores the current instruction being executed.
- B
It holds the result of the last ALU operation.
- C
It keeps track of the next instruction to execute.
- D
It counts the number of instructions completed.
Correct answer
CIt keeps track of the next instruction to execute.
Explanation
The program counter (or instruction address register) holds the address of the next instruction.
- A
- 17
How does a jump instruction alter the flow of a program?
- A
It repeats the previous instruction.
- B
It copies data from one register to another.
- C
It increments the program counter by a fixed amount.
- D
It changes the value in the program counter to a new address.
Correct answer
DIt changes the value in the program counter to a new address.
Explanation
A jump instruction directly sets the program counter to a new number, causing execution to continue from that address.
- A
- 18
Which type of instruction is used to implement IF statements and loops?
- A
Store instruction
- B
Increment instruction
- C
Load instruction
- D
Conditional branch
Correct answer
DConditional branch
Explanation
Conditional branches check comparison flags and can change the program counter based on conditions, enabling IF and loops.
- A
- 19
How many different instructions could the 6502 processor execute?
- A
56
- B
354
- C
676
- D
145
Correct answer
A56
Explanation
The 6502 processor could complete 56 different instructions.
- A
- 20
How many different instructions can the M1 chip execute?
- A
354
- B
1024
- C
56
- D
676
Correct answer
A354
Explanation
The M1 chip can complete 354 instructions (ArmV8.4 instruction set).
- A
- 21
What are the three key steps in completing an instruction?
- A
Input, Output, Compute
- B
Read, Process, Write
- C
Fetch, Decode, Execute
- D
Load, Store, Execute
Correct answer
CFetch, Decode, Execute
Explanation
The three steps are always Fetch, Decode, and Execute.
- A
- 22
During the Fetch step, what happens to the program counter?
- A
It is incremented by 1.
- B
It is set to zero.
- C
It is stored in the current instruction register.
- D
It is loaded with the instruction address.
Correct answer
AIt is incremented by 1.
Explanation
During Fetch, the instruction is copied into the CIR and the program counter is increased by 1.
- A
- 23
What is the purpose of the instruction decoder?
- A
It performs arithmetic operations.
- B
It generates control signals based on the instruction's binary.
- C
It fetches instructions from memory.
- D
It increments the program counter.
Correct answer
BIt generates control signals based on the instruction's binary.
Explanation
The instruction decoder interprets the machine code and produces the control signals to execute the instruction.
- A
- 24
What is the role of timing signals in the Execute step?
- A
They regulate the delivery of control signals to ensure correct operation.
- B
They save the result to memory.
- C
They increment the program counter.
- D
They decode the instruction.
Correct answer
AThey regulate the delivery of control signals to ensure correct operation.
Explanation
Timing signals accommodate the travel time of electricity and logic gate delays, ensuring the correct result.
- A
- 25
What clock speed did the 6502 processor use?
- A
100 MHz
- B
2.4 GHz
- C
3.2 GHz
- D
1 MHz
Correct answer
D1 MHz
Explanation
The 6502 chip had a 1 Megahertz clock, each step taking a microsecond.
- A
- 26
What technique allows modern processors to overlap the Fetch, Decode, and Execute steps for multiple instructions?
- A
Cache prefetching
- B
Pipelining
- C
Branch prediction
- D
Multithreading
Correct answer
BPipelining
Explanation
Pipelining queues multiple instructions so that different steps for different instructions occur simultaneously.
- A
- 27
In the M1 processor's pipelined core, how many instructions can be queued per clock cycle?
- A
4
- B
32
- C
8
- D
16
Correct answer
C8
Explanation
The M1 core can queue 8 instructions per clock cycle in its pipeline.
- A
- 28
What distinguishes RISC architectures like ArmV8.4 from CISC architectures?
- A
RISC has more instructions than CISC.
- B
CISC architectures are more energy efficient than RISC.
- C
RISC uses a more complicated instruction decoder.
- D
RISC instructions are simple and execute at a fast, consistent rate.
Correct answer
DRISC instructions are simple and execute at a fast, consistent rate.
Explanation
RISC instructions are relatively simple and execute at a consistently fast rate, making them more energy efficient.
- A
- 29
Which architecture is used in Intel and AMD chips?
- A
CISC
- B
SIMT
- C
RISC
- D
ArmV8.4
Correct answer
ACISC
Explanation
Intel and AMD chips use the CISC architecture with x86-64 instructions.
- A
- 30
What does SoC stand for and what does it imply about the M1 chip?
- A
Standard on Chip; the M1 is a standard CPU design.
- B
System on Chip; the M1 integrates CPU, GPU, and other components on one chip.
- C
Single on Chip; the M1 has only one core.
- D
Serial on Chip; the M1 uses serial processing.
Correct answer
BSystem on Chip; the M1 integrates CPU, GPU, and other components on one chip.
Explanation
SoC stands for System on Chip, integrating multiple processors and accelerators (CPU, GPU, neural engine) on one die.
- A

Ask anything
We've read this whole study set, so questions about it get the best answers.