Professional Documents
Culture Documents
MPI MidTerm Test 02 03 2020 Key
MPI MidTerm Test 02 03 2020 Key
There are 10 questions of multiple choice, each carrying 2 marks. Answers may be provided in the
Instructions: -
boxes given below. Rest of the questions may be answered in the answer sheets provided. Attempt all questions.
Name: ID No.:
Q1 Q2 Q3 Q4 Q5 Q6 Q7 Q8 Q9 Q10
b c d c c b a d c b
1. The instruction that is used as a prefix to another instruction to execute repeatedly until the CX register
becomes zero is
a) SCAS b) REP c) CMPS d) STOS
2. The instructions that are used to call a subroutine from the main program and return to the main program
after the execution of called function are
6. Which of the following signals are used to select even/odd memories in a memory bank
8. The following signal is not relevant during the memory write cycle
9. Time taken by a typical memory read or write cycle in 8086 processor driven by a 10 MHz clock is
10. A memory bank with even and odd banks connected to 8086 processor has a total memory of 16K.
Number of address lines required to address all memory locations are
a) 13 b) 14 c) 19 d) 20
11. Write a code that loops 256 times using only 3 instructions and an 8-bit register. (5 marks)
Solution:
AL will contain 00H and the carry flag is set after addition, in the above code. But the overflow flag is not set.
Therefore, INTO instruction, which generates type 0 interrupt when overflow flag is set, simply introduces delay.