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 161 โ€“ 170 of 261 Questions
Page 17 of 27
Q161
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Types of Jumps: Short, Near, and FarMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Compare Near Jump, Short Jump, and Far Jump in 8088 assembly language in terms of instruction size, displacement range, and segment execution.
๐Ÿ’ป assembly Snippet
jmp short label1
jmp near label2
jmp far 0x1000:0x0020
Q162
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Conditional Jumps and Signed Byte Displacement LimitsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Why are conditional jumps in 8088 assembly restricted to Short Jumps, and what is the maximum byte range they can navigate forward and backward?
๐Ÿ’ป assembly Snippet
jz target_label
Q163
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Far Jumps and Inter-Segment Control TransferMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the mechanism of a Far Jump instruction, detailing how it alters processor registers to achieve inter-segment program control.
๐Ÿ’ป assembly Snippet
jmp far 0x2000:0x0100
Q164
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Jump Instruction Types: Short, Near, and FarEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What are the three fundamental types of JUMP instructions supported in 8088 assembly language?
๐Ÿ’ป assembly Snippet
jmp short label1
jmp near label2
jmp far 0x1000:0x0020
  1. A.Short, Near
  2. B.Short, Near, Far
  3. C.Near, Far
  4. D.Short, Far
Q165
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Far Jump Mechanics and Absolute AddressingMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Unlike Short and Near jumps which use displacement offsets relative to the Instruction Pointer, a Far Jump (JMP FAR) is __________.
๐Ÿ’ป assembly Snippet
jmp 0x2000:0x0050
  1. A.Memory dependent
  2. B.Absolute
  3. C.Temporary
  4. D.Indirect
Q166
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Add with Carry (ADC) Instruction OperandsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many explicit operands does the Add with Carry (ADC) instruction require in x86 assembly language?
๐Ÿ’ป assembly Snippet
adc ax, bx
  1. A.1 operand
  2. B.2 operands
  3. C.3 operands
  4. D.4 operands
Q167
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Multi-Word Addition and ADC InstructionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many explicit operands does the Add with Carry (ADC) instruction accept in x86 assembly language?
๐Ÿ’ป assembly Snippet
adc ax, bx
  1. A.One operand
  2. B.Two operands
  3. C.Three operands
  4. D.Four operands
Q168
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Carry Flag (CF) and Multi-Word AdditionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When two 16-bit numbers are added, the answer can be 17 bits long. Where is this extra 17th bit stored?
๐Ÿ’ป assembly Snippet
mov ax, 0xFFFF
add ax, 0x0001
  1. A.Carry Flag (CF)
  2. B.Parity Flag (PF)
  3. C.Auxiliary Carry Flag (AF)
  4. D.Zero Flag (ZF)
Q169
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ ADD Instruction Execution MechanicsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the exact execution result of the assembly instruction 'ADD AX, BX'?
๐Ÿ’ป assembly Snippet
add ax, bx
  1. A.Add the value of BX to AX and store the result in BX
  2. B.Add the value of AX to BX and store the result in AX
  3. C.Add the value of BX to AX and store the result in AX
  4. D.Add the value of BX to AX and change nothing
Q170
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ ADD Instruction Execution and Destination AccumulatorEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Consider the following assembly code sequence: 1: [org 0x0100] 2: mov ax, [num1] 3: mov bx, [num2] 4: add ax, bx 5: int 0x21 What is the most appropriate comment for line 4 ('add ax, bx')?
๐Ÿ’ป assembly Snippet
add ax, bx
  1. A.No comments required
  2. B.; accumulate sum in add
  3. C.; accumulate sum in ax
  4. D.; accumulate sum in bx