Microprocessor Questions and Answers Part-9

1. For the INTR signal, to be responded to in the next instruction cycle, it must go ________ in the last clock cycle of the current instruction
a) high
b) low
c) high or low
d) unchanged

Answer: a
Explanation: The INTR signal must go high in the clock cycle of the current instruction in order to respond in the next instruction cycle.

2. The status of the pending interrupts is checked at
a) the end of main program
b) the end of all the interrupts executed
c) the beginning of every interrupt
d) the end of each instruction cycle

Answer: d
Explanation: At the end of each instruction, the status of the pending interrupts is checked.

3. Once the processor responds to an INTR signal, the IF is automatically
a) set
b) reset
c) high
d) low

Answer: b
Explanation: The IF is automatically reset when the processor responds to an INTR signal. If the processor wants to respond to any type of INTR signal further then, the IF should again be set.

4. If the pin LOCK (active low based) is low at the trailing edge of the first ALE pulse, then till the start of the next machine cycle, the pin LOCK (active low) is
a) low
b) high
c) low or high
d) none of the mentioned

Answer: a
Explanation: The pin LOCK (active low) remains low till the start of the next machine cycle.

5. With the trailing edge of the LOCK (active low), the INTA (active low) goes low and remains in it for
a) 0 clock cycle
b) 1 clock cycle
c) 2 clock cycles
d) 3 clock cycles

Answer: c
Explanation: The INTA (active low) goes low and remains low for two clock cycles before returning back to the high state.

6. If a number of instructions are repeating through the main program, then to reduce the length of the program, __________ is used.
a) procedure
b) subroutine
c) macro
d) none of the mentioned

Answer: c
Explanation: For a certain number of instructions that are repeated in the main program, when macro is defined then the code of a program is reduced by placing the name of the macro at which the set of instructions are needed to be repeated.

7. The process of assigning a label or macroname to the string is called
a) initialising macro
b) initialising string macro
c) defining a string macro
d) defining a macro

Answer: d
Explanation: The process of assigning a label to the string is called defining a macro.

8. A macro within a macro is called
a) macro-within-macro
b) nested macro
c) macro-in-macro
d) none of the mentioned

Answer: b
Explanation: A macro may be called from inside a macro. This type of macro is called nested macro.

9. A macro can be defined as
a) beginning of a program
b) end of a program
c) after initialisation of program
d) anywhere in a program

Answer: d
Explanation: A macro can be defined anywhere in a program.

10. A macro can be used as ________
a) in data segment
b) to represent directives
c) to represent statements
d) all of the mentioned

Answer: d
Explanation: A macro may be used in data segment and can also be used to represent statements and directives.