Ch 13: Multitasking & Cooperative Kernels

141 Questions141 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 101 โ€“ 110 of 141 Questions
Page 11 of 15
Q101
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ Stack Operations during CALL and RET InstructionsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How do the CALL and RET instructions interact with the hardware stack to manage subroutine calls and returns in 8088 assembly language?
๐Ÿ’ป assembly Snippet
call my_subroutine

my_subroutine:
    ; Subroutine body
    ret
Q102
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ Emulated Jumps vs Native Hardware CALL/RET MechanismHard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Can indirect jump instructions (such as 'JMP AX') theoretically be used to emulate subroutine calls? Explain why the hardware CALL/RET mechanism is preferred.
๐Ÿ’ป assembly Snippet
mov ax, return_here
jmp my_proc
return_here:
Q103
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ RET Instruction Mechanics and Stack-Based Return AddressingEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the operation of the RET (Return) instruction in 8088 assembly language. Why does RET require no explicit target address or operands?
๐Ÿ’ป assembly Snippet
ret
Q104
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ Parameter Passing Concepts and Register Parameter PassingMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What are parameters in assembly language subroutines, and why are they necessary when designing reusable procedures (e.g., sorting routines)? What is the most straightforward method for parameter passing?
๐Ÿ’ป assembly Snippet
mov bx, array_ptr
mov cx, array_size
call bubble_sort
Q105
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ Near vs Far CALL Stack MechanicsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Compare Near (Intra-Segment) Direct CALL and Far (Inter-Segment) Direct CALL in 8088 assembly language regarding saved context and stack pointer operations.
๐Ÿ’ป assembly Snippet
call near_proc
call far_proc
Q106
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ Near RET vs Far RETF Instructions and Parameter Cleanup (RET n)Medium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Compare Near RET (Intra-Segment Return) and Far RETF (Inter-Segment Return) instructions in 8088 assembly language, and explain the function of the optional immediate pop operand in instructions like 'RET n'.
๐Ÿ’ป assembly Snippet
ret 4
retf 4
Q107
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ BIOS INT 10h Video Service 0x0C (Write Pixel)Mediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When invoking BIOS INT 10h to write a graphics pixel on screen, what value must be loaded into register AH?
๐Ÿ’ป assembly Snippet
mov ah, 0x0c
mov al, 0x0f  ; White pixel
mov cx, 100   ; X coordinate
mov dx, 50    ; Y coordinate
int 0x10
  1. A.0Ch
  2. B.0Bh
  3. C.1Ch
  4. D.2Ch
Q108
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ VESA VBE 2.0 Graphics StandardEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
VESA VBE 2.0 (Video Electronics Standards Association Video BIOS Extension) is a standard for:
  1. A.High resolution Mode
  2. B.Low resolution Mode
  3. C.Medium resolution Mode
  4. D.Very High resolution Mode
Q109
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ VESA 16-Bit High Color RGB Layout (5:6:5)Easyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
VESA (Video Electronics Standards Association) organizes 16 bits per pixel in 16-bit High Color graphics mode using which bit layout format?
  1. A.5:5:5 format
  2. B.5:6:5 format
  3. C.6:5:6 format
  4. D.5:6:7 format
Q110
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 13๐Ÿท๏ธ VESA VBE 2.0 Graphics StandardEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
VESA VBE 2.0 (Video Electronics Standards Association) is a standard for:
  1. A.High Resolution Mode
  2. B.Low Resolution Mode
  3. C.Very High Resolution Mode
  4. D.Medium Resolution Mode