CS 401 MID TERM SOLVED PAPER.doc

Verified academic study resource for CS401 (Computer Architecture & Assembly Language) 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
CS401 – Computer Architecture & Assembly Language
Faculty
Computer Science
Format
DOC
Type
Midterm
Coverage
Mid-Term Exam Scope (Lectures 1 to 22)
Tags
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 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 CS 401 MID TERM SOLVED PAPER.doc for free?

You can preview and download "CS 401 MID TERM SOLVED PAPER.doc" (CS401 DOC, ~240 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs-401-mid-term-solved-paper-doc) 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

MIDTERM  EXAMINATION
Spring 2010
CS401- Computer Architecture and Assembly Language Programming (Session - 3)
Ref No: 1353756
Time: 60 min
Marks: 38
Student Info
 StudentID:
  BC080402322
 Center:
  OPKST
 ExamDate:
  5/26/2010 12:00:00 AM

For Teacher's Use Only
    Q No.
1
2
3
4
5
6
7
8
Total
Marks

Q No.
9
10
11
12
13
14
15
16

Marks

Q No.
17
18
19
20
21
22
23


Marks


Question No: 1    ( Marks: 1 )    - Please choose one
 After the execution of SAR instruction

       ► The msb is replaced by a 0

       ► The msb is replaced by 1

       ► The msb retains its original value

       ► The msb is replaced by the value of CF


Question No: 2    ( Marks: 1 )    - Please choose one
 RETF will pop the offset in the
       ► BP
       ► IP
       ► SP
       ► SI

Question No: 3    ( Marks: 1 )    - Please choose one
 The routine that executes in response to an INT instruction  is called

       ► ISR

       ► IRS

       ► ISP

       ► IRT


Question No: 4    ( Marks: 1 )    - Please choose one
 The first instruction of “COM” file must be at offset:
       ► 0x0010
       ► 0x0100
       ► 0x1000
       ► 0x0000

Question No: 5    ( Marks: 1 )    - Please choose one
 “Far” jump is not position relative but is _______________
       ► memory   dependent
       ► Absolute
       ► temporary
       ► indirect


Question No: 6    ( Marks: 1 )    - Please choose one
 Only ___________ instructions allow moving data from memory to memory.

       ► string
       ► word
       ► indirect
       ► stack

Question No: 7    ( Marks: 1 )    - Please choose one
 After the execution of instruction “RET 2”

       ► SP is incremented by 2

       ► SP is decremented by 2

       ► SP is incremented by 4

       ► SP is decremented by 4


Question No: 8    ( Marks: 1 )    - Please choose one
 DIV instruction has

       ► Two forms

       ► Three forms

       ► Four forms

       ► Five forms


Question No: 9    ( Marks: 1 )    - Please choose one
 When the operand of DIV instruction is of 16 bits then implied dividend will be of

       ► 8 bits
       ► 16 bits
       ► 32 bits
       ► 64 bits


Question No: 10    ( Marks: 1 )    - Please choose one
 After the execution of MOVS instruction which of the following registers are updated
       ► SI only

       ► DI only

       ► SI and DI only

       ► SI, DI and BP only


Question No: 11    ( Marks: 1 )    - Please choose one
 In 8088 architecture, whenever an element is pushed on the stack
       ► SP is decremented by 1
       ► SP is decremented by 2
       ► SP is decremented by 3
       ► SP is decremented by 4

Question No: 12    ( Marks: 1 )    - Please choose one
 When a very large number is divided by very small number so that the quotient is larger than the space provided, this is called

       ► Divide logical error

       ► Divide overflow error

       ► Divide syntax error

       ► An illegal instruction


Question No: 13    ( Marks: 1 )    - Please choose one
 In the word designated for one screen location, the higher address contains

       ► The character code
       ► The attribute byte
       ► The parameters
       ► The dimensions

Question No: 14    ( Marks: 1 )    - Please choose one
 Which of the following options contain the set of instructions to open a window to  the video memory?
       ► mov AX, 0xb008
mov ES, AX
       ► mov AX, 0xb800
mov ES, AX
       ► mov AX, 0x8b00
mov ES, AX
       ► mov AX, 0x800b
mov ES, AX

Question No: 15    ( Marks: 1 )    - Please choose one
 In a video memory, each screen location corresponds to
       ► One byte
       ► Two bytes
       ► Four bytes
       ► Eight bytes

Question No: 16    ( Marks: 1 )    - Please choose one
 The execution of the instruction “mov word [ES : 0],  0x0741” will print character  “A” on screen , background color of the screen will be

       ► Black

       ► White

       ► Red

       ► Blue


Question No: 17    ( Marks: 2 )
 Why is it necessary to provide the segment and offset address in case of FAR jump ?

Segment and offset must be given to a far jump. Because, sometimes we may need to go from one code segment to another, and near and short jumps cannot take us there. Far jump must be used and a two byte segment and a two byte offset are given to it. It loads CS with the segment part and IP with the offset part.

Question No: 18    ( Marks: 2 )
 What’s your understanding about Incrementing and Decrementing Stack?
Whenever an element is pushed on the stack SP is decremented by two and whenever an element is popped on the stack SP is incremented by two.

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.
As the 8088 stack works on word sized elements. Single bytes cannot be pushed or popped from the stack.

Question No: 19    ( Marks: 2 )
 Number2:
IF DF=0 what its represent and  IF  DF=1 what its represent ?

The direction of movement is controlled with the Direction Flag (DF) in the flags register. If this flag is cleared DF=0,  the direction is from lower addresses towards higher addresses and if this flag is set DF=1, the direction is from higher addresses to lower addresses. If DF is cleared, DF = 0 this is called the autoincrement mode of string instruction, and if DF is set, DF=1,  this is called the autodecrement mode. There are two instructions to set and clear the direction flag.


Question No: 20    ( Marks: 3 )
 What is the Difference between CALL and RET
 The CALL instruction allows temporary diversion and therefore reusability of code.
 The word return holds in its meaning that we are to return from where we came and need no explicit      destination.
Therefore RET takes no arguments and transfers control back to the instruction following the CALL that took us in this subroutine.
Question No: 21    ( Marks: 3 )
 Tell the Formula to scroll up  the screen

More CS401 files

All CS401 files · Midterm Prep 2026 · MCQs Bank