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 121 โ€“ 130 of 183 Questions
Page 13 of 19
Q121
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Retrieving Stack Parameters via POPEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
To retrieve parameters passed on the stack inside a subroutine, what is the simplest initial method available to assembly programmers?
๐Ÿ’ป assembly Snippet
pop ax
  1. A.Pushing them onto the stack
  2. B.Popping them off the stack into working registers
  3. C.Adding offset values directly to SP
  4. D.Inserting them into the Code Segment
Q122
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Caller vs Callee Stack Cleanup ConventionsMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 assembly language calling conventions, parameter stack cleanup can be performed by:
๐Ÿ’ป assembly Snippet
call my_func
add sp, 4
  1. A.The caller only
  2. B.The callee only
  3. C.Either the caller or the callee
  4. D.Neither the caller nor the callee
Q123
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Primitive String Instructions Count in 8088Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many primitive block processing (string) instructions are provided in the 8088 microprocessor instruction set?
  1. A.6
  2. B.5
  3. C.4
  4. D.3
Q124
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ MUL Instruction Accumulator Implied OperandEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
The unsigned multiplication instruction 'MUL' performs a multiplication of the source operand and which implied destination register?
๐Ÿ’ป assembly Snippet
mul bl
  1. A.Accumulator (AL or AX)
  2. B.Carry Flag
  3. C.Word Segment
  4. D.Base Register
Q125
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Converting Numeric Digits to ASCII Codes (+0x30)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Any numeric digit value (0 through 9) can be converted into its corresponding ASCII character representation by adding which hexadecimal value?
๐Ÿ’ป assembly Snippet
add al, 0x30
  1. A.0x30
  2. B.0x20
  3. C.0x40
  4. D.0x10
Q126
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Direction Flag (DF) and String IterationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which flag in the FLAGS register controls the execution direction of string processing instructions, where clearing it moves from lower to higher memory addresses and setting it moves from higher to lower memory addresses?
๐Ÿ’ป assembly Snippet
cld
std
  1. A.Direction Flag (DF)
  2. B.Control Flag (CF)
  3. C.Carry Flag (CF)
  4. D.None of the above
Q127
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ PUSH Instruction OperationEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which x86 assembly instruction decrements SP (the stack pointer) by two and then transfers a word from the source operand to the top of stack now pointed to by SP?
๐Ÿ’ป assembly Snippet
push bx
  1. A.PUSH
  2. B.POP
  3. C.CALL
  4. D.None of the Above
Q128
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Stack Memory Architecture (Fixed Origin, Variable Size)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: A typical stack in x86 architecture is defined as an area of computer memory with a fixed origin (base address) and a variable size (top of stack moves dynamically).
  1. A.True
  2. B.False
Q129
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Stack Frame Local Variable Allocation and DeallocationMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: Local variables within a subroutine should be created on the stack when the subroutine is called and discarded immediately before returning.
๐Ÿ’ป assembly Snippet
sub sp, 4
add sp, 4
  1. A.True
  2. B.False
Q130
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 17๐Ÿท๏ธ Segment Register Conventions for Video RAM AccessEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: Both DS and ES segment registers can access Video Memory, but assembly programmers commonly preserve DS for data variables and load ES with the video segment address.
๐Ÿ’ป assembly Snippet
mov ax, 0xb800
mov es, ax
  1. A.True
  2. B.False