Assembly Language Programming
Assembly Language Programming
[1/12, 16:51] Meta AI: Here are 15 MCQ questions and answers on Assembly Language Programming:
*Question 1*
*Question 2*
A) High-level syntax
D) Object-oriented programming
*Question 3*
*Question 4*
Which register is used to store the address of the next instruction to be executed in Assembly Language
Programming?
A) Accumulator (ACC)
*Question 5*
*Question 6*
A) Immediate addressing
B) Register addressing
C) Direct addressing
*Question 7*
A) To perform addition
B) To perform subtraction
C) To perform multiplication
D) To perform division
*Question 8*
Which register is used to store the current stack address in Assembly Language Programming?
A) Accumulator (ACC)
*Question 9*
*Question 10*
A) High-level syntax
B) Platform independence
D) Object-oriented programming
*Question 11*
*Question 12*
Which register is used to store the current base address in Assembly Language Programming?
A) Accumulator (ACC)
*Question 13*
A) To perform addition
B) To perform subtraction
*Question 14*
A) Unconditional jump
B) Conditional jump
C) Relative jump
*Question 15*
What is the purpose of the DEC instruction in Assembly Language Programming?
A) To perform addition
B) To perform subtraction
[1/12, 17:13] MacTebo Eugene: 12 4-Marks questions and solutions on Assembly Language
Programming
[1/12, 17:13] Meta AI: Here are 12 4-marks questions and solutions on Assembly Language
Programming:
Explain the basic syntax of Assembly Language Programming, including labels, instructions, and
operands. (4 marks)
Solution
Describe the different data types used in Assembly Language Programming, including bytes, words, and
doublewords. (4 marks)
Solution
Explain the different addressing modes used in Assembly Language Programming, including immediate,
register, and direct addressing. (4 marks)
Solution
Describe the arithmetic instructions used in Assembly Language Programming, including ADD, SUB,
MUL, and DIV. (4 marks)
Solution
Explain the control flow instructions used in Assembly Language Programming, including JMP, JE, and
JNE. (4 marks)
Solution
Describe how to define and call functions and procedures in Assembly Language Programming. (4 marks)
Solution
Explain how to declare and manipulate arrays and strings in Assembly Language Programming. (4 marks)
Solution
To manipulate an array:
To declare a string:
Question 9: Interrupts
Explain how to handle interrupts in Assembly Language Programming, including setting up interrupt
handlers and restoring the interrupt flag. (4 marks)
Solution
- Use the STI and CLI instructions to restore the interrupt flag.
Describe how to define and use macros in Assembly Language Programming. (4 marks)
Solution
To use a macro:
Explain how to use segmentation in Assembly Language Programming, including defining segments and
using segment registers. (4 marks)
Solution
- Use segment registers (CS, DS, ES, FS, GS) to access segments.
Describe how to debug Assembly Language programs, including using debuggers and examining
registers and memory. (4 marks)
Solution
- Use a debugger to step through the program and examine registers and memory.