Computer Architecture flashcards

0.0(0)
studied byStudied by 0 people
GameKnowt Play
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/77

flashcard set

Earn XP

Description and Tags

The questions from the quizzes. Will be updated regularly.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

78 Terms

1
New cards

Computer Architecture mainly deals with:

 

Physical wiring of the computer

 

Logical structure and functional behavior of a computer system

 

The placement of transistors on a chip

 

Writing software applications

Logical structure and functional behavior of a computer system

2
New cards

The Von Neumann model is primarily based on:

 

Harvard architecture

 

Separate memory for data and instructions

 

Single memory for both data and instructions

 

Multi-core parallel execution

Single memory for both data and instructions

3
New cards

Which component holds the address of the next instruction to be executed?

 

MAR

 

MDR

 

PC

 

IR

PC

4
New cards

Special-purpose registers are designed to:

 

Hold intermediate arithmetic results

 

Perform specific control or memory management tasks

 

Store random program variables

 

Replace general-purpose registers

Perform specific control or memory management tasks

5
New cards

The stack pointer (SP) is used to:

 

Keep track of program loops

 

Store arithmetic results

 

Point to the top of the stack in memory

 

Store base addresses for arrays

Point to the top of the stack in memory

6
New cards

MAR (Memory Address Register) stores:

 

Data fetched from memory

 

Address of the memory location to be accessed

 

Instructions to be executed

 

Control signals

Address of the memory location to be accessed

7
New cards

MDR (Memory Data Register) is used to:

 

Store the program counter

 

Store the current instruction

 

Temporarily hold data read from or written to memory

 

Control program flow

Temporarily hold data read from or written to memory

8
New cards

Which register stores the instruction currently being executed?

 

PC

 

IR

 

MDR

 

MAR

IR

9
New cards

The ALU (Arithmetic Logic Unit) performs:

 

Instruction decoding

 

Memory addressing

 

Arithmetic and logical operations

 

Instruction scheduling

Arithmetic and logical operations

10
New cards

The flag register is mainly used to:

 

Indicate CPU clock rate

 

Record conditions from ALU operations (e.g., zero, carry, overflow)

 

Store immediate operands

 

Control memory mapping

Record conditions from ALU operations (e.g., zero, carry, overflow)

11
New cards

“Hz” in CPU performance represents:

 

Instructions executed per second

 

Clock frequency in cycles per second

 

Memory bandwidth

 

Cache latency

Clock frequency in cycles per second

12
New cards

The “Clock Rate” of a processor refers to:

 

Number of ALU operations per cycle

 

Frequency of the system clock

 

Memory size of the processor

 

Bus transfer rate

Frequency of the system clock

13
New cards

The “Power Wall” in processor design refers to:

 

Limitation of chip manufacturing cost

 

Limit on increasing CPU frequency due to heat and energy consumption

 

Limitation of memory size

 

Maximum achievable instruction throughput

Limit on increasing CPU frequency due to heat and energy consumption

14
New cards

Clock Cycle Time Period is defined as:

 

Time required to fetch one instruction

 

Time taken for one clock tick = 1 / (Clock Frequency)

 

The number of instructions per second

 

Bus transfer time

Time taken for one clock tick = 1 / (Clock Frequency)

15
New cards

The Timing & Control Unit of the CPU:

 

Performs multiplications and additions

 

Manages cache memory

 

Coordinates fetching, decoding, and execution of instructions

 

Stores program instructions

Coordinates fetching, decoding, and execution of instructions

16
New cards

Which of the following is a General-Purpose Register?

 

RA

 

SP

 

PC

 

IR

RA

17
New cards

Types of software include:

 

Application, System, Utility

 

Input, Output, Processing

 

Hardware, Firmware, Kernel

 

Instruction, Execution, Microcode

Application, System, Utility

18
New cards

A compiler is best defined as:

 

A program that converts high-level code into machine code

 

A program that executes code line by line

 

A type of operating system

 

A special-purpose register

A program that converts high-level code into machine code

19
New cards

The instruction cycle begins with:

 

Instruction Decode

 

Instruction Fetch

 

Instruction Execute

 

ALU Operation

Instruction Fetch

20
New cards

During the fetch phase, the CU:

 

Increments the Program Counter (PC)

 

Loads the instruction into IR

 

Sends the PC content to MAR

 

All of the above

All of the above

21
New cards

The decode phase interprets:

 

Control signals

 

The OpCode in the IR

 

Data in the MDR

 

Results in the ALU

The OpCode in the IR

22
New cards

During execution of MUL RA, RD, which unit performs the actual multiplication?

 

Control Unit

 

ALU

 

Stack Pointer

 

Compiler

ALU

23
New cards

After execution, the PC is:

 

Cleared

 

Updated to point to the next instruction

 

Loaded into the ALU

 

Ignored until the next fetch

Updated to point to the next instruction

24
New cards

For MUL RA, RD, the first micro-operation is:

 

IR ← M[PC]

 

MAR ← PC

 

RA ← RA * RD

 

MDR ← M[PC]

 

MAR ← PC

25
New cards

After MAR ← PC, the next micro-operation is:

 

IR ← MDR

 

MDR ← M[MAR]

 

PC ← PC + 1

 

RA ← RA * RD

MDR ← M[MAR]

26
New cards

Once instruction is in MDR, the micro-operation is:

 

MDR ← IR

 

IR ← MDR

 

RA ← RA * RD

 

PC ← MDR

IR ← MDR

27
New cards

Instruction decode identifies the OpCode as:

 

ADD

 

MUL

 

SUB

 

MOV

MUL

28
New cards

In execution, the micro-operation performed is:

 

RA ← RA + RD

 

RA ← RA – RD

 

RA ← RA * RD

 

RA ← RD

RA ← RA * RD

29
New cards

After multiplication, the result is:

 

Stored in MAR

 

Stored in RA

 

Stored in PC

 

Stored in MDR

Stored in RA

30
New cards

After execution, the PC is updated by:

 

PC ← PC – 1

 

PC ← PC + 1

 

PC ← RA

 

PC ← MAR

PC ← PC + 1

31
New cards

Which of the following is the correct order of instruction cycle phases?

 

Execute → Decode → Fetch

 

Fetch → Decode → Execute

 

Decode → Fetch → Execute

 

Fetch → Execute → Decode

Fetch → Decode → Execute

32
New cards

In Von Neumann systems, instruction and data share:

 

Same memory and same bus

 

Different memory and same bus

 

Same memory but different bus

 

Different memory and different bus

Same memory and same bus

33
New cards

What limits CPU performance due to the “von Neumann bottleneck”?

 

Small cache size

 

Shared bus between instruction and data memory

 

Slow ALU

 

Large number of registers

Shared bus between instruction and data memory

34
New cards

Which micro-operation increments PC after fetch?

 

PC ← PC – 1

 

PC ← PC + 1

 

PC ← RA + RD

 

PC ← MDR

PC ← PC + 1

35
New cards

The control signals during execution are primarily generated by:

 

ALU

 

Compiler

 

Timing and Control Unit

 

Flag Register

Timing and Control Unit

36
New cards

Stack memory operates on the principle of:

 

FIFO

 

LIFO

 

Random access

 

Sequential access

LIFO

37
New cards

Which is not a special-purpose register?

 

PC

 

SP

 

IR

 

RA

RA

38
New cards

Which of the following contains the binary representation of the instruction being executed?

 

IR

 

MDR

 

MAR

 

PC

IR

39
New cards

Which phase involves control signals being sent to the ALU and registers?

 

Fetch

 

Decode

 

Execute

 

None

Execute

40
New cards

Which is correct for the instruction MUL RA, RD?

 

RA ← RA + RD

 

RA ← RA – RD

 

RA ← RA * RD

 

RA ← RD

RA ← RA * RD

41
New cards

In terms of clock rate, if a CPU runs at 3 GHz, the clock cycle time is approximately:

 

3 seconds

 

0.33 ns

 

3 ns

 

33 ns

0.33 ns

42
New cards

Which one is a system-level software?

 

Compiler

 

Word Processor

 

Web Browser

 

Media Player

Compiler

43
New cards

CPI stands for:

 

Cycles Per Instruction

 

Central Processing Instruction

 

Central Performance Index

 

Cycle Program Instruction

Cycles Per Instruction

44
New cards

CPI measures:

 

Number of clock cycles required per instruction

 

Number of programs executed per cycle

 

Number of instructions executed per second

 

Processor frequency

Number of clock cycles required per instruction

45
New cards

Which factors affect CPI?

 

Instruction mix

 

All others are true

 

Compiler optimization

 

Instruction set coverage

All others are true

46
New cards

If a program executes 1 million instructions and takes 2 million cycles, its average CPI is:

 

0.5

 

1.0

 

2.0

 

4.0

2.0

47
New cards

Reducing CPI generally:

 

Slows down program execution

 

Improves program performance

 

Reduces processor frequency

 

Increases instruction count

Improves program performance

48
New cards

A CPI of 1 means:

 

One instruction executes per one cycle

 

One cycle executes per instruction

 

Instruction requires multiple cycles

 

Program execution is slow

One instruction executes per one cycle

49
New cards

CPI and CPI- average can never be:

 

Zero

 

Fractional

 

Greater than 1

 

Dependent on program type

Zero

50
New cards

Speedup (S) is defined as:

 

Execution time of old / Execution time of new

 

CPI of new / CPI of old

 

Clock cycles per instruction

 

None of the above

Execution time of old / Execution time of new

51
New cards

A speedup of 2 means:

 

Program runs twice as fast

 

Execution time doubled

 

CPI doubled

 

Program slowed down

Program runs twice as fast

52
New cards

If execution time improves from 10s to 2s, speedup is:

 

2

 

5

 

8

 

10

5

53
New cards

Speedup depends on:

 

Improvement of enhanced part

 

Fraction of execution time affected

 

Both a and b

 

None

Both a and b

54
New cards

If no part of the program is improved, speedup is:

 

Infinite

 

Zero

 

1

 

Undefined

1

55
New cards

Which law governs the maximum possible speedup?

 

Newton’s law

 

Amdahl’s Law

 

Moore’s Law

 

Gustafson’s Law

Amdahl’s Law

56
New cards

Scientific applications usually:

 

Are compute-intensive/CPU-bound

 

Have large dynamic instruction counts

 

Need high floating-point performance

 

All of the above

All of the above

57
New cards

Commercial applications are typically:

 

Data-intensive/Input-Output bound

 

Compute-intensive

 

Instruction mix invariant

 

Real-time only

Data-intensive/Input-Output bound

58
New cards

Real-time programs require:

 

High throughput

 

Predictable response time

 

Maximum clock rate

 

High CPI

Predictable response time

59
New cards

Embedded applications often:

 

Run on power-constrained devices

 

Ignore performance

 

Have unlimited memory

 

Use supercomputers

Run on power-constrained devices

60
New cards

Workloads in desktop applications mostly include:

 

Office productivity, browsing

 

High-performance computing

 

Real-time embedded control

 

None

Office productivity, browsing

61
New cards

Which application type is most sensitive to latency?

 

Interactive real-time

 

Scientific batch processing

 

Batch transaction processing

 

Compiler optimization

Interactive real-time

62
New cards

Benchmark programs are designed to:

 

Stress specific system features

 

Replace applications

 

Decrease CPI

 

Avoid performance comparison

Stress specific system features

63
New cards

Database applications are mainly:

 

I/O bound

 

CPU bound

 

Floating-point bound

 

Cache independent

I/O bound

64
New cards

CPU time = ?

 

Instruction count × CPI × Clock cycle time

 

CPI ÷ Instruction count

 

Instruction count × Clock rate

 

CPI × Clock rate

Instruction count × CPI × Clock cycle time

65
New cards

Instruction count depends on:

 

Program

 

Compiler

 

Instruction set architecture

 

All of the above

All of the above

66
New cards

Clock cycle time is inverse of:

 

CPI

 

Clock frequency

 

Instruction count

 

Speedup

Clock frequency

67
New cards

MIPS stands for:

 

Million Instructions Per Second

 

Memory Instruction Processing System

 

Maximum Integer Processing Speed

 

Million Integer Per Second

Million Instructions Per Second

68
New cards

MFLOPS measures:

 

Integer performance

 

Floating-point performance

 

Cache performance

 

CPI

Floating-point performance

69
New cards

Which is the most reliable metric?

 

CPU execution time

 

MIPS

 

MFLOPS

 

CPI alone

CPU execution time

70
New cards

Dynamic instruction count refers to:

 

Total number of instructions executed at runtime

 

Number of instructions in program text

 

Instruction set size

 

Maximum instructions in compiler

Total number of instructions executed at runtime

71
New cards

Static instruction count is:

 

Total instructions written in source code

 

Total executed instructions

 

CPI

 

Clock cycle time

Total instructions written in source code

72
New cards

Which affects dynamic instruction count?

 

Input data

 

Control flow (branches, loops)

 

Compiler

 

All of the above

All of the above

73
New cards

Dynamic instruction count × CPI × Cycle time = ?

 

CPU time

 

Instruction rate

 

Speedup

 

MIPS

CPU time

74
New cards

Amdahl’s Law is used to calculate:

 

Maximum speedup achievable

 

Instruction count

 

CPI

 

Pipeline depth

Maximum speedup achievable

75
New cards

According to Amdahl’s Law, if fraction improved = 0, speedup is:

 

1

 

0

 

Infinite

 

Undefined

1

76
New cards

Formula for Amdahl’s Law speedup:

 

1 / ((1 - F) + (F/S))

 

F × S

 

CPI × IC × Time

 

Clock rate × CPI

1 / ((1 - F) + (F/S))

77
New cards

Amdahl’s Law shows diminishing returns because:

 

Unimproved portion dominates execution time

 

CPI increases

 

Clock frequency decreases

 

Instruction count reduces

Unimproved portion dominates execution time

78
New cards

In practical computing, Amdahl’s Law is applied to:

 

Decide whether partial improvement is worth it

 

Estimate CPI

 

Replace execution time metric

 

Ignore compiler optimizations

Decide whether partial improvement is worth it