Ch 17: Secondary Storage and Device Drivers

183 Questions183 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 181 โ€“ 183 of 183 Questions
Page 19 of 19
Q181
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ PUSH Instruction MechanicsEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 assembly instruction decrements SP (the stack pointer) by two bytes and then transfers a word from the source operand to the top of stack now pointed to by SP?
๐Ÿ’ป assembly Snippet
push ax
  1. A.PUSH
  2. B.POP
  3. C.CALL
  4. D.None of the Above
Q182
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ LODS Instruction Usage Restrictions with REP PrefixMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: The LODS (Load String) instruction is generally not used with the hardware REP prefix because repeating the instruction continuously overwrites the accumulator (AL or AX), leaving only the final element of the block in the register.
๐Ÿ’ป assembly Snippet
lodsb
  1. A.True
  2. B.False
Q183
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Stack Frame Local Variable Allocation and DeallocationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: Local variables within a subroutine should be allocated on the stack when the subroutine is called and discarded immediately prior to execution return.
๐Ÿ’ป assembly Snippet
sub sp, 4
add sp, 4
  1. A.True
  2. B.False