cs401 Midterm Subjective - Copy.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
SUBJECTIVE, 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 Subjective - Copy.pdf for free?

You can preview and download "cs401 Midterm Subjective - Copy.pdf" (CS401 PDF, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs401-midterm-subjective-copy-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

         Most Important & Repeated Subjective Midterm Cs401
                   Cs401
              Assembly Language
        Most Repeated Subjective Midterm

❖ Midterm Short Notes      ❖ Important Question   ❖ Accurate Assignment

❖ Final Term Short Notes   ❖ Repeated Question    ❖ Quiz File

❖ Mid Term Past Paper      ❖ Solved Past Paper    ❖ Accurate GDB

❖ Final Term Past Paper    ❖ Moaz & Waqar         ❖ Current Paper

❖ Mega File                                       ❖ Vu New Update

Subscribe Youtube Channel To Get More Post

https://youtube.com/channel/UC_Ar-KkTPqjaljUX2LimmOQ

 Please Subscribe Channel Learning With A&I                     Page 1

         Most Important & Repeated Subjective Midterm Cs401

Question No 1
Why is it necessary to provide the segment and offset address in case of FAR jump ?
Answer:-
Far jump must be used a two byte segment and a two byte offset are given to it Because It
loads CS with the segment part and IP with the offset part.

Question No 2
What’s your understanding about Incrementing and Decrementing Stack?

Answer:-
A decrementing stack moves from higher addresses to lower addresses as elements are added
in it while an incrementing stack moves from lower addresses to higher addresses as elements
are added.

Question No 3
What is difference between SHR and SAR instructions?
Answer:-
The shift logical right operation inserts a zero from the left and moves every bit one position to
the right and copies the rightmost bit in the carry flag.

Question No 4
Define implied operand?

Answer:-
An implied operand means that it is always in a particular register say the accumulator, and it
need not be mentioned in the instruction.

Please Subscribe Channel Learning With A&I                                                Page 2

         Most Important & Repeated Subjective Midterm Cs401

Question No 5

For what purpose “INT 1” is reserved?
Answer:-
INT 1, Trap, Single step Interrupt This interrupt is used in debugging with the trap flag. If the
trap flag is set the single Step Interrupt is generated after every instruction. By hooking this
interrupt a debugger can get control after every instruction and display the registers etc. 8088
was the first processor that has this ability to support debugging

Question No 6
Define short jump

Answer:-
If the offset is stored in a single byte as in 75F2 with the opcode 75 and operand F2, the jump is
called a short jump.

Question No 7
Explain the function of rotate right (ROR) instruction
Answer:-
In the rotate right operation every bit moves one position to the right and the bit dropped from
the right is inserted at the left. This bit is also copied into the carry flay.

Question No 8
How many parameters a subroutine can receive through stack.
Answer:-

The maximum parameters a subroutine can receive are seven

Question No 9
Double working of Exchange instruction with help of an example.

Answer:-
Xchg ax, [bx+si+2] ; exchange ax with second number

Please Subscribe Channel Learning With A&I                                                Page 3

         Most Important & Repeated Subjective Midterm Cs401

Question No 10
Relation between RET and CALL is dependent or independent.
Answer:-
Technically they are independent in their operation but both the instructions are commonly
used as a pair. The RET works regardless of the CALL and the CALL works regardless of the RET.

Question No 11
What is the difference between LES and LDS instruction?

Answer:-
LES loads ES while LDS loads DS. These instructions have two parameters, one is the general
purpose register to be loaded and the other is the memory location from which to load these
registers.

Question No 12
Write down the procedure to clear the selective bit.
Answer:-
The source operand is loaded with a mask containing one at positions which are retain their old
value and zero at positions which are to be zeroed. The effect of applying this operation on the
destination with mask in the source is to clear the desired bits. This operation is called masking.

Question No 13

Why REP prefix is generally not used with LODS instruction?
Answer:-
LODS is generally used in a loop and not with the REP prefix since the value previously loaded in
the register is overwritten if the instruction is repeated and only the last value of the block
remains in the register.

Please Subscribe Channel Learning With A&I                                                 Page 4

         Most Important & Repeated Subjective Midterm Cs401

Question No 14
What is difference between REPE and REPNE?
Answer:-
REPE or REPZ repeat the following string instruction while the zero flag is set and REPNE or
REPNZ repeat the following instruction while the zero flag is not set.

Question No 15
Describe Push and Pop with the help of an example.
Answer:-

The operations of placing items on the stack and removing them from there are called push and
pop. Memory is like a shelf numbered as zero at the top and the maximum at the bottom. If a
decrementing stack starts at shelf 5, the first item is placed in shelf 5; the next item is placed in
shelf 4, the next in shelf 3 and so on

Question No 16
How many block processing instructions in 8088, just name the number of processing
instructions?
Answer:-

There are just 5 block processing instructions in 8088. The five instructions are STOS, LODS,
CMPS, SCAS, and MOVS called store string, load string, compare string, scan string, and move
string respectively

Question No 17
What are the instruction use by assembly language for permanent diversion and temporarily
diversion?
Answer:-

The instructions for permanent diversion in 8088 are the jump instructions, while the
instruction for temporary diversion is the CALL instruction.

Please Subscribe Channel Learning With A&I                                                  Page 5

         Most Important & Repeated Subjective Midterm Cs401

Question No 18

How much string instructions are in assembly language? Write down all instructions.
Answer:-
STOS – Clearing the Screen
LODS – String Printing
SCAS -String Length

More CS401 files

All CS401 files · Midterm Prep 2026 · MCQs Bank