Serial port programming

Lecture 38: Serial port programming

90 Questions65 MCQs22 Short Questions3 Long Questions
Showing 6170 of 90 Questions
Page 7 of 9
Q61📝 Short Q📑 Lec 14Easy🔁RepeatedHigh-Yield💡Conceptual
Explain how the CALL and RET instructions interact with the Instruction Pointer (IP) and the system stack to control program execution flow.
💻 assembly Snippet
call my_subroutine
; Next instruction executed after RET
Q62📝 Short Q📑 Lec 14Easy🔁RepeatedHigh-Yield💡Conceptual
Describe the precise step-by-step register and memory operations executed by 'PUSH AX' and 'POP AX' in 8088 assembly language.
💻 assembly Snippet
push ax
pop ax
Q63📝 Short Q📑 Lec 14Medium🔁RepeatedHigh-Yield💡Conceptual
Why is saving and restoring general-purpose registers using PUSH and POP inside subroutines considered a critical programming standard for context preservation?
💻 assembly Snippet
push ax
push bx
; body
pop bx
pop ax
ret
Q64📝 Short Q📑 Lec 14Easy🔁RepeatedHigh-Yield💡Conceptual
Explain the mechanics of the PUSH and POP instructions in 8088 assembly language, specifying Stack Pointer (SP) modifications and operand roles.
💻 assembly Snippet
push ax
pop bx
Q65📝 Short Q📑 Lec 14Easy🔁RepeatedHigh-Yield💡Conceptual
Why is saving and restoring modified registers using PUSH and POP inside subroutines (like Swap or Bubble Sort) critical for modular programming?
💻 assembly Snippet
bubble_sort:
  push ax
  push cx
  push si
  ; sorting logic
  pop si
  pop cx
  pop ax
  ret
Q66📝 Short Q📑 Lec 14Easy🔁RepeatedHigh-Yield💡Conceptual
What happens if parameters pushed onto a decrementing stack are repeatedly left uncleared across subroutine calls, and what term describes this memory corruption failure?
Q67❓ MCQ📑 Lec 14EasyHigh-Yield💡Conceptual
In concurrent thread execution, each individual thread maintains its own call stack containing private function calls, parameters, and ________ variables.
  1. A.Global
  2. B.Local
  3. C.Legal
  4. D.Illegal
Q68❓ MCQ📑 Lec 14EasyHigh-Yield💡Conceptual
In multi-threaded software architectures and operating systems, thread allocation and creation can be either static or:
  1. A.Static
  2. B.Dynamic
  3. C.Easy
  4. D.Difficult
Q69❓ MCQ📑 Lec 14Easy🔁RepeatedHigh-Yield💡Conceptual
During concurrent multi-threading, each individual thread maintains a dedicated execution stack containing function calls, parameters, and ________ variables.
  1. A.Global
  2. B.Local
  3. C.Legal
  4. D.Illegal
Q70❓ MCQ📑 Lec 14Easy🔁RepeatedHigh-Yield💡Conceptual
During concurrent thread execution, threads maintain private call stacks containing function calls, parameters, and ________ variables.
  1. A.Global
  2. B.Local
  3. C.Legal
  4. D.Illegal