CS501-Midterm-Solved-Subjective-with-Reference.doc
Verified academic study resource for CS501 (Advance Computer Architecture) under the Computer Science at Virtual University of Pakistan. This DOC document (Midterm Solved Past Paper & Revision File) covers Mid-Term Exam Scope (Lectures 1 to 22) spanning approximately 240 pages across 4 curriculum modules, and is indexed for student examination review with instant in-browser preview and 100% free direct download.
- Course
- CS501 – Advance Computer Architecture
- Faculty
- Computer Science
- Format
- DOC
- Type
- Midterm
- Coverage
- Mid-Term Exam Scope (Lectures 1 to 22)
- Tags
- SUBJECTIVE, SOLVED, MIDTERM
Focus on core definitions and repeated MCQs from Lectures 1–22. Remember that scoring in the First Half builds your safety buffer toward the mandatory 20% Two-Half passing rule in CS501.
What this file covers — CS501 syllabus roadmap
- Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
- Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
- Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
- Midterm Consolidation, Strings & Algorithm Synthesis — Lectures 19 to 22 (Pages 216 to 280). Midterm Exam Culmination (Lectures 1–22 Scope)
Frequently asked questions
Where can I download CS501-Midterm-Solved-Subjective-with-Reference.doc for free?
You can preview and download "CS501-Midterm-Solved-Subjective-with-Reference.doc" (CS501 DOC, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs501-midterm-solved-subjective-with-reference-doc) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS501 file?
This document covers Mid-Term Exam Scope (Lectures 1 to 22) across 4 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22), featuring comprehensive definitions, solved objective questions, and examiner marking rubrics.
What is the passing criteria for CS501 under the VU 20% Two-Half Rule?
Under official Virtual University regulations, students must score at least 20% in the First Half (Quizzes, Assignments, GDBs, and Midterm combined) AND independently at least 20% in the Final-Term examination paper. Scoring under 20% in the final exam results in an automatic F grade regardless of earlier marks.
Are CS501 solved past papers and handouts verified for 2026 exams?
Yes. All CS501 materials on MIHORA VU—including Moaaz, Waqar Siddhu, and team archives—are reviewed against the current VU syllabus to help students prepare for 2026 Midterm, Final-Term, and online quiz examinations.
Inside this file
Solved by
HIRA AFTAB , MIKE ALI, CHULBULI TITLI
1-Difference b/w branch and structural hazards.(5 marks)
Which technique is used for overlapping multiple instructions in time? (2 marks)
Ans:
Pipeline technique is used for overlapping multiple instructions in time
3-Write any two stages of designing and implementation phase of pipelining (2 marks)
1. Adapting the instructions to pipelined execution
2. Designing the pipelined data
3. Generating control signals Control signals
4.
5-SRC five-stage pipeline. arranged them,These stages were given.Those five stages are given below:
1. Instruction Fetch
2. Instruction decode/operand fetch
3. ALU operation
4. Memory access
5. Register write
5. Explain horizontal and vertical microcode? (3 marks)
Ans;
Horizontal and vertical microcode schemes
In horizontal microcode schemes, there are no intermediate decoders and the control word bits are directly connected to their destination i.e. each bit in the control word is directly connected to some control signal and the total number of bits in the control word is equal to the total number of control signals in the CPU. Vertical microcode schemes employ an extra level of decoding to reduce the control word width. From an n bit control word we may have 2n bit signal values. However, a completely vertical scheme is not feasible because of the high degree of fan out.
3. Write the structure RTL description for out instruction i.e out ra, c2. 3 Marks
Write the two ways to increase the number of instruction in a given time by the processor? Explain each one briefly?5 Marks
Ans:
There are two ways to increase the number of instructions executed in a given time by a processor
By increasing clock speed
By increasing number of instructions that can execute in parallel
Increasing the clock speed
• Increasing the clock speed is an IC design issue and depends on the advancements in chip technology.
• The computer architect or logic designer cannot thus manipulate clock speeds to increase the throughput of the processor.
Increasing parallel execution of instructions
The computer architect cannot increase the clock speed of a microprocessor however he/she can increase the number of instructions processed per unit time. In pipelining we discussed that a number of instructions are executed in a staggered fashion, i.e. various instructions are simultaneously executing in different segments of the pipeline. Taking this concept a step further we have multiple data paths hence multiple pipelines can execute simultaneously.
Explain [c←A+c2(sign extend)] ( 2 marks )
In this step we would add the constant c2 after sign extension to the contents of temporary register A. As a result we would have the effective address in the buffer register C, to which we need to jump.
Write any three stages of designing and implementation phase of pipelining ( 3 marks )
Adapting the instructions to pipelined execution
Designing the pipelined data path
Generating control signals
Dif b/w PC and IR ( 3marks )
Two special registers, the Program Counter (PC) and the Instruction Register (IR). PC points to the next instruction to be executed, and the IR holds the current instruction.
Describe the working of a general micro-coded controller? (3)
Ans:
Working of a general microcoded controller
A microcoded controller works in the same way as a small general purpose computer.
1. Fetch a micro-instruction and increment micro-PC.
2. Execute the instruction present in micro-IR.
3. Fetch the next instruction and so on…
Write name of all the registers used in the task of pipe lining? (5)
Ans:
IR2,IR3,IR4,IR5,PC2,X3,Y3,Z4,Z5,MD3,MD4
RTL for Jz ra (c2) ( 5 marks )
Question 2: what is the functionality of LMBR control signal in SRC ? (2)
LMBR: This enables the "write" for the register MBR. When this signal is activated, whatever value is on the bus, can be written into the MBR
Structured RTL for add operation? (5)
Structural RTL for addition instruction add ra, rb, rc The table of add instruction is almost same as of sub instruction except in timing step T4 we have + sign for addition instead of – sign as in sub instruction. Other instructions that belong to the same group are „and‟, „or‟ and „sub‟.
2-Which registers are used in every steps of pipelining ( 5 marks )
Structured RTL for "mov" ra, rb? (3)
More CS501 files
- CS501 MIDTERM FILE 1 SOLVED BY TEAM HADI-1.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 1 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 2 SOLVED BY TEAM HADI-1.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 2 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 3 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 4 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 5 SOLVED BY TEAM HADI.pdf (PDF · Midterm)
- CS501 MIDTERM FILE 6 SOLVED BY TEAM HADI.pdf (PDF · Midterm)