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 1 โ€“ 10 of 69 Questions
Page 1 of 7
Q1
๐Ÿ“ Short Q๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 16.1. Comparative StudyMediumโญ๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Provide two examples of data movement instructions used in the Sun SPARC processor architecture.
๐Ÿ’ป assembly Snippet
ld [%g1], %l0
st %l0, [%g2]
Q2
๐Ÿง  Long Problem๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 16.1. Comparison of 8088 and 68000Hard๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Explain the key Data Movement and Arithmetic Instructions of the Motorola 68000 (68k) processor family, contrasting their register architecture and operand syntax with the Intel x86 processor family.
๐Ÿ’ป assembly Snippet
MOVE.L #$12345678, D0
ADD.L D0, D1
MOVE.L D1, (A0)
Q3
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 16.1. Comparison of 16-bit, 32-bit, and 64-bit ArchitecturesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In Motorola 68K processors, there is a ________ Program Counter (PC) that holds the address of the currently executing instruction.
  1. A.32bit
  2. B.8bit
  3. C.16bit
  4. D.64bit
Q4
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 16.1. Comparison of 16-bit, 32-bit, and 64-bit ArchitecturesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
How many 32-bit general-purpose registers are present in Motorola 68K processors?
  1. A.16
  2. B.4
  3. C.8
  4. D.32
Q5
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 16.1. Comparison of 16-bit, 32-bit, and 64-bit ArchitecturesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
A 32-bit address register can directly address up to how much physical or linear memory (2^32 bytes)?
  1. A.4GB
  2. B.2GB
  3. C.6GB
  4. D.8GB
Q6
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 16.1. Comparison of x86 and Motorola 68K ArchitecturesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In Motorola 68K processor architecture, which 32-bit register holds the address of the currently executing instruction?
  1. A.Program counter
  2. B.Stack pointer
  3. C.Register
  4. D.Stack
Q7
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 16.1. Comparison of x86 and Motorola 68K ArchitecturesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In Motorola 68K processors, what is the bit width of the Program Counter (PC) that holds the address of the currently executing instruction?
  1. A.32bit
  2. B.16bit
  3. C.64bit
Q8
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 16.1. Comparison of x86 and Motorola 68K Register ArchitecturesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Motorola 68K processors feature how many 32-bit general-purpose registers (divided into data registers D0โ€“D7 and address registers A0โ€“A7)?
  1. A.16
  2. B.4
  3. C.8
  4. D.32
Q9
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 16.1. Comparison of x86 and Motorola 68K Register ArchitecturesEasy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
Motorola 68K processors feature how many 32-bit general-purpose registers (data registers D0โ€“D7 and address registers A0โ€“A7)?
  1. A.16
  2. B.4
  3. C.8
  4. D.32
Q10
โ“ MCQ๐Ÿ“˜ CS401๐Ÿ“‘ Lec 16๐Ÿท๏ธ 16.1. Protected Mode Architecture (IDTR Interrupt Descriptor Table Register)Easy๐Ÿ”โญ๐Ÿ’ก๐Ÿ“„๐ŸŽ“VU๐Ÿ›๏ธVU
In 32-bit x86 protected mode architecture, the 48-bit base address and limit of the Interrupt Descriptor Table (IDT) are stored in which CPU register?
๐Ÿ’ป assembly Snippet
lidt [idt_descriptor] ; Loads IDT base and limit into IDTR
  1. A.GDTR
  2. B.IDTR
  3. C.IVT
  4. D.IDTT