250+ TOP MCQs on Interrupt Programming, Passing Parameters to Procedures, Handling Programs of Size More Than 64KB and Answers

Microprocessors Interview Questions and Answers for freshers on “Interrupt Programming, Passing Parameters to Procedures, Handling Programs of Size More Than 64KB”.

1. The method of defining the interrupt service routine for software is
a) same as that of hardware
b) difficult than hardware
c) easier than software
d) none of the mentioned
Answer: a
Clarification: For both software and hardware, the method of defining the interrupt service routine is the same.

2. While programming for any type of interrupt, the interrupt vector table is set
a) externally
b) through a program
c) either externally or through the program
d) externally and through the program
Answer: c
Clarification: The programmer must, either externally or through the program, set the interrupt vector table for that type preferably with the CS and IP addresses of the interrupt service routine.

3. To execute a program one should
a) assemble the program
b) link the program
c) apply external pulse
d) all of the mentioned
Answer: d
Clarification: To execute a program, first assemble it, link it and then execute it. After execution, a new file RESULT is created in the directory. Then external pulse is applied to IRQ2 pin, and this will again cause the execution of ISR into the file.

4. Procedures are also known as
a) macros
b) segment
c) subroutines
d) none
Answer: c
Clarification: Procedures are also known as subroutines.

5. Procedures, for their execution, require
a) input data
b) output data
c) constants
d) input data or constants
Answer: d
Clarification: Procedures require input data or constants for their execution. Their data or constants may be passed to the subroutine by the main program.

6. The technique that is used to pass the data or parameter to procedures in assembly language program is by using
a) global declared variable
b) registers
c) stack
d) all of the mentioned
Answer: d
Clarification: The techniques that are used to pass the data or parameter to procedures are by using global declared variable, registers of CPU, memory locations, stack, PUBLIC & EXTRN.

7. If a procedure is interactive, then
a) it accepts inputs directly from input devices
b) it uses global declared variable technique
c) it uses stack
d) it uses memory locations
Answer: a
Clarification: If a procedure is interactive, then it accepts the inputs directly from input devices.

8. For passing the parameters to procedures using the PUBLIC & EXTRN directives, it must be declared PUBLIC in the
a) subroutine
b) procedure
c) main routine
d) main routine and subroutine
Answer: c
Clarification: For passing the parameters to procedures, it must be declared PUBLIC in the main routine and the same should be declared EXTRN in the procedure.

9. The technique to estimate the size of an executable program, before it is assembled and linked is
a) memory location technique
b) global variable technique
c) stack
d) none
Answer: d
Clarification: There is no technique to estimate the size of an executable program before it is assembled and linked.

10. To estimate the size of an executable program before it is assembled and linked, the programming methodology concerned is by writing
a) programs with more than one segment for data and code
b) programs with FAR subroutines each of size up to 64KB
c) programs with more than one segment for stack
d) all of the mentioned
Answer: d
Clarification: By writing programs with more than one segment for data, code or stack or by writing programs with FAR subroutines each of size 64KB, the size of an executable program can be estimated.

contest

Leave a Reply

Your email address will not be published. Required fields are marked *