Ch 03: Branching, Loops and Program Flow

261 Questions261 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 261 Questions
Page 11 of 27
Q101
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (ADC Explicit Operand Count)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many explicit operands does the Add with Carry (`ADC`) instruction take in x86 assembly language syntax?
๐Ÿ’ป assembly Snippet
adc ax, bx ; 2 explicit operands (AX and BX)
  1. A.two
  2. B.three
  3. C.Five
  4. D.Zero
Q102
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (Carry Flag Function in Addition)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When two 16-bit numbers are added, the sum can be up to 17 bits long. This extra 17th bit that cannot fit in the target register is placed in the __________ where it can be used and tested.
๐Ÿ’ป assembly Snippet
mov ax, 0xFFFF
add ax, 1 ; AX = 0x0000, Carry Flag (CF) = 1
  1. A.carry flag
  2. B.Parity Flag
  3. C.Auxiliary Carry
  4. D.Zero Flag
Q103
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (AX Byte Registers AH and AL)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 8088 assembly language, the designation AX refers to the 16-bit Accumulator register. How are its individual upper and lower 8-bit bytes accessed?
๐Ÿ’ป assembly Snippet
mov ah, 0x12 ; Accesses upper byte of AX
mov al, 0x34 ; Accesses lower byte of AX
Q104
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Intel Syntax Destination Source Order)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: In Intel x86 assembly language syntax, instructions are written in the order `operation destination, source`.
๐Ÿ’ป assembly Snippet
mov ax, bx ; Destination = AX, Source = BX
  1. A.TRUE
  2. B.FALSE
Q105
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (ADD Instruction Execution)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What exact operation is performed when the assembly instruction `add ax, bx` is executed?
๐Ÿ’ป assembly Snippet
add ax, bx ; AX = AX + BX (AX updated, BX unchanged)
  1. A.Add the bx to ax and change the bx
  2. B.Add the ax to bx and change the ax
  3. C.Add the bx to ax and change the ax
  4. D.Add the bx to ax and change nothing
Q106
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Data Definition Directive DB)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the assembly data definition statement `num1: db 5`, what size of memory is allocated for `num1`?
๐Ÿ’ป assembly Snippet
num1: db 5 ; Allocates 1 byte of memory initialized to 5
  1. A.1byte
  2. B.4bit
  3. C.16bit
  4. D.2byte
Q107
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (MOV Flag Modification Rules)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: Executing `mov ax, 0` will set the Zero Flag (`ZF = 1`).
๐Ÿ’ป assembly Snippet
mov ax, 0 ; Does NOT modify flags (ZF remains unchanged)
xor ax, ax ; Modifies flags (sets ZF = 1)
  1. A.True
  2. B.False
Q108
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (Non-Mathematical Control Flags IF DF TF)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
List the names of three x86 status or control flags in the FLAGS register that are NOT used for arithmetic/mathematical operations.
๐Ÿ’ป assembly Snippet
cli ; Clears Interrupt Flag (IF)
cld ; Clears Direction Flag (DF)
Q109
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (Index Registers SI and DI for Memory Addressing)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 assembly language architecture, the Index Registers (`SI` and `DI`) are primarily used to store __________.
๐Ÿ’ป assembly Snippet
mov si, string_offset ; Stores memory address offset in SI
  1. A.Address
  2. B.Data
  3. C.Intermediate result
  4. D.Both data and addresses
Q110
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (Bit-Significant FLAGS Register)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 CPU architecture, the individual bits of which register work independently and individually to represent processor state and control conditions?
  1. A.Flags Register
  2. B.AX Register
  3. C.CS Register
  4. D.IP Register