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 31 โ€“ 40 of 261 Questions
Page 4 of 27
Q31
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.2. Subroutines and Inter-segment Returns (RETF)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The RETF (Return Far) instruction pops the saved far return segment address into which segment register?
๐Ÿ’ป assembly Snippet
RETF
  1. A.CS
  2. B.DS
  3. C.SS
  4. D.ES
Q32
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.2. Stack Structure and Operations (PUSH and POP)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The Intel 8088 CPU stack operates natively on data elements of what size during PUSH and POP execution?
๐Ÿ’ป assembly Snippet
PUSH AX
POP BX
  1. A.Word sized elements
  2. B.Byte sized elements
  3. C.Double sized element
  4. D.Nibble sized element
Q33
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (CX Count Register Function)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 assembly language architecture, what is the primary standard role of the general-purpose register `CX`?
  1. A.source
  2. B.counter
  3. C.index
  4. D.pointer
Q34
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (MUL Byte vs Word Operation)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the mechanics and destination operand registers for the `MUL` (Unsigned Multiply) instruction for both byte and word source operands.
๐Ÿ’ป assembly Snippet
mul bl ; Byte: AX = AL * BL
mul bx ; Word: DX:AX = AX * BX
Q35
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (FLAGS Register Bit Layout)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which processor register is bit-wise significant, meaning each individual bit position specifies a distinct status or control indicator?
  1. A.Accumulator Register
  2. B.Pointer Register
  3. C.Index register
  4. D.Flag register
Q36
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (NOP Instruction Opcode 0x90)Easyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 assembly language machine code, `0x90` is the opcode for which instruction?
๐Ÿ’ป assembly Snippet
nop ; Machine opcode: 0x90 (No Operation)
  1. A.Do nothing (NOP)
  2. B.Add
  3. C.Subtract
  4. D.Multiplication
Q37
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Assembly Source File Extensions)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the standard file extension for assembly language source code files?
  1. A..doc
  2. B..com
  3. C..lst
  4. D..asm
Q38
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Register-to-Register Operations)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: In x86 assembly language, Register-to-Register operations (e.g., `mov ax, bx` or `add ax, bx`) are not allowed.
๐Ÿ’ป assembly Snippet
mov ax, bx ; Fast register-to-register data transfer
  1. A.True
  2. B.False
Q39
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (CX Counter Register Function)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 assembly language architecture, the general-purpose register `CX` is primarily used as a __________.
๐Ÿ’ป assembly Snippet
mov cx, 10
loop_start:
    ; loop body
    loop loop_start ; Decrements CX and jumps if CX != 0
  1. A.Counter register
  2. B.Flag register
  3. C.Base register
  4. D.Destination register
Q40
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (MOV Flag Effects)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: Executing the data movement instruction `mov ax, 0` will set the Zero Flag (`ZF = 1`).
๐Ÿ’ป assembly Snippet
mov ax, 0 ; AX becomes 0, but FLAGS register is unchanged
  1. A.True
  2. B.False