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 111 โ€“ 120 of 261 Questions
Page 12 of 27
Q111
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (16-Bit Division Quotient Bit Width)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When executing a 16-bit division instruction (`DIV reg16`), dividing a 32-bit dividend in `DX:AX` by a 16-bit operand, what is the bit width of the resulting quotient stored in register `AX`?
๐Ÿ’ป assembly Snippet
div bx ; Divides DX:AX by BX; Quotient in AX (16-bit), Remainder in DX (16-bit)
  1. A.4 bits
  2. B.32 bits
  3. C.16 bits
  4. D.8 bits
Q112
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (8-Bit Division Quotient Register AL)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When executing an 8-bit division instruction (`DIV reg8`), dividing a 16-bit dividend in register `AX` by an 8-bit operand, in which register is the resulting quotient stored?
๐Ÿ’ป assembly Snippet
div bl ; Divides AX by BL; Quotient in AL, Remainder in AH
  1. A.AL
  2. B.AX
  3. C.AH
  4. D.DX
Q113
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Implied / Implicit Operand Definition)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Define what an implied operand is in assembly language instructions and give an example.
๐Ÿ’ป assembly Snippet
mul bl ; BL is explicit operand; AL and AX are implied operands
Q114
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (16-Bit DIV Implied Dividend DX:AX)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When performing 16-bit division using `DIV reg16`, where is the 32-bit implied dividend operand stored?
๐Ÿ’ป assembly Snippet
div bx ; Divides 32-bit dividend DX:AX by 16-bit register BX
  1. A.AX register
  2. B.The concatenation of DX and AX
  3. C.The concatenation of ES and AX
  4. D.The concatenation of DS and BX
Q115
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (16-Bit DIV Implied 32-Bit Dividend)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When the operand of a `DIV` instruction is a 16-bit register or memory location (`DIV reg16`), what is the required bit size of the implied dividend operand (`DX:AX`)?
๐Ÿ’ป assembly Snippet
div bx ; Divides 32-bit dividend in DX:AX by 16-bit operand BX
  1. A.32 bit
  2. B.64 bit
  3. C.16 bit
  4. D.8 bit
Q116
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Size Mismatch Assembler Syntax Error)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: A 'Size Mismatch' error (e.g., trying to move an 8-bit register value into a 16-bit register, such as `mov ax, bl`) is classified as an assembler syntax error.
๐Ÿ’ป assembly Snippet
mov ax, bl ; Syntax Error: Size Mismatch (16-bit destination, 8-bit source)
  1. A.False
  2. B.True
Q117
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (FLAGS Register Bit-Significant Structure)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 CPU architecture, which register contains individual bit flags where each single bit specifies a distinct status or control condition?
  1. A.Accumulator Register
  2. B.Pointer Register
  3. C.Index register
  4. D.Flag register
Q118
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Memory-to-Memory Data Transfer Restriction)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: Direct memory-to-memory data transfer operations (e.g., `MOV [mem1], [mem2]`) are permitted in standard x86 `MOV` instruction syntax.
๐Ÿ’ป assembly Snippet
; mov [num1], [num2] ; ILLEGAL in x86 ISA
mov ax, [num2]
mov [num1], ax      ; Legal two-step transfer
  1. A.True
  2. B.False
Q119
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (NOP Machine Opcode 0x90)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 assembly language, machine opcode `0x90` corresponds to which instruction?
๐Ÿ’ป assembly Snippet
nop ; Machine opcode 0x90 (No Operation / Do nothing)
  1. A.Do nothing (NOP)
  2. B.Add
  3. C.Subtract
  4. D.Multiplication
Q120
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (FLAGS Register Bit-Significant Structure)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 processor architecture, which register consists of individual bit positions where each single bit specifies a distinct status or control meaning?
  1. A.Accumulator Register
  2. B.Pointer Register
  3. C.Index register
  4. D.Flag register