Ch 01: Introduction to Assembly Language

387 Questions387 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 351 โ€“ 360 of 387 Questions
Page 36 of 39
Q351
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 1๐Ÿท๏ธ 1.2. Internal RegistersMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain how a 16-bit general-purpose register (e.g., AX) is subdivided into 8-bit registers, and describe the significance of the Accumulator in defining CPU word size.
๐Ÿ’ป assembly Snippet
; Sub-register access example in 16-bit assembly
mov ah, 0x12    ; Set high byte
mov al, 0x34    ; Set low byte
; AX now contains 0x1234
Q352
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 1๐Ÿท๏ธ 1.2. Internal RegistersMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the Accumulator register, how does its bit width define a processor's word size, and how has its role evolved from early computers to modern microprocessors?
๐Ÿ’ป assembly Snippet
; Accumulator usage in 16-bit assembly
mov ax, 0x1234  ; Load value into AX (Accumulator)
add ax, 0x0005  ; Perform addition directly on accumulator
Q353
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 1๐Ÿท๏ธ 1.2. Internal RegistersMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Compare the accumulator register across the Intel 8086/80286, Intel 80386, and Donald Knuth's MIX architecture in terms of size and sub-register access.
๐Ÿ’ป assembly Snippet
; Accumulator variations in x86
mov ax, 0x1234       ; 16-bit AX (8086)
mov eax, 0x12345678  ; 32-bit EAX (80386)
Q354
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 1๐Ÿท๏ธ 1.2. Internal RegistersEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the Count Register (CX/ECX) in x86 architecture, how does it control loop iterations, and how does a dedicated counter register differ from a general-purpose data register?
๐Ÿ’ป assembly Snippet
; Loop example using CX register
mov cx, 10      ; Execute loop 10 times
next_iteration:
; ... body of loop ...
loop next_iteration ; Decrements CX and jumps if CX != 0
Q355
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 1๐Ÿท๏ธ 1.2. Internal RegistersMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the Data/Destination Register (DX/EDX) in x86 architecture, and how is it used alongside the Accumulator (AX/EAX) to handle high-precision arithmetic results?
๐Ÿ’ป assembly Snippet
; Multiplication producing a 32-bit result across DX:AX
mov ax, 0x1000  ; 16-bit operand
mov bx, 0x0100  ; 16-bit operand
mul bx          ; Result: DX contains high 16 bits, AX contains low 16 bits
Q356
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 1๐Ÿท๏ธ 1.2. Internal RegistersEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What are CPU registers in assembly language programming, and how are they categorized based on their functions?
Q357
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 1๐Ÿท๏ธ 1.2. Internal RegistersEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the AX register in 8086 assembly language, and what special role does it play in arithmetic and I/O operations?
๐Ÿ’ป assembly Snippet
; Multiplication using Accumulator AX
mov ax, 15   ; Load first operand into AX
mov bx, 3    ; Load second operand into BX
mul bx       ; Multiply AX * BX; 32-bit product stored in DX:AX
Q358
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 1๐Ÿท๏ธ 1.2. Internal RegistersMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the Flag Register (Program Status Word) in 8086 architecture, how many active flag bits does it contain, and what is the function of the Carry Flag (CF)?
๐Ÿ’ป assembly Snippet
; Demonstrating Carry Flag (CF) activation
mov al, 0xFF  ; Load maximum 8-bit value (255)
add al, 1     ; AL wraps to 0x00; Carry Flag (CF) is set to 1
Q359
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 1๐Ÿท๏ธ 1.2. Internal RegistersMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the Parity Flag (PF) in 8086 assembly language, how is it set or cleared by the CPU, and how is it utilized for data error detection?
๐Ÿ’ป assembly Snippet
; Parity Flag Example
mov al, 00000011b  ; Two 1s (Even parity -> PF = 1)
add al, 0          ; Flags updated, PF set to 1
Q360
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 1๐Ÿท๏ธ 1.2. Internal RegistersMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
What is the Auxiliary Carry Flag (AF) in 8086 CPU architecture, and how does it function during nibble-level calculations?
๐Ÿ’ป assembly Snippet
; Auxiliary Flag Example
mov al, 0x0F  ; Low nibble is 1111b
add al, 0x01  ; Result 0x10; Carry from bit 3 to bit 4 sets AF = 1