Ch 03: Branching, Loops and Program Flow

261 Questions261 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 71 โ€“ 80 of 261 Questions
Page 8 of 27
Q71
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Implied Operand Definition)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Define an implied operand in assembly language.
๐Ÿ’ป assembly Snippet
mul bx ; BX is explicit operand; AX is implied destination/source operand
Q72
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (DIV 16-Bit Divisor 32-Bit Dividend)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When the divisor operand of the `DIV` instruction is 16 bits wide (`DIV reg16`), what is the bit width of the implied dividend stored in register pair `DX:AX`?
๐Ÿ’ป assembly Snippet
div cx ; Divides 32-bit dividend in DX:AX by 16-bit CX
  1. A.64-bit
  2. B.32-bits
  3. C.16-bits
  4. D.8-bits
Q73
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (CX Count Register)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 assembly language architecture, the `CX` register is primarily designated as the __________ register.
๐Ÿ’ป assembly Snippet
mov cx, 100
rep movsb ; Uses CX as iteration count register
  1. A.Count register
  2. B.Data register
  3. C.Index register
  4. D.Base register
Q74
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (DIV Instruction Operand Forms)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The unsigned integer division instruction `DIV` in 16-bit x86 assembly language has how many primary operational operand forms based on operand size?
๐Ÿ’ป assembly Snippet
div bl ; Form 1: 8-bit division (AX / BL)
div bx ; Form 2: 16-bit division (DX:AX / BX)
  1. A.One form
  2. B.Two forms
  3. C.Three forms
  4. D.Four forms
Q75
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (16-Bit DIV Implied Dividend)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When the operand of the `DIV` instruction is 16 bits wide (`DIV reg16`), what is the bit width of the implied dividend stored in register pair `DX:AX`?
๐Ÿ’ป assembly Snippet
mov dx, 0
mov ax, 1000
mov cx, 10
div cx ; Dividend is 32-bit (DX:AX = 0x000003E8)
  1. A.8 bits
  2. B.16 bits
  3. C.32 bits
  4. D.64 bits
Q76
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Divide Overflow Exception)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When a very large dividend is divided by a very small divisor such that the calculated quotient exceeds the storage capacity of the destination register (e.g., quotient > 255 for 8-bit division), what processor exception occurs?
๐Ÿ’ป assembly Snippet
mov ax, 1000
mov bl, 2
div bl ; Quotient 500 > 255 (max 8-bit AL) -> Triggers Divide Overflow Error (INT 0)
  1. A.Divide logical error
  2. B.Divide overflow error
  3. C.Divide syntax error
  4. D.An illegal instruction
Q77
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Labels and Memory Data Definitions)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the assembly data definition statement `total: dw 0`, what structural role does the symbol `total` perform?
๐Ÿ’ป assembly Snippet
total: dw 0 ; 'total' is a symbolic memory label
  1. A.Literal
  2. B.Variable
  3. C.Label
  4. D.Starting point
Q78
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (ADC Explicit Operand Count)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many explicit operands does the Add with Carry (`ADC`) instruction take in assembly language syntax?
๐Ÿ’ป assembly Snippet
adc ax, bx ; 2 explicit operands (AX and BX)
  1. A.two
  2. B.three
  3. C.Five
  4. D.Zero
Q79
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (Fourteen Total 8088 Registers)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The Intel iAPX88 architecture consists of how many basic internal registers in total?
  1. A.13
  2. B.12
  3. C.9
  4. D.14
Q80
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (General Purpose Registers AX BX CX DX)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 8088/8086 assembly language, the four General Purpose Registers are __________.
  1. A.AX, BX, CX, and DX
  2. B.XA, BX, CX, and DX
  3. C.SS, SI and DI
  4. D.3