CS501 Solurion 1 By JUNAID.docx
Verified academic study resource for CS501 (Advance Computer Architecture) under the Computer Science at Virtual University of Pakistan. This DOC document (Verified Study Resource) covers Full Course Curriculum spanning approximately 280 pages across 8 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
- Study Resource
- Coverage
- Full Course Curriculum
Review this document alongside the official handouts and test your retention in the Interactive MCQs Studio.
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)
- Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
- Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
- Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
- Final-Term Examination Dossier & Capstone Synthesis — Lectures 42 to 45 (Pages 511 to 585). Final-Term Exam Synthesis (Lectures 23–45 Scope)
Frequently asked questions
Where can I download CS501 Solurion 1 By JUNAID.docx for free?
You can preview and download "CS501 Solurion 1 By JUNAID.docx" (CS501 DOC, ~280 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs501-solurion-1-by-junaid-docx) with 100% free high-speed downloads and zero registration requirements.
What syllabus chapters and lectures are covered in this CS501 file?
This document covers Full Course Curriculum across 8 distinct lecture units (Lectures 1 to 6, Lectures 7 to 12, Lectures 13 to 18, Lectures 19 to 22, Lectures 23 to 29, Lectures 30 to 36, Lectures 37 to 41, Lectures 42 to 45), 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
Questions No 01 10 marks
a) Write the instructions for 0-address machine to evaluate the following expression.
z = x2 + y2 + 2xy
Note: x, y and z represent memory locations.
Answer:
0-address instruction
PUSH x
PUSH x
MUL
PUSH y
PUSH Y
MUL
ADD
PUSH x
PUSH y
MUL
PUSH 2
Push x
MUL
Push y
ADD
POP z
EXPLAIN:
FIRST we PUSH Two Time X and Then we MUL its mean X raise to power 2
Then Same as for Y Then Add its mean x2 + y2 and then Push 2 and X then Mult the push Y Then Add and in Last we will Pop Z
NOTE: EXPLAIN IS NOT NECESSORY Just For Concept I explain
b) Calculate the execution time for 0-address machine using the above given expression by considering the following parameters:
Average CPI
Processor Frequency (f)
6
2 GHz
Answer:
Execution Time = IC×CPI×T
Where
IC= Instruction count
CPI = average number of system clock periods to execute an instruction
T = clock period
Putting the given value
ET = 14×6×2 ET= 16
Questions No 02 10 marks
Reverse assemble the following SRC machine language instructions:
a) B2064000h
Answer:
B2064000h
First we convert hexadecimal into binary which is:
1011 0010 0000 0110 0100 0000 0000 0000
The first 5bits of binary represent the opcode which is 2. This opcode 22 represent to “or” instruction which is a D instruction of SRC. The format of D instruction is:
31 27 26 22 21 17 16 12 11 0
Op-code
ra
rb
rc
Unused
In D instruction, the first five bits represent opcode, and next 15 bits represent the one destination and two source operands of 5-bits each. We split the given bit pattern according to the type-D instruction format as following:
Next, we specify the instruction field for each the section as following:
10110
01000
00011
00100
000000000000
Or
R8
R3
R4
Unsed
Hence, the SRC instruction will be: or,R8,R3,R4
b) 1A0C0022h
Answer:
1A0C0022h
First we convert hexadecimal into binary which is:
0001 1010 0000 1100 0000 0000 0010 0010
The first 5bits of binary represent the opcode which is 3. This opcode 3 represent to “st” instruction which is a C instruction of SRC. The format of C instruction is:
31 27 26 22 21 17 16 0
Op-code
ra
rb
c2
Next, we specify the instruction field for each the section as following:
00011
01000
00110
00000000000100010
St
R8
R6
34
Hence, the SRC instruction will be: st,R8,R6,34
More CS501 files
- CS501 By ®@π@ $@@β.docx (DOC · Study Resource)
- CS501.pdf (PDF · Study Resource)
- cs501 qz1+q2+mid mega file.pdf (PDF · Study Resource)
- cs501 qz1+q2+mid mega file.pdf (PDF · Study Resource)
- cs501-bc200405544.docx (DOC · Study Resource)
- CS501 GDB 1 SOL.pdf (PDF · Assignment)
- CS501 GDB 2023 Orange Monkey.pdf (PDF · Assignment)
- CS501 GDB IDEA SOLUTION By JUNAID.docx (DOC · Assignment)