Ch 16: Interfacing Assembly with C/C++

69 Questions69 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 51 โ€“ 60 of 69 Questions
Page 6 of 7
Q51
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ Little-Endian Video RAM Byte PlacementEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Why does executing 'mov word [es:0], 0x0741' display the letter 'A' with light gray attribute 0x07 at the top-left corner of the screen?
๐Ÿ’ป assembly Snippet
mov word [es:0], 0x0741
  1. A.Because the 8088 is little-endian, storing the low byte 0x41 ('A') at offset 0 and the high byte 0x07 (attribute) at offset 1
  2. B.Because the 8088 is big-endian, storing 0x07 at offset 0 and 0x41 at offset 1
  3. C.Because the ES segment register automatically swaps ASCII and attribute bytes
  4. D.Because 0x0741 is an extended ASCII character code representing the letter 'A'
Q52
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ Segment Register Loading Constraints and Little-Endian Video RAM WritesMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Why is 'mov es, 0xB800' an illegal instruction in 8088 assembly language, and how does little-endian word storage affect writing 'mov word [es:0], 0x0741' to display character 'A' on screen?
๐Ÿ’ป assembly Snippet
mov ax, 0xb800
mov es, ax
mov word [es:0], 0x0741
Q53
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ IDTR Register and Protected Mode IDTMediumโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 protected mode architecture, the base physical address and size limit of the IDT (Interrupt Descriptor Table) are stored in which CPU register?
๐Ÿ’ป assembly Snippet
sidt [idt_ptr]
lidt [idt_ptr]
  1. A.GDTR
  2. B.IDTR
  3. C.IVT
  4. D.IDTT
Q54
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ Motorola 68K 32-Bit Register ArchitectureEasyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Motorola 68K family microprocessors feature general-purpose registers (D0โ€“D7, A0โ€“A7) that have a bit width of:
  1. A.4 bits
  2. B.8 bits
  3. C.16 bits
  4. D.32 bits
Q55
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 32-Bit Address Register Physical Memory Capacity (4 GB)Easyโญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 32-bit x86 architecture (such as the 80386), a 32-bit address register can directly access up to how much physical memory space?
  1. A.2 GB
  2. B.4 GB
  3. C.6 GB
  4. D.8 GB
Q56
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 32-Bit Address Space Capacity (4 GB)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
A 32-bit address register can generate unique physical memory addresses to directly access up to how much memory?
  1. A.2 GB
  2. B.4 GB
  3. C.6 GB
  4. D.8 GB
Q57
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ NASM EXTERN and GLOBAL DirectivesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In NASM assembly language, an imported external symbol is declared using the ________ directive, while an exported symbol is declared using the ________ directive.
๐Ÿ’ป assembly Snippet
extern my_ext_func
global my_export_func
  1. A.Global directive, External directive
  2. B.External directive, Global directive
  3. C.Home directive, Foreign directive
  4. D.Foreign directive, Home directive
Q58
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 32-Bit Address Register Physical Memory Capacity (4 GB)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
A 32-bit address register can generate unique addresses to directly access up to how much memory?
  1. A.2 GB
  2. B.4 GB
  3. C.6 GB
  4. D.8 GB
Q59
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 32-Bit Address Register Memory Capacity (4 GB)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
A 32-bit address register can generate unique physical memory addresses to directly access up to how much memory space?
  1. A.2 MB
  2. B.2 GB
  3. C.4 MB
  4. D.4 GB
Q60
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ IDTR Register and Protected Mode IDTMedium๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In x86 protected mode architecture, the physical base address and limit of the Interrupt Descriptor Table (IDT) are stored in which CPU register?
๐Ÿ’ป assembly Snippet
lidt [idt_ptr]
  1. A.GDTR
  2. B.IDTR
  3. C.IVT
  4. D.IDTT