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 181 โ€“ 190 of 261 Questions
Page 19 of 27
Q181
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Multi-Word Subtraction (SUB and SBB)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Similar to how multi-word addition with carry is performed using ADC, which assembly instruction performs multi-word subtraction with borrow?
๐Ÿ’ป assembly Snippet
sub ax, cx
sbb bx, dx
  1. A.SWB
  2. B.SBB
  3. C.SBC
  4. D.SBBC
Q182
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Unsigned Conditional Jumps (JA)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Is the statement true or false: 'The JA (Jump if Above) instruction CANNOT be taken after a CMP instruction if the unsigned destination operand is greater than the source operand'?
๐Ÿ’ป assembly Snippet
cmp ax, bx
ja dest_greater
  1. A.True
  2. B.False
Q183
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Conditional Jump Offset Range (Short Jumps)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 8088 real mode architecture, conditional jump instructions can only execute which type of jump?
๐Ÿ’ป assembly Snippet
jz short_label
  1. A.Far jump
  2. B.Short jump
  3. C.Near jump
  4. D.All of the given options
Q184
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Program Control Instructions (JMP and CALL)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Write down any two program control instructions used in 8088 assembly language and briefly state their purpose.
๐Ÿ’ป assembly Snippet
jmp target_label
call my_subroutine
Q185
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ LOOP Instruction and Busy-Wait Delay CyclesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the exact execution behavior of the assembly instruction sequence 'MOV CX, 0xFFFF' followed by 'LOOP $'?
๐Ÿ’ป assembly Snippet
mov cx, 0xffff
loop $
Q186
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Unsigned Division (DIV Instruction Mechanics)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When the divisor operand of a DIV instruction is 16 bits wide, where is the implied 32-bit dividend stored prior to division?
๐Ÿ’ป assembly Snippet
div bx
  1. A.AX register
  2. B.The concatenation of DX and AX (DX:AX)
  3. C.The concatenation of ES and AX (ES:AX)
  4. D.The concatenation of DS and BX (DS:BX)
Q187
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Unsigned Division (8-bit DIV Mechanics)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When a 16-bit dividend is divided by an 8-bit divisor using the DIV instruction, where must the 16-bit dividend be placed prior to execution?
๐Ÿ’ป assembly Snippet
mov ax, 100
mov bl, 5
div bl
  1. A.AX register
  2. B.BX register
  3. C.CX register
  4. D.DX register
Q188
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 16-Bit Division Operand Registers and Quotient Bit-WidthEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When a 32-bit dividend stored in register pair DX:AX is divided by a 16-bit divisor using the 'DIV' instruction, what is the bit-width of the resulting quotient stored in register AX?
๐Ÿ’ป assembly Snippet
div bx
  1. A.32 bits
  2. B.16 bits
  3. C.8 bits
  4. D.4 bits
Q189
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 8-Bit Division Register AssignmentEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When a 16-bit dividend in register AX is divided by an 8-bit divisor using the 'DIV' instruction, in which register is the quotient stored?
๐Ÿ’ป assembly Snippet
div bl
  1. A.AX
  2. B.AL
  3. C.AH
  4. D.DX
Q190
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ Unsigned Comparisons and JA Jump MechanicsHard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
If register AX contains decimal -2 (0xFFFE in 16-bit two's complement) and register BX contains decimal 2 (0x0002), what will happen upon executing 'CMP AX, BX' followed by 'JA label'?
๐Ÿ’ป assembly Snippet
mov ax, -2
mov bx, 2
cmp ax, bx
ja label
  1. A.Jump will be taken
  2. B.Zero flag will be set
  3. C.ZF will contain value -4
  4. D.Jump will not be taken