Predicted Exam Questions
BGC Trust University Bangladesh | Course: MP 504
Based on Teacher's Question Pattern Analysis
View Mode:
β Back to Main
Teacher's Question Pattern Analysis
Question Types by Frequency:
| Question Type | Marks | Frequency |
|---|---|---|
| Architecture Diagram + Functions | 4-5 | 95% |
| Address Calculation | 3-5 | 95% |
| Define Term (1-liner) | 1 | 95% |
| Explain with Example | 2-3 | 95% |
| Stack PUSH/POP Operation | 5 | 85% |
| Find Instruction Errors | 3 | 85% |
| Register Evaluation | 5 | 85% |
| Compare Instructions | 3 | 75% |
| Series Sum Program | 5 | 75% |
SET 1 - Total: 10 Marks
1a
Compare BIU and EU with their functions
4 marks
π Page 4-6 | Pattern: Architecture (95% likely)
| Feature | BIU | EU |
|---|---|---|
| Function | Fetches instructions | Executes instructions |
| Components | Segment registers, IP, Queue | ALU, Registers, Flags |
| Address | 20-bit physical address | 16-bit offset address |
1b
If CS=2000H, IP=1500H, DS=3000H, BX=1000H, calculate physical address for instruction fetch and data access
3 marks
π Page 17-18 | Pattern: Address calc (95% likely)
Instruction: PA = 20000H + 1500H = 21500H
Data: PA = 30000H + 1000H = 31000H
1c
Define offset address
1 mark
π Page 17 | Pattern: Define term (95% likely)
Offset Address is the 16-bit displacement within a segment.
1d
Explain direct addressing mode with example
2 marks
π Page 29-30 | Pattern: Explain (95% likely)
Direct Addressing: Effective address is given directly in instruction.
MOV AX, [1000H] ; Load from DS:1000H
SET 2 - Total: 10 Marks
2a
Draw flag register of 8086 and explain any 5 flags
5 marks
π Page 10-14 | Pattern: Flags (85% likely)
Flags: OF DF IF TF SF ZF AF PF CF
| Flag | Meaning |
|---|---|
| CF | Carry out of MSB |
| ZF | Result is zero |
| SF | MSB of result (sign) |
| OF | Signed overflow |
| DF | String direction (0=inc, 1=dec) |
2b
Find errors: (i) ADD AX, BL (ii) MOV CS, AX (iii) MUL 100H
3 marks
π Page 28, 37 | Pattern: Errors (85% likely)
| Instruction | Error |
|---|---|
ADD AX, BL | Size mismatch (16 vs 8 bit) |
MOV CS, AX | CS can't be destination |
MUL 100H | Immediate not allowed |
2c
What is the purpose of DS and ES registers?
2 marks
π Page 25 | Pattern: Register (85% likely)
DS: Data segment - holds data address
ES: Extra segment - holds string destination
SET 3 - Total: 10 Marks
3a
What is pipelining? How does 8086 achieve it?
2 marks
π Page 16 | Pattern: Queue (85% likely)
Pipelining: Fetching next instruction while current executes.
8086 uses 6-byte FIFO queue in BIU.
3b
Evaluate: MOV AX, 1234H / MOV BX, AX / ADD AX, BX / SUB AX, 1111H
5 marks
π Page 8-9 | Pattern: Eval (85% likely)
| Step | AX | BX |
|---|---|---|
| MOV AX, 1234H | 1234H | - |
| MOV BX, AX | 1234H | 1234H |
| ADD AX, BX | 2468H | 1234H |
| SUB AX, 1111H | 1357H | 1234H |
3c
Compare PUSH and POP operations
3 marks
π Page 19-22 | Pattern: Compare (75% likely)
| Feature | PUSH | POP |
|---|---|---|
| SP Change | SP - 2 | SP + 2 |
| Data Flow | Reg β Stack | Stack β Reg |
SET 4 - Micro-3 (Pins & Signals) - Total: 10 Marks
4a
Explain the function of AD15-AD0, ALE, BHE/S7, and RD pins of 8086
3 marks
π Micro-3 Page 7-9 | Pattern: Pins (75% likely)
| Pin(s) | Function |
|---|---|
| AD15-AD0 | Multiplexed Address/Data bus (16-bit) |
| ALE | Address Latch Enable - latches address |
| BHE/S7 | Bus High Enable / Status bit 7 |
| RD | Read control signal (active low) |
4b
Compare minimum mode and maximum mode of 8086
2 marks
π Micro-3 Page 2-3, 12-16 | Pattern: Modes (75% likely)
| Feature | Minimum Mode | Maximum Mode |
|---|---|---|
| Pin | MN/MXΜ = 1 (VCC) | MN/MXΜ = 0 (GND) |
| Control | 8086 generates control signals | 8288 bus controller generates signals |
| Multi-CPU | Single processor | Supports coprocessors |
4c
Explain the S3/S4 segment decoding table and the RQ/GT DMA mechanism
5 marks
π Micro-3 Page 8, 15 | Pattern: Segments/DMA (70% likely)
S3/S4 Segment Decode Table:
| S4 | S3 | Segment |
|---|---|---|
| 0 | 0 | ES |
| 0 | 1 | SS |
| 1 | 0 | CS / IP (prefetch) |
| 1 | 1 | DS |
RQ/GT: Request/Grant signals for DMA bus access.
SET 5 - Micro-3 (8254 Timer) - Total: 10 Marks
5a
Draw the block diagram of 8254 and explain its components
3 marks
π Micro-3 Page 23-25 | Pattern: 8254 (75% likely)
8254 Components:
- 3 independent 16-bit down counters (Counter 0, 1, 2)
- Data Bus Buffer (D7-D0)
- Read/Write Logic (RDΜ, WRΜ, CSΜ, A1, A0)
- Control Word Register
5b
Compare all six modes of 8254 timer
3 marks
π Micro-3 Page 30-36 | Pattern: 8254 Modes (75% likely)
| Mode | Name | OUT Behavior |
|---|---|---|
| 0 | Interrupt on Terminal Count | Goes LOW on terminal count |
| 1 | Programmable One-Shot | Goes LOW for one CLK cycle |
| 2 | Rate Generator | Goes LOW for one CLK, then HIGH |
| 3 | Square Wave | 50% duty cycle square wave |
| 4 | Software Triggered Strobe | Goes LOW for one CLK on count |
| 5 | Hardware Triggered Strobe | Goes LOW on GATE trigger |
5c
Explain the 8254 control word format and write a program to initialize Counter 0 in Mode 3 (square wave) with count 5000
4 marks
π Micro-3 Page 26 | Pattern: 8254 Control Word (75% likely)
Control Word (SC1 SC0 RL1 RL0 M2 M1 M0 BCD):
| Bit | 7-6 | 5-4 | 3-1 | 0 |
|---|---|---|---|---|
| Name | SC (Select) | RL (Read/Load) | M (Mode) | BCD |
| Values | 00=C0, 01=C1, 10=C2, 11=Ctrl | 00=Latch, 01=LSB, 10=MSB, 11=LSB+MSB | 000-101 | 0=binary, 1=BCD |
; Counter 0, Mode 3, 16-bit binary, count=5000 MOV AL, 36H ; Control word: SC=00, RL=11, M=011, BCD=0 OUT 0E6H, AL ; Write control word to control register MOV AX, 5000 ; Count value OUT 0E0H, AL ; Write LSB to Counter 0 MOV AL, AH OUT 0E0H, AL ; Write MSB to Counter 0