CS410P Solved Quiz Mid Term Preparation 2023

 CS410P Solved Quiz Mid Term Preparation 2023


1. **We use _______ to generate ‘.com’ file and ______ to generate ‘.lst‘ file.**

   - Answer: nasm, nasm



2. **How many time(s), the loop will be executed in the following set of instructions?**

   ```

   mov cx, 4

   loop: sub cx, 2

   jz loop

   ```

   - Answer: 2



3. **The value of ____________ is recovered from the stack when RET instruction is executed.**

   - Answer: PC (Program Counter)


4. **Jump will be taken by ‘JNZ’ instruction if _____________________**

   - Answer: Jump if the zero flag is not set




5. **What will be the final value in the ax register after execution of the following code?**

   ```

   mov ax, 10

   inc ax

   mov ax, 1

   add ax, 20

   ```

   - Answer: 21




6. **Intel 8088 stack works on __________ sized elements.**

   - Answer: word




7. **What assembly language instruction(s) do we use to terminate the program?**

   - Answer: `mov ax, 0x4c00` `int 0x21`




8. **SP is decremented by ___________ when an element is pushed on the stack.**

   - Answer: 2




9. **x represents**

   - Answer: Hexadecimal Numbers




10. **What symbol is used to define a label in the assembly language programming?**

    - Answer: : (colon)