Computer Architecture (BSc CSIT, CSC208): the questions likely to come
20 analyzed questions from 7 past papers (2074-2081), grouped by syllabus unit — each with its probability, how often it's been asked, and where to study the answer.
What is cache memory? Explain the different cache mapping techniques (direct, associative and set-associative) with suitable diagrams.
Cache Memory
Cache memory is a small, high-speed memory placed between the CPU and main memory (RAM). It stores copies of frequently accessed instructions and data so that the CPU can access them faster than fetching from slower main memory. It works on the principle of locality of reference (temporal and spatial locality).
When the CPU needs a word, it first checks the cache:
- Cache hit — the word is found in cache (fast access).
- Cache miss — the word is not in cache, so it is fetched from main memory and a block is copied into cache.
The ratio of hits to total references is the hit ratio, a key measure of cache performance.
Main memory is divided into blocks and cache into lines of the same size. A mapping function decides which main-memory block goes to which cache line.
Cache Mapping Techniques
1. Direct Mapping
Each main-memory block maps to exactly one fixed cache line, given by:
The physical address is split into three fields:
| Tag | Line (Index) | Word (Offset) |
|---|
- Word selects the byte/word within a block.
- Line selects the cache line directly.
- Tag is stored with the line and compared to verify the right block.
Diagram (in words): Each cache line has a tag field and a data block. The line field of the address indexes one line; its stored tag is compared with the address tag — equal means hit.
Advantage: Simple and cheap (one comparison). Disadvantage: High conflict misses — two blocks mapping to the same line repeatedly evict each other.
2. Associative (Fully Associative) Mapping
A main-memory block can be placed in any cache line. The address has only two fields:
| Tag | Word |
|---|
The tag must be compared with the tags of all cache lines simultaneously (using associative/content-addressable memory).
Diagram (in words): All cache-line tags are searched in parallel by comparators; any match is a hit.
Advantage: Most flexible, lowest conflict misses, best hit ratio. Disadvantage: Expensive hardware (many comparators) and needs a replacement algorithm (LRU/FIFO).
3. Set-Associative Mapping
A compromise between the two. The cache is divided into sets, each containing lines (a k-way set-associative cache). A block maps to one fixed set but can occupy any line within that set:
The address has three fields:
| Tag | Set | Word |
|---|
Diagram (in words): The set field indexes one set; the tag is compared in parallel with the lines of that set only.
Advantage: Lower conflict misses than direct mapping and far cheaper than fully associative ( comparators only). Most real caches use 2-way, 4-way or 8-way set-associative mapping.
Summary
Direct mapping is the special case ; fully associative is the case where the whole cache is one set. Set-associative balances cost and performance.
Memory Organization
What is cache memory? Explain the different cache mapping techniques (direct, associative and set-associative) with suitable diagrams.
What is virtual memory? Explain the concept of paging.
Explain set-associative mapping technique of cache memory with an example.
Explain the memory hierarchy in a computer system with a suitable diagram.
Sit a probable paper
A full mock exam built from the most likely questions, mirroring the real paper's structure. Every slot is a real past question.
Most Probable Paper
Mirrors the real structure · 60 marks · based on 7 past papers
- 1.[10 marks]
What is cache memory? Explain the different cache mapping techniques (direct, associative and set-associative) with suitable diagrams.
This question has recurred in 4 of 7 years; so far only in internal assessments, not the board; and its topic (Memory Organization) appears in 100% of years.
- 2.[10 marks]
Explain the design of a binary adder-subtractor circuit. Describe Booth's multiplication algorithm and multiply (-5) x (3) using it.
This question has recurred in 3 of 7 years; so far only in internal assessments, not the board; and its topic (Computer Arithmetic) appears in 100% of years.
- 3.[10 marks]
Explain Flynn's classification of computer architectures (SISD, SIMD, MISD, MIMD) with examples.
This question has recurred in 3 of 7 years; so far only in internal assessments, not the board; and its topic recurs in 5 of 7 years.
- 1.[5 marks]
What is DMA? Explain how direct memory access transfers data without CPU intervention.
This question has recurred in 7 of 7 years; so far only in internal assessments, not the board; and its topic (Input-Output Organization) appears in 100% of years.
- 2.[5 marks]
Explain the algorithm for division of unsigned integers (restoring division) with an example.
This question has recurred in 6 of 7 years; so far only in internal assessments, not the board; and its topic (Computer Arithmetic) appears in 100% of years.
- 3.[5 marks]
Explain the concept of microprogrammed control and microinstruction format.
This question has recurred in 6 of 7 years; so far only in internal assessments, not the board; and its topic (Microprogrammed Control) appears in 86% of years.
- 4.[5 marks]
Explain register transfer language with examples of micro-operations.
This question has recurred in 6 of 7 years; so far only in internal assessments, not the board; and its topic (Register Transfer and Microoperations) appears in 86% of years.
- 5.[5 marks]
What is virtual memory? Explain the concept of paging.
This question has recurred in 5 of 7 years; so far only in internal assessments, not the board; and its topic (Memory Organization) appears in 100% of years.
- 6.[5 marks]
Explain set-associative mapping technique of cache memory with an example.
This question has recurred in 5 of 7 years; so far only in internal assessments, not the board; and its topic (Memory Organization) appears in 100% of years.
- 7.[5 marks]
Explain the memory hierarchy in a computer system with a suitable diagram.
This question has recurred in 5 of 7 years; so far only in internal assessments, not the board; and its topic (Memory Organization) appears in 100% of years.
- 8.[5 marks]
Explain the instruction format and the types of instructions based on the number of addresses.
This question has recurred in 5 of 7 years; so far only in internal assessments, not the board; and its topic (Central Processing Unit) appears in 100% of years.
- 9.[5 marks]
Differentiate between RISC and CISC architectures.
This question has recurred in 5 of 7 years; so far only in internal assessments, not the board; and its topic (Central Processing Unit) appears in 100% of years.
Behind the numbers
The raw evidence the predictions are computed from: marks per unit per year, syllabus weights, trends, and coverage.
Show the heatmap, topic table and coverage analysis
The receipt: marks per unit, per year
Each row is a syllabus unit, each column an exam year, each cell the marks that unit earned that year. Click any cell to see the actual questions behind it.
| # | Syllabus unit | Probability | Appeared | Avg marks | Syllabus weight | Exam vs syllabus | Trend | Questions |
|---|---|---|---|---|---|---|---|---|
| 1 | U8Memory Organization | Very likely100% | 16.4 | 10%5 lecture hrs | Over-examinedexam 22% · syllabus 10% | Steady | 4 recurring4 total | |
| 2 | U4Central Processing Unit | Very likely100% | 12.1 | 16%8 lecture hrs | Balancedexam 16% · syllabus 16% | Rising | 3 recurring5 total | |
| 3 | U6Computer Arithmetic | Very likely100% | 12.1 | 10%5 lecture hrs | Over-examinedexam 16% · syllabus 10% | Steady | 3 recurring3 total | |
| 4 | U7Input-Output Organization | Very likely100% | 9.3 | 10%5 lecture hrs | Balancedexam 12% · syllabus 10% | Steady | 1 recurring1 total | |
| 5 | U3Microprogrammed Control | Very likely86% | 8.3 | 12%6 lecture hrs | Balancedexam 10% · syllabus 12% | Steady | 2 recurring2 total | |
| 6 | U2Basic Computer Organization and Design | Very likely86% | 7.5 | 18%9 lecture hrs | Under-examinedexam 9% · syllabus 18% | Fading | 2 recurring2 total | |
| 7 | U5Pipeline and Vector Processing | Likely71% | 10 | 12%6 lecture hrs | Balancedexam 10% · syllabus 12% | Steady | 2 recurring2 total | |
| 8 | U1Register Transfer and Microoperations | Very likely86% | 5 | 12%6 lecture hrs | Under-examinedexam 6% · syllabus 12% | Steady | 1 recurring1 total |
Study smart, not hard
Drag the slider: studying the top 6 units in priority order covers ~85% of all observed marks.
- ~80% line
Lecture time vs exam marks
Where the exam pays more than the curriculum spends: ● lectures vs ● exam marks, as a share of the whole course. A long teal-leading bar = high-yield unit.