Ch 09: Software Interrupts and DOS/BIOS Services

174 Questions174 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 121 โ€“ 130 of 174 Questions
Page 13 of 18
Q121
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ JCXZ Flag Non-Effect MechanicsMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
After the execution of the JCXZ (Jump if CX is Zero) instruction, how is register CX or the FLAGS register modified?
๐Ÿ’ป assembly Snippet
jcxz target_label
  1. A.CF is modified
  2. B.OF is modified
  3. C.DF is modified
  4. D.None (No flags or CX value are changed)
Q122
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Far Jump Absolute Addressing CharacteristicsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
A Far jump instruction in 8088 assembly language is not position-relative but is:
๐Ÿ’ป assembly Snippet
jmp far ptr target_label
  1. A.Memory dependent
  2. B.Absolute
  3. C.Temporary
  4. D.Indirect
Q123
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ JC and JNC Conditional Jump Flags TestingEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The conditional jump instructions JC (Jump if Carry) and JNC (Jump if No Carry) test the state of which CPU status flag?
๐Ÿ’ป assembly Snippet
jc carry_set
jnc carry_clear
  1. A.Carry Flag (CF)
  2. B.Parity Flag (PF)
  3. C.Zero Flag (ZF)
  4. D.Sign Flag (SF)
Q124
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Jump Instruction Classifications (Short, Near, Far)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What are the three fundamental classifications of jump instructions supported in 8088 assembly language?
๐Ÿ’ป assembly Snippet
jmp short target1
jmp near ptr target2
jmp far ptr target3
  1. A.Short and Near jumps only
  2. B.Short, Near, and Far jumps
  3. C.Near and Far jumps only
  4. D.Short and Far jumps only
Q125
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Unsigned Conditional Jump (JA) EvaluationMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
If register AX contains decimal -2 (0xFFFE) and register BX contains decimal 2 (0x0002), what happens after 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 set
  3. C.ZF will contain value 4
  4. D.Jump will not be taken
Q126
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ JNZ Conditional Jump Flag ConditionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 assembly language, the conditional jump instruction JNZ (Jump if Not Zero) causes execution to branch when:
๐Ÿ’ป assembly Snippet
cmp ax, bx
jnz not_equal
  1. A.Zero Flag is not set (ZF = 0)
  2. B.Zero Flag is set (ZF = 1)
  3. C.Sign Flag is set (SF = 1)
  4. D.Sign Flag is not set (SF = 0)
Q127
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Near Jump 16-Bit Relative OffsetEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When a relative branch offset address is encoded as a 16-bit word within the current code segment, the branch instruction is known as a:
๐Ÿ’ป assembly Snippet
jmp near ptr label
  1. A.Near jump
  2. B.Short jump
  3. C.Far jump
  4. D.Close jump
Q128
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ JMP Instruction for IP Register ModificationEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 assembly language, the Instruction Pointer (IP) cannot be modified directly using 'MOV IP, label'. Which single valid instruction replaces this illegal assignment to transfer execution control to a label?
๐Ÿ’ป assembly Snippet
; Illegal: mov ip, target_label
; Valid equivalent:
jmp target_label
  1. A.JMP label
  2. B.CALL label
  3. C.PUSH label
  4. D.LEA IP, label
Q129
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ Unsigned Jump (JA) after CMP with Negative ValueMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
If AX contains decimal -2 (0xFFFE in 16-bit hex) and BX contains decimal 2 (0x0002 in hex), what will happen after executing 'CMP AX, BX' followed by 'JA label'?
๐Ÿ’ป assembly Snippet
mov ax, -2    ; AX = 0xFFFE
mov bx, 2     ; BX = 0x0002
cmp ax, bx    ; Unsigned comparison: 65534 > 2
ja target_label ; Jump is taken
  1. A.Jump will be taken
  2. B.Zero flag will set
  3. C.ZF will contain value -4
  4. D.Jump will not be taken
Q130
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 9๐Ÿท๏ธ JA (Jump if Above) Unsigned Branch ConditionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: The JA (Jump if Above) instruction will NOT execute a jump after a CMP instruction if the unsigned destination operand is greater than the source operand.
๐Ÿ’ป assembly Snippet
cmp ax, bx
ja label  ; Jumps if AX > BX (unsigned)
  1. A.True
  2. B.False