exam MCQ ✅ 20 code-based questions (focus on flags, registers… — اللجنة العلمية–قسم الهندسة الطبية الحيوية–المستوى الرابع — TG.ME

exam MCQ

✅ 20 code-based questions (focus on flags, registers, instructions like MOV, ADD, MUL, CALL, RET, etc.)
✅ 10 theory questions from the first lectures (interrupts, segments, flags, registers, etc.)

Questions (Multiple Choice)

Q1. Which interrupt is used for DOS services?

[ ] INT 10h
[✔️] INT 21h
[ ] INT 20h
[ ] INT 1Ah


Q2. What is the size of the 8086 address bus?

[✔️] 20 bits
[ ] 16 bits
[ ] 8 bits
[ ] 32 bits


Q3. Which register type stores flags?

[ ] AX
[ ] BX
[✔️] Status Register
[ ] Code Segment


Q4. What is the function of the CALL instruction?

[✔️] Push IP and jump to procedure
[ ] Return from procedure
[ ] Push data to stack
[ ] Compare values


Q5. Which segment handles instructions?

[✔️] Code Segment
[ ] Data Segment
[ ] Stack Segment
[ ] Extra Segment


Q6. What does the LEA instruction load?

[✔️] Effective address
[ ] Immediate value
[ ] Data
[ ] Flags


Q7. Which flag is set when signed overflow occurs?

[✔️] OF
[ ] CF
[ ] ZF
[ ] SF


Q8. Which instruction returns from a procedure?

[✔️] RET
[ ] CALL
[ ] JMP
[ ] PUSH


Q9. What is the difference between CALL and MACRO?

[✔️] Macro expands inline, CALL uses stack
[ ] CALL is faster than Macro
[ ] Macro uses stack
[ ] CALL expands code


Q10. What does the JNE instruction check?

[✔️] ZF = 0
[ ] ZF = 1
[ ] CF = 1
[ ] SF = 1


💻 Code-Based Questions (Multiple Choice)

Q11.
MOV AX, 0025h  
MOV BX, 00FFh
MUL BX


Result in DX:AX?

[✔️] 0000:24DBh
[ ] 0001:24DBh
[ ] 24DBh:0000
[ ] 0000:25FFh


Q12.
MOV AX, 00FFh  
DIV 10h


What are the values in AL and AH?

[✔️] AL = 0Fh, AH = 0Fh
[ ] AL = FFh, AH = 00h
[ ] AL = 10h, AH = 00h
[ ] AL = 00h, AH = FFh


Q13.
MOV AX, 0024h  
ADD AX, CB11h


Which flags are affected?

[ ] ZF, CF
[✔️] OF, SF
[ ] None
[ ] ZF only


Q14.
MOV AX, 00FFh  
INC AX


Which flags will be set?

[✔️] None (ZF=0, CF=0, OF=0, SF=0)
[ ] CF=1
[ ] ZF=1
[ ] OF=1


Q15.
MOV AX, 0000h  
MOV BX, 4011h
ADD AX, BX
ADD BX, AX


Final value in BX?

[✔️] 8022h
[ ] 4011h
[ ] 0000h
[ ] 2000h


Q16.
CMP AX, BX  
JL LessLabel


Jump occurs when:

[✔️] SF ≠ OF
[ ] ZF = 1
[ ] SF = OF
[ ] CF = 1


Q17.
CMP AX, BX  
JG GreaterLabel


Jump occurs when:

[✔️] ZF = 0 and SF = OF
[ ] ZF = 1
[ ] SF ≠ OF
[ ] CF = 1


Q18.
MOV AX, 00FFh  
MOV BX, 0001h
ADD AX, BX


Which flag is affected?

[✔️] None
[ ] ZF
[ ] OF
[ ] CF


Q19.
CALL Procedure  


What does this instruction do?

[✔️] Pushes IP and jumps to procedure
[ ] Pops IP and returns
[ ] Pushes AX
[ ] Jumps without saving


Q20.
RET  


What does this instruction do?

[✔️] Pops IP and returns to caller
[ ] Pushes IP
[ ] Ends program
[ ] Jumps to procedure
❤2👍1
September 3, 2026 118 9