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 121 โ€“ 130 of 261 Questions
Page 13 of 27
Q121
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Carry / Borrow Flag Status in Subtraction)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When an unsigned subtraction operation requires a borrow (i.e. subtracting a larger unsigned number from a smaller number), which status flag in the FLAGS register is set (`1`)?
๐Ÿ’ป assembly Snippet
mov ax, 5
sub ax, 10 ; 5 - 10 requires a borrow -> sets CF = 1
  1. A.ZF
  2. B.CF
  3. C.SF
  4. D.OF
Q122
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Register-to-Register Operations)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: Register-to-register operations (such as `mov ax, bx` or `add cx, dx`) are NOT allowed in x86 assembly language.
๐Ÿ’ป assembly Snippet
mov ax, bx ; Legal register-to-register transfer
add cx, dx ; Legal register-to-register addition
  1. A.True
  2. B.False
Q123
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Carry / Borrow Flag Status)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When a larger unsigned number is subtracted from a smaller number, a borrow is required. Which processor status flag is set in this case?
๐Ÿ’ป assembly Snippet
mov ax, 5
sub ax, 10 ; 5 - 10 requires borrow -> sets CF = 1
  1. A.ZF
  2. B.CF
  3. C.SF
  4. D.OF
Q124
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Labels and Data Directives)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In the assembly code statement `total: dw 0`, what is the syntactic role of `total`?
๐Ÿ’ป assembly Snippet
total: dw 0 ; Label 'total' marks the memory location of this word variable
  1. A.Literal
  2. B.Variable
  3. C.Label
  4. D.Starting point
Q125
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Four Primary Instruction Groups)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In standard assembly language curriculum (CS401), into how many main categories/groups are instructions classified?
  1. A.4
  2. B.5
  3. C.3
  4. D.2
Q126
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Data Movement Group Purpose)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: Data movement instructions are specifically used to transfer data from one place to another (such as register-to-register, or register-to-memory).
๐Ÿ’ป assembly Snippet
mov ax, bx ; Copies data from BX to AX
  1. A.TRUE
  2. B.FALSE
Q127
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Special Instructions Group Purpose)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which group of instructions allows changing specific processor behaviors and controlling hardware operation modes?
๐Ÿ’ป assembly Snippet
cli ; Special instruction to clear interrupt flag
cld ; Special instruction to clear direction flag
  1. A.Special Instructions
  2. B.Data Movement Instructions
  3. C.Program Control Instructions
  4. D.Arithmetic and Logic Instructions
Q128
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Register Architecture (Bit-Significant FLAGS Register)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Which register in x86 architecture is bit-significant, with each individual bit named and assigned a distinct status or control meaning?
  1. A.AX
  2. B.FS
  3. C.IP
  4. D.Flags Register
Q129
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Intel Destination-Source Operand Order)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
True or False: Intel x86 assembly language instruction syntax strictly follows the 'operation destination, source' convention.
๐Ÿ’ป assembly Snippet
mov ax, bx ; Operation: MOV, Destination: AX, Source: BX
  1. A.TRUE
  2. B.FALSE
Q130
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 3๐Ÿท๏ธ 3.1. Basic Assembly Instructions (Carry Flag Purpose in Addition)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
When two 16-bit numbers are added, the sum can be up to 17 bits long. In which register bit is this extra 17th bit (carry) placed so it can be tested and used in multi-word addition?
๐Ÿ’ป assembly Snippet
mov ax, 0xFFFF
add ax, 0x0001 ; Sum = 0x10000 -> AX = 0x0000, CF = 1
  1. A.carry flag
  2. B.Parity Flag
  3. C.Auxiliary Carry
  4. D.Zero Flag