Ch 05: Subroutines and Stack Architecture

222 Questions222 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 151 โ€“ 160 of 222 Questions
Page 16 of 23
Q151
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 5๐Ÿท๏ธ Stack Pointer (SP) and Stack OperationsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The Stack Pointer (SP) is a memory pointer register that is used indirectly by a set of stack __________.
๐Ÿ’ป assembly Snippet
push ax
pop bx
  1. A.instructions
  2. B.pointers
  3. C.indexes
  4. D.variables
Q152
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 5๐Ÿท๏ธ RET Instruction Arguments and Stack CleanupMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many optional arguments does the RET (Return) instruction accept, and what is the function of supplying an argument?
๐Ÿ’ป assembly Snippet
ret 4
Q153
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 5๐Ÿท๏ธ PUSH Instruction Stack MechanicsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Describe the operational function and stack pointer updates that occur when executing a PUSH instruction.
๐Ÿ’ป assembly Snippet
push ax
Q154
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 5๐Ÿท๏ธ Stack Memory Mechanics and PUSH InstructionEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which assembly instruction decrements the Stack Pointer (SP) by 2 and then transfers a 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.MOV
Q155
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 5๐Ÿท๏ธ Subroutine Parameter Passing via RegistersMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 8088 assembly language subroutine programming, what is the maximum number of word parameters a subroutine can receive via registers when all general-purpose registers (AX, BX, CX, DX, SI, DI) are utilized?
  1. A.6 parameters
  2. B.7 parameters
  3. C.5 parameters
  4. D.4 parameters
Q156
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 5๐Ÿท๏ธ Stack Pointer Mechanics and PUSH OperationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Is the following statement true or false: 'The PUSH instruction increments SP (the Stack Pointer) by two and then transfers a word from the source operand to the top of the stack pointed to by SP'?
๐Ÿ’ป assembly Snippet
push ax
  1. A.True
  2. B.False
Q157
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 5๐Ÿท๏ธ RET Instruction and Subroutine MechanicsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
By default, how many mandatory operands does the RET (Return) instruction require to transfer execution control back from a subroutine to the caller?
๐Ÿ’ป assembly Snippet
ret
  1. A.No arguments (0 mandatory arguments)
  2. B.1 mandatory argument
  3. C.2 mandatory arguments
  4. D.3 mandatory arguments
Q158
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 5๐Ÿท๏ธ Subroutine Parameter Passing via General Purpose RegistersMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 8088 assembly language, what is the maximum number of word parameters a subroutine can receive directly through general-purpose CPU registers?
  1. A.6 parameters
  2. B.7 parameters
  3. C.8 parameters
  4. D.9 parameters
Q159
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 5๐Ÿท๏ธ Stack Segment and Stack Pointer Addressing (SS:SP)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How is the physical memory address of the system stack constructed in 8088 segmented architecture?
๐Ÿ’ป assembly Snippet
mov ax, [ss:sp]
  1. A.SS:SI combination
  2. B.SS:SP combination
  3. C.ES:BP combination
  4. D.ES:SP combination
Q160
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 5๐Ÿท๏ธ RET Instruction and Stack Pointer ModificationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
After the execution of a standard near 'RET' (Return) instruction, how is the Stack Pointer (SP) register modified?
๐Ÿ’ป assembly Snippet
ret
  1. A.SP is incremented by 2
  2. B.SP is decremented by 2
  3. C.SP is incremented by 1
  4. D.SP is decremented by 1