CS401 QUIZ 2 SOLUTION.pdf

Verified academic study resource for CS401 (Computer Architecture & Assembly Language) under the Computer Science at Virtual University of Pakistan. This PDF document (Live Quiz Dumps & Solved Objective Bank) covers Quizzes & Objective Exam Scope spanning approximately 180 pages across 8 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
Quiz
Coverage
Quizzes & Objective Exam Scope

Quiz questions often repeat with modified parameter values in both Midterm and Final exams. Practice with our 45-second timed simulator to master exam pacing.

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)
  5. Object-Oriented Paradigms: Classes & Data Abstraction — Lectures 23 to 29 (Pages 281 to 360). 16% Final-Term Marks (Core OO Concepts)
  6. Inheritance Hierarchies & Dynamic Polymorphism — Lectures 30 to 36 (Pages 361 to 435). 20% Final-Term Marks (Virtual Functions & V-Tables)
  7. Templates, Standard Library & Persistent File I/O — Lectures 37 to 41 (Pages 436 to 510). 14% Final-Term Marks (Generic Code & Streams)
  8. 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 QUIZ 2 SOLUTION.pdf for free?

You can preview and download "CS401 QUIZ 2 SOLUTION.pdf" (CS401 PDF, ~180 pages) directly from the MIHORA VU Study Library (https://study.mihora.tech/doc/cs401-quiz-2-solution-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 Quizzes & Objective Exam Scope 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 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

              FOR MORE VISIT Virtualhelping.com

                      CS401 Quiz 2 Solved

1. In the context of video service, if we want to set the cursor at
top left corner, which of the values will be stored in DH and DL
respectively?
a) 00.80
b) 00.00 page 141
c) 25.80
d) 0.01

2. Which of the following INT 21 service is used to read character
from standard input?
a) 00
b) 01      page 144
c) 02
d) 03

3. “INT13-BIOS disk service” generally uses which register to
return the “error flag”?
a) CF page 148
b) DL
c) AH

   https://chat.whatsapp.com/L3BZ8hLwIS097iREnhTDNA

              FOR MORE VISIT Virtualhelping.com

d) AL

4. Which of the following service of INT 10 is used to get the
video font information?
a) 1129h
b) 1130h page 142
c) 1128h
d) 1127h

5. Which of the following service of INT 10 is used to write
graphic pixel on the screen?
a) 0x0A
b) 0x0B
c) 0x0C    page 144
d) 0x0D

6. On executing INT 0x21-service 0x3D, if file is successfully
opened then
a) CF will contain 1
b) CF will contain 0
c) ZF will contain 1
d) ZF will contain 0

   https://chat.whatsapp.com/L3BZ8hLwIS097iREnhTDNA

              FOR MORE VISIT Virtualhelping.com

7. On executing INT 0x21-service 0x3D, if file can’t be opened
then
a) CF will contain 1
b) CF will contain 0
c) ZF will contain 1
d) ZF will contain 0

8. Device drivers can be divided into    major categories
a) 5
b) 4
c) 3
d) 2

9. We can set the current file position in DOS using service
number _
a) 0x38
b) 0x40
c) 0x42   page 154
d) 0x43

10. COM1 is accessible via ports _ while COM2 is accessible via
a) 3FD, 3F9
b) 2F8-2FF, 3F8-3FF

   https://chat.whatsapp.com/L3BZ8hLwIS097iREnhTDNA

              FOR MORE VISIT Virtualhelping.com

c) 3F9, 3FD
d) 3F8-3FF, 2F8-2FF       page 164

11. In the context of vides services, if we want to write string
then which of the value will be placed in AH?
a) 10h
b) 12h
c) 11h
d) 13h    page 142

12. In the context of video service, if we want to scroll the
window up which of the following will be value of AH?
a) AH = 05h
b) AH = 06h    page 141
c) AH = 07h
d) AH = 08h

13. In the context of video services, if we want to set cursor
position which of the following will be the value of AH?
a) AH = 01h
b) AH = 02h    page 139
c) AH = 03h
d) AH = 04h

   https://chat.whatsapp.com/L3BZ8hLwIS097iREnhTDNA

                 FOR MORE VISIT Virtualhelping.com

14. Which standard format is used for sending data on the serial
port?
a) Full duplex
b) BIOS INT 14
c) RS232 page 163
d) COM1

15. INT 0x13 service 0x08 is use to
a) Read disk sector
b) Write disk sector
c) Reset disk sector
d) Get drive parameter       page 148

16. Parameters pushed to the routine in order with the rightmost
being pushed first using language
a) Reverse        page 179
b) Proper
c) Forward
d) Same

17. Parameters pushed to the routine in order with the left most
being pushed first using Pascal language

   https://chat.whatsapp.com/L3BZ8hLwIS097iREnhTDNA

               FOR MORE VISIT Virtualhelping.com

a) Proper page 179
b) Same
c) Reverse
d) Forward

18. ____ symbol is added to any function or variable using the C
language naming convention
a) Underscore page 177
b) #
c) &
d) @

19. Which of the following BIOS INT provides serial port services
a) INT 21
b) INT 14 page 163
c) INT 10
d) INT 08

20. A 32-bit address register can access up to     _ of memory
a) 2 MB
b) 2 GB
c) 4 MB
d) 4 GB     page 167

   https://chat.whatsapp.com/L3BZ8hLwIS097iREnhTDNA

                 FOR MORE VISIT Virtualhelping.com

21. BIOS video services are exported via interrupt
a.     INT 10      page 139
b) INT 9
c) INT 8
d) INT 7

22. Which of the following is used to terminate a string in
assembly language?
a) !
b) #
c) $
d) ;

23. The bits are sent one by one in specially formatted fashion on
the
a) Half duplex
b) Parallel port
c) Full duplex
d) Serial port     page 163

24. In VESA defined modes      bits for every pixel are organized.
a) 8 color

       https://chat.whatsapp.com/L3BZ8hLwIS097iREnhTDNA

              FOR MORE VISIT Virtualhelping.com

b) 16 color     page 172
c) 32 color
d) 64 color

25. What is the abbreviation VESA and VBE
a) Video Electrical System Association, VGA BIOS Extensions
b) Video Electronics Standards Administration, Video Bus
Extensions
c) Video Electronics Standard Association, Video BIOS Extensions
     page 172
d) VGA Electronics Standard Association, Video BIOS External

26. Which of the following services of INT 21 is used to write a
string on standard output?
a) 00h
b) 02h
c) 09h    page 144
d) 10h

27. In 9pin DB 9 connector, which pin is assigned to RD (Received
Data)?
a) 1
b) 2 page 163
c) 3

   https://chat.whatsapp.com/L3BZ8hLwIS097iREnhTDNA

               FOR MORE VISIT Virtualhelping.com

d) 4

28. The maximum length of DOS command line parameters is
a) 64 bit
b) 127 bits
c) 256 bits
d) 512 bits

29. In C    is responsible for removing the parameters.
a) Clear
b) Callee
c) Caller page 179
d) Stack

30. While using INT 10 for writing graphic pixel on screen, which
of the following registers hold the information about pixel color?
a) DH
b) DL
c) AH
d) AL       page 144

31. As compared to         ,    provides more cooked services.
a) BIOS, DOS page 144

   https://chat.whatsapp.com/L3BZ8hLwIS097iREnhTDNA

               FOR MORE VISIT Virtualhelping.com

b) DOS, OS
c) DOS, BIOS
d) OS, DOS

32. ____ Register is used for storing the base and limit of GDT.
a) LGDT
b) GDTR page 168
c) Null Descriptor
d) LDT

33. INT13-BIOS disk service” generally uses which register to
return the “error code”?
a) CF
b) DL
c) AH     page 148
d) AL

34. In case of COM File, first command line parameter is stored at
     offset of ‘Program segment prefix’
a) 0x80
b) 0x82
c) 0x84
d) 0x86

   https://chat.whatsapp.com/L3BZ8hLwIS097iREnhTDNA

               FOR MORE VISIT Virtualhelping.com

35. New devices are allowed to work with the existing operating
system with the help of
     .
a) Sockets
b) Port addresses
c) BIOS
d) Device drivers      page 158

36.       byte of DOS data buffer stores the maximum
characters buffer can hold.
a) First    page 144
b) Second

More CS401 files

All CS401 files · Midterm Prep 2026 · MCQs Bank