CS401 Midterm Preparation Lecture wise BY PIN2 And MUHAMMAD (MAS All Rounder).pdf

Verified academic study resource for CS401 (Computer Architecture & Assembly Language) under the Computer Science at Virtual University of Pakistan. This PDF 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
CS401 – Computer Architecture & Assembly Language
Faculty
Computer Science
Format
PDF
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
LECTURE, 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 CS401.

What this file covers — CS401 syllabus roadmap

  1. Core Architecture, Syntax & Primitive Data Structures — Lectures 1 to 6 (Pages 1 to 65). 15% Objective Marks (8–10 MCQs)
  2. Conditional Branching, Loops & Logical Control Flow — Lectures 7 to 12 (Pages 66 to 140). 18% Exam Marks (MCQs + 2-Mark Short Questions)
  3. Memory Management, Pointers, Arrays & Functions — Lectures 13 to 18 (Pages 141 to 215). 22% Exam Marks (High Yield for Midterms)
  4. 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 CS401 Midterm Preparation Lecture wise BY PIN2 And MUHAMMAD (MAS All Rounder).pdf for free?

You can preview and download "CS401 Midterm Preparation Lecture wise BY PIN2 And MUHAMMAD (MAS All Rounder).pdf" (CS401 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs401-midterm-preparation-lecture-wise-by-pin2-and-muhammad-mas-all-rounder-pdf) with 100% free high-speed downloads and zero registration requirements.

What syllabus chapters and lectures are covered in this CS401 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 CS401 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 CS401 solved past papers and handouts verified for 2026 exams?

Yes. All CS401 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

     CS401 Midterm Preparation Lecture wise BY
             PIN2 And MUHAMMAD
                (MAS All Rounder)

 FOR MORE VU DATA VISIT MY website:
 https://masallrounder.blogspot.com/

CS401 Midterm Preparation Lecture wise
                 by
            PIN2 and MUHAMMAD
               (MAS All Rounder)
     CS401 Midterm Preparation Lecture wise BY
             PIN2 And MUHAMMAD
                (MAS All Rounder)

              CS401 Midterm Preparation Lecture wise BY
                      PIN2 And MUHAMMAD
                         (MAS All Rounder)
    Computer Architecture and Assembly Language Programming CS401

Lecture No: 1
Address, Data, and Control Buses
A computer system comprises of a processor, memory, and I/O devices. I/O is used
for interfacing with the external world, while memory is the processor’s internal
world. Processor is the core in this picture and is responsible for performing
operations.
     •  There must be a mechanism to inform memory that we want to do the read
        operation
    • There must be a mechanism to inform memory that we want to read
        precisely which element
    • There must be a mechanism to transfer that data element from memory to
        processor
The group of bits that the processor uses to inform the memory about which
element to read or write is collectively known as the address bus. (address bus
generate binary numbers)
Another important bus called the data bus is used to move the data from the
memory to the processor in a read operation and from the processor to the memory
in a write operation.
The third group consists of miscellaneous independent lines used for control
purposes. For example, one line of the bus is used to inform the memory about
whether to do the read operation or the write operation. These lines are
collectively known as the control bus. (precise synchronization between the
processor and the memory is the responsibility of the control bus. the control
bus is a bidirectional bus and can carry information from processor to memory as
well as from memory to processor.) The address bus is unidirectional and address
always travels from processor to memory.
The number of bits in a cell is called the cell width.
Registers:
Operands are the data on which we want to perform a certain operation.
There are temporary storage places inside the processor called registers.

              CS401 Midterm Preparation Lecture wise BY
                      PIN2 And MUHAMMAD
                         (MAS All Rounder)

              CS401 Midterm Preparation Lecture wise BY
                      PIN2 And MUHAMMAD
                         (MAS All Rounder)
Registers are like a scratch pad ram inside the processor and their operation is very
much like normal memory cells. They have precise locations and remember what
is placed inside them. They are used when we need more than one data element
inside the processor at one time.       Registers are more than one in number r0,
r1, r2
Lecture No: 2 Accumulator
There is a central register in every processor called the accumulator. Traditionally
all mathematical and logical operations are performed on the accumulator. The
word size of a processor is defined by the width of its accumulator. A 32bit
processor has an accumulator of 32 bits. Pointer, Index, or Base Register
The name varies from manufacturer to manufacturer, but the basic distinguishing
property is that it does not hold data but holds the address of data.
Flags Register or Program Status Word
This is a special register in every architecture called the flags register or the
program status word. Like the accumulator it is an 8, 16, or 32 bits register but
unlike the accumulator it is meaningless as a unit, rather the individual bits carry
different meanings.
The bits of the accumulator work in parallel as a unit and each bit mean the same
thing. The bits of the flags register work independently and individually, and
combined its value is meaningless.
Program Counter or Instruction Pointer
Everything must translate into a binary number for our dumb processor to
understand it, be it an operand or an operation itself. Therefore, the instructions
themselves must be translated into numbers. (the symbols are called instruction

Mnemonic)
For the processor 152 might be the add instruction. Just this one number tells it that
it has to add, where its operands are, and where to store the result. This number is
called the opcode.

INSTRUCTION GROUPS
Usual opcodes in every processor exist for moving data, arithmetic and logical
manipulations etc. However, their mnemonics vary depending on the will of the
              CS401 Midterm Preparation Lecture wise BY
                      PIN2 And MUHAMMAD
                         (MAS All Rounder)

              CS401 Midterm Preparation Lecture wise BY
                      PIN2 And MUHAMMAD
                         (MAS All Rounder)
manufacturer. Some manufacturers name the mnemonics for data movement
instructions as “move,” some call it “load” and “store” and still other names are
present. But the basic set of instructions is similar in every processor. A grouping
of these instructions makes learning a new processor quick and easy. Just the group
an instruction belongs tells a lot about the instruction.
Data Movement Instructions
These instructions are used to move data from one place to another. These places
can be registers, memory, or even inside
peripheral devices. Some examples are:                mov ax, bx         lad 1234
Arithmetic and Logic Instructions
Arithmetic instructions like addition, subtraction, multiplication, division and
Logical instructions like logical and, logical or, logical xor, or complement are part
of this group. Some examples are:        and ax, 1234        add bx, 0534       add
bx,
[
1
2
0
0
]
Program Control Instructions
The instruction pointer points to the next instruction and instructions run one after
the other with the help of this register.
Special Instructions
Another group called special instructions works like the special service

More CS401 files

All CS401 files · Midterm Prep 2026 · MCQs Bank