Ch 06: Parameter Passing and Stack Frames

216 Questions216 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 91 โ€“ 100 of 216 Questions
Page 10 of 22
Q91
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Bit Manipulation (Bitwise NOT Logic Inversion)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: If we apply the bitwise `NOT` logical operation to a bit value of `1`, the result is also `1`.
๐Ÿ’ป assembly Snippet
mov al, 11111111b
not al ; Inverts all bits (1s become 0s, 0s become 1s)
  1. A.true
  2. B.false
Q92
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Bit Manipulation (SHL and SAL Left Shift Equivalency)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which type of shift operation is described by: 'A zero bit is inserted from the right, every bit moves one position to its left, and the most significant bit drops into the carry flag'?
๐Ÿ’ป assembly Snippet
shl ax, 1 ; Identical to sal ax, 1
sal ax, 1 ; Shifts left, fills LSB with 0, MSB enters CF
  1. A.shl
  2. B.sal
  3. C.sar
  4. D.both shl and sal
Q93
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Bit Manipulation (XOR Truth Table and Logic)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a bitwise `XOR` (Exclusive OR) logical operation, the output bit is `1` if and only if:
๐Ÿ’ป assembly Snippet
xor al, bl ; Truth table: 0^1=1, 1^0=1, 0^0=0, 1^1=0
  1. A.both inputs are same
  2. B.both inputs are different
  3. C.I and II
  4. D.none of the above
Q94
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Control Flow Instructions (Far Jump Absolute Addressing)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: A Far Jump instruction (`JMP far`) is position-relative.
๐Ÿ’ป assembly Snippet
jmp 0x1000:0x0200 ; Far jump explicitly sets CS = 0x1000 and IP = 0x0200
  1. A.true
  2. B.false
Q95
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Bit Manipulation (Bitwise AND Truth Table)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In a bitwise `AND` logical operation, the output bit is `1` if and only if:
๐Ÿ’ป assembly Snippet
and al, bl ; Truth table: 1 AND 1 = 1, all other cases = 0
  1. A.Both inputs are 0
  2. B.One is 0 and other is 1
  3. C.Both are 1
  4. D.None of the given
Q96
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Control Flow Instructions (Near Jump Intra-Segment Scope)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: In 8088 assembly language, a Near Jump allows transferring program execution to any offset address within the current 64 KB code segment.
๐Ÿ’ป assembly Snippet
jmp near target ; Near jump within current 64KB segment
  1. A.true
  2. B.false
Q97
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Control Flow Instructions (Unconditional JMP Instruction Logic)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
An unconditional jump instruction (`JMP`) executes under which of the following conditions?
๐Ÿ’ป assembly Snippet
jmp target_label ; Unconditionally branches to target_label
  1. A.Execute in every condition whether true or false
  2. B.If the condition is true
  3. C.If the condition is false
  4. D.None of the given
Q98
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Bit Manipulation (ROR Rotate Right Mechanics)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which type of rotation operation is described by: 'Every bit moves one position to the right, the bit dropped from the right is inserted at the left MSB, and this bit is also copied into the Carry Flag'?
๐Ÿ’ป assembly Snippet
ror ax, 1 ; Rotates bits right: LSB moves to MSB and is copied to CF
  1. A.ROL
  2. B.RCR
  3. C.RCL
  4. D.None of the given
Q99
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Control Flow Instructions (JA Unsigned Jump Condition)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: In a `JA` (Jump if Above) instruction following a `CMP`, a jump is NOT taken if the unsigned destination operand is larger than the unsigned source operand.
๐Ÿ’ป assembly Snippet
cmp ax, bx
ja label ; Jumps if AX > BX (unsigned)
  1. A.True
  2. B.False
Q100
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 6๐Ÿท๏ธ 6.1. Bit Manipulation (SHL and SAL Instruction Equivalency)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: In x86 assembly language, the shift instructions `SHL` (Shift Logical Left) and `SAL` (Shift Arithmetic Left) perform the exact same operation and assemble to identical opcodes.
๐Ÿ’ป assembly Snippet
shl ax, 1 ; Identical to sal ax, 1
sal ax, 1 ; Identical opcode and behavior
  1. A.True
  2. B.False