Ch 17: Secondary Storage and Device Drivers

183 Questions183 MCQs0 Short Questions0 Long Questions
๐ŸŽฏ Exam Practice Papers
SEMESTER PASS

CS401 - Computer Architecture and Assembly Language Programming Examination Practice

Timed practice exam simulation for CS401 - Computer Architecture and Assembly Language Programming.

๐Ÿ“˜ VU MID TERM EXAMLectures 1 to 22
โฑ๏ธ 60 Mins

Mid Term Examination

Covers syllabus of Lectures 1 to 22 with 30 high-yield MCQs in a timed exam environment.

๐Ÿ“30 MCQs
โฑ๏ธ60 Minutes
๐Ÿ“— VU FINAL TERM EXAMLectures 23 to 45
โฑ๏ธ 90 Mins

Final Term Examination

Comprehensive semester exam preparation with 45 MCQs covering Lectures 23 to 45 with complete course coverage.

๐Ÿ“45 MCQs
โฑ๏ธ90 Minutes
Showing 11 โ€“ 20 of 183 Questions
Page 2 of 19
Q11
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Role of Integer DIV Instruction in Number PrintingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the primary role of the DIV instruction in the number-to-ASCII printing algorithm, and how are the integer quotient and remainder utilized?
๐Ÿ’ป assembly Snippet
mov dx, 0
mov ax, 253
mov bx, 10
div bx
Q12
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ LIFO Stack Purpose in Number PrintingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Why is the LIFO system stack used during number-to-ASCII conversion before printing digits to the screen?
  1. A.To reverse the order of extracted digits so they print from left to right
  2. B.To speed up integer division operations performed by the CPU
  3. C.To store attribute bytes alongside the quotient automatically
  4. D.To prevent division-by-zero hardware interrupts
Q13
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ DIV Instruction Register Configurations (8-bit vs 16-bit Divisors)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the two operational forms of the unsigned DIV instruction in 8088 assembly language, specifying the implied dividend, quotient, and remainder registers for 8-bit and 16-bit divisors.
๐Ÿ’ป assembly Snippet
div bl
div bx
Q14
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Divide Overflow Error and Type 0 Interrupt MechanicsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What causes a Divide Overflow Error (Type 0 Interrupt) during the execution of a DIV instruction in 8088 assembly language, and how does the CPU respond?
๐Ÿ’ป assembly Snippet
mov ax, 1000
mov bl, 2
div bl
Q15
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ DIV Instruction Operand Destination RegistersEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When executing the instruction 'DIV BX' in 16-bit 8088 assembly language, where are the implied dividend, quotient, and remainder stored?
๐Ÿ’ป assembly Snippet
div bx
  1. A.Dividend in AX, Quotient in AL, Remainder in AH
  2. B.Dividend in DX:AX, Quotient in AX, Remainder in DX
  3. C.Dividend in DX:AX, Quotient in DX, Remainder in AX
  4. D.Dividend in BX, Quotient in AX, Remainder in DX
Q16
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ 2D Screen Memory Offset Calculation and MUL InstructionMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain how a two-dimensional screen coordinate (Row, Column) is mapped to a linear memory offset in standard 80x25 text mode video memory, and demonstrate how the 8088 MUL instruction is applied in this calculation.
๐Ÿ’ป assembly Snippet
mov al, row
mov bl, 80
mul bl
Q17
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Unsigned MUL Instruction MechanicsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the mechanics of the unsigned MUL instruction in 8088 assembly language for both 8-bit and 16-bit operands, detailing implicit registers and double-length product storage.
๐Ÿ’ป assembly Snippet
mul bl
mul bx
Q18
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ String Processing Instructions and Hardware REP PrefixMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What are string (block processing) instructions in 8088 assembly language? State how many primitive string instructions exist and explain the function of the hardware REP prefix.
๐Ÿ’ป assembly Snippet
rep stosw
Q19
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Primitive String Instructions and MOVS Memory-to-Memory ExceptionMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
List the five primitive string instructions in 8088 assembly language. Explain why MOVS is an exception to the general x86 memory-to-memory movement rule and how string instructions with the REP prefix improve performance.
๐Ÿ’ป assembly Snippet
rep movsb
Q20
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ String Instruction Pointer and Register Conventions (DS:SI, ES:DI)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the pointer and register conventions used by 8088 string instructions, specifically detailing DS:SI, ES:DI, AL/AX, and segment override rules.
๐Ÿ’ป assembly Snippet
lodsb
stosb