Ch 10: Hardware Interrupts and PIC 8259

189 Questions189 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 131 โ€“ 140 of 189 Questions
Page 14 of 19
Q131
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Stack Pointer (SP) Top-of-Stack TrackingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 8088 stack operations, the Stack Pointer (SP) register contains the 16-bit offset pointing directly to the:
  1. A.Top of the stack
  2. B.Bottom of the stack
  3. C.Middle of the stack
  4. D.Any random stack position
Q132
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Subroutines and Call/Return MechanicsEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which pair of instructions is used to perform subroutines (procedure calling and returning) in 8088 assembly language?
๐Ÿ’ป assembly Snippet
call my_subroutine
...
my_subroutine:
    ret
  1. A.PUSH and POP
  2. B.CALL and RET
  3. C.ADC and SBB
  4. D.MOV and CMP
Q133
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ CALL Instruction Execution and Register ModificationsEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The CALL instruction mechanism breaks the sequential thread of execution and branches to a subroutine without altering general-purpose registers, except modifying the:
๐Ÿ’ป assembly Snippet
call my_func
  1. A.SI (Source Index)
  2. B.IP (Instruction Pointer)
  3. C.DI (Destination Index)
  4. D.BP (Base Pointer)
Q134
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Stack Data Structure ConceptEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The stack is an essential CPU ________ that behaves in a Last-In, First-Out (LIFO) or First-In, Last-Out (FILO) manner.
  1. A.Program
  2. B.Data structure
  3. C.Heap
  4. D.None of the given
Q135
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Callee Stack Cleanup with RET nMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
If the ________ instruction form is not available, cleaning parameters off the stack by the callee subroutine becomes a complicated process.
๐Ÿ’ป assembly Snippet
ret 4
  1. A.CALL
  2. B.SBB
  3. C.RET n
  4. D.None of the given
Q136
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Stack Overflow and SP Memory WraparoundEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When pushing data onto a full stack, the Stack Pointer (SP) reaches 0 and wraps around to 0xFFFF, producing unexpected program behavior. This condition is called stack:
  1. A.Overflow
  2. B.Leakage
  3. C.Error
  4. D.Pointer
Q137
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ POP Instruction Destination OperandEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The POP operation retrieves a word from the top of the stack and copies it directly into its specified:
๐Ÿ’ป assembly Snippet
pop ax
  1. A.Register
  2. B.Operand
  3. C.RET n
  4. D.Pointer
Q138
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ PUSH Instruction MechanicsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which instruction decrements SP (the Stack Pointer) by two and then transfers a 16-bit word from the source operand to the top of the stack?
๐Ÿ’ป assembly Snippet
push ax
  1. A.PUSH
  2. B.POP
  3. C.CALL
  4. D.RET
Q139
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ Register Preservation using PUSH and POPEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
A common assembly technique uses ________ and ________ operations to preserve register values on the stack before subroutine execution and restore them upon return.
๐Ÿ’ป assembly Snippet
push ax
; subroutine body
pop ax
  1. A.POP, ADC
  2. B.CALL, RET
  3. C.CALL, RET n
  4. D.PUSH, POP
Q140
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 10๐Ÿท๏ธ POP Instruction Stack Pointer IncrementEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The POP instruction transfers the word at the current top of the stack (pointed to by SP) to the destination operand and then ________ SP by two to point to the new top of the stack.
๐Ÿ’ป assembly Snippet
pop bx
  1. A.Increments
  2. B.Decrements
  3. C.Multiplies
  4. D.Clears