CS401-Final-term-Subjectives-Solved-With-References-by-Moaaz-vustudy.com_.doc

Verified academic study resource for CS401 (Computer Architecture & Assembly Language) under the Computer Science at Virtual University of Pakistan. This DOC document (Final-Term Solved Past Paper & Examination Pack compiled by Moaaz Siddhu) covers Final-Term Exam Scope (Lectures 23 to 45) spanning approximately 320 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
Final-Term
Coverage
Final-Term Exam Scope (Lectures 23 to 45)
Compiled by
Moaaz Siddhu
Tags
SUBJECTIVE, SOLVED, FINALTERM

Virtual University regulations strictly require achieving at least 20% marks in the Final-Term exam paper alone (typically 12+ marks out of 60) to pass CS401, regardless of midterm scores.

What this file covers — CS401 syllabus roadmap

  1. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  2. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  3. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  4. 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 CS401-Final-term-Subjectives-Solved-With-References-by-Moaaz-vustudy.com_.doc for free?

You can preview and download "CS401-Final-term-Subjectives-Solved-With-References-by-Moaaz-vustudy.com_.doc" (CS401 DOC, ~320 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs401-final-term-subjectives-solved-with-references-by-moaaz-vustudy-com-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 Final-Term Exam Scope (Lectures 23 to 45) across 4 distinct lecture units (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 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- Computer Architecture and Assembly
Language Programming	JULY 04 ,2012
Solved subjective From Final term Papers

MC100401285
Moaaz.pk@gmail.com
Mc100401285@gmail.com
PSMD01

CS401- Computer Architecture and Assembly Language Programming
FINALTERM EXAMINATION
Fall 2012

Q1. Define Stack Data Structure? 2 marks
Answer:- (Page 67)

Stack is a data structure that behaves in a first in last out manner. It can contain many elements and there is only one way in and out of the container. When an element is inserted it sits on top of all other elements and when an element is removed the one sitting at top of all others is removed first

Q2. How many broad categories video services are classified? 2 marks Answer:- (Page 149)
Video services are classified into two broad categories; graphics mode services and text mode services.

Q3. What is programmer view of processor? 2 marks Answer:- (Page 32)
The processor will blindly go there, where we mention even if it contains data and not code

Q4. INT-14-Serial-READ CHARACTER FORM PORT uses which two 8-bit registers to return to result? 2 marks

Answer:- (Page 172)
Return:

AH = line status
AL = received character if AH bit 7 clear

Q5. Difference between two instructions?
mov byte [num1],5
mov word [num1],5
Answer:-

3 Marks
In first instruction, The variable num1 is treated as a byte and similarly 5 is also treated as byte.

In 2nd instruction, The variable num1 is treated as a word and similarly 5 is also treated as word.

1
Q6. Write two different modes of video services of BIOS? Differentiate between both modes? 3 Marks Answer:- (Page 149)

Video services are classified into two broad categories; graphics mode services and text mode services. In graphics mode a location in video memory corresponds to a dot on the screen. In text mode this relation is not straightforward. The video memory holds the ASCII of the character to be shown and the actual shape is read from a font definition stored elsewhere in memory

Q7.
Define Triple Fault?
3 Marks

Q8.
Difference between roles of segment-selector and segment-descriptor?
3 Marks
Answer:- (Page 175)

Role of selector is to select on descriptor from the table of descriptors and the role of descriptor is to define the actual base address.

Q9. How value of Stack pointer (SP) changes after every PUSH or POP instructions? 5 Marks Answer:- (Page 68)

Whenever an element is pushed on the stack SP is decremented by two and when we pop from it, it increments by 2 as in case of decrementing stack. A decrementing stack moves from higher addresses to lower addresses as elements are added in it

Q10. How to write disk sector using INT 13 service?
Answer:- (Page 156)
INT 13 - DISK - WRITE DISK SECTOR(S)

AH = 03h
AL = number of sectors to write (must be nonzero)
CH = low eight bits of cylinder number
CL = sector number 1-63 (bits 0-5)
high two bits of cylinder (bits 6-7, hard disk only)
DH = head number
DL = drive number (bit 7 set for hard disk)
ES:BX -> data buffer
Return:
CF = error flag
AH = error code

AL = number of sectors transferred

5 Marks

Q11. Write down instructions for data movement and arithmetic operations in Motorola 68K Processor?
5 Marks
Answer:- (Page 191)
Data Movement

EXG D0, D2
MOVE.B (A1), (A2)
MOVEA (2222).L, A4

2
MOVEQ #12, D7
Arithmetic
ADD D7, (A4)
CLR (A3) (set to zero)
CMP (A2), D1
ASL, ASR, LSL, LSR, ROR, ROL, ROXL, ROXR (shift operations)

Q12. How to load program using INT21 service?
Answer:- (Page 165)
INT 21 - LOAD AND/OR EXECUTE PROGRAM

AH = 4Bh

5 Marks
AL = type of load (0 = load and execute)
DS:DX -> ASCIZ program name (must include extension)

ES:BX -> parameter block
Return:
CF = error flag
AX = error code

CS401- Computer Architecture and Assembly Language Programming
FINALTERM EXAMINATION

Fall 2012

Difference between serial and parallel communication.
Answer:- (Page 171)

Serial port is a way of communication among two devices just like the parallel port. The basic difference is that whole bytes are sent from one place to another in case of parallel port while the bits are sent one by one on the serial port in a specially formatted fashion.

Write brief about INT 13 – Extended READ SERVICES

Answer:-(Page 157)
INT 13 - INT 13 Extensions - EXTENDED READ
AH = 42h

DL = drive number
DS:SI -> disk address packet
Return:
CF = error flag
AH = error code

3
Describe briefly INT 3 functionality.
Answer:- (Page 133)

INT 3 is a Debug Interrupt. INT 3 has a single byte opcode so it can replace any instruction. This allows it to replace any instruction whatsoever. This is also called break point interrupt.

How to create or Truncate File using INT 21 Service?
Answer:- (Page 161)
INT 21 - CREATE OR TRUNCATE FILE
AH = 3Ch

CX = file attributes
DS:DX -> ASCIZ filename
Return:

CF = error flag
AX = file handle or error code

CS401- Computer Architecture and Assembly Language Programming
FINALTERM EXAMINATION

Fall 2012

Q1) define condition when ZF is set or clear? 2 marks Answer:- (Page 41)

When the source is subtracted from the destination and both are equal the result is zero and therefore the zero flag is set.

Q2) types of User descriptor?

Q3) system descriptor?
Answer:-(Page 182)
The S bit tells that this is a system descriptor

Q4) define interrupt INT 0*80
Answer:- (Page 145)
int 0x80 ; multitasking kernel interrupt

4

Q5) draw serial port connector? 5marks
Answer:-(Page 171)

Q6) define extended ADD with carry?	5 marks
Answer:- (Page 57)

The instruction is ADC or “add with carry.” Normal addition has two operands and the second operand is added to the firstoperand. However ADC has three operands. The third implied operand is the carry flag. The ADC instruction is specifically placed for extending the capability of ADD. Numbers of any size can be added using a proper combination of ADD and ADC. ADC first adds the carry flag to AX and then adds BX to AX. Therefore the last carry is also included in the result.

Q7) data movement? 5 marks
Answer:- (Page 13)
These instructions are used to move data from one place to another. These places can be registers, memory, or

More CS401 files

All CS401 files · Midterm Prep 2026 · MCQs Bank