1. The instructions that are used to call a subroutine from the main program and return to the main program after execution of called function are
a) CALL, JMP
b) JMP, IRET
c) CALL, RET
d) JMP, RET
Explanation: At each CALL instruction, the IP and CS of the next instruction are pushed onto the stack, before the control is transferred to the procedure. At the end of the procedure, the RET instruction must be executed to retrieve the stored contents of IP & CS registers from a stack.
2. The instruction that unconditionally transfers the control of execution to the specified address is
a) CALL
b) JMP
c) RET
d) IRET
Explanation: In this the control transfers to the address specified in the instruction and flags are not affected by this instruction.
3. Which instruction cannot force the 8086 processor out of ‘halt’ state?
a) Interrupt request
b) Reset
c) Both interrupt request and reset
d) Hold
Explanation: Only an interrupt request or Reset will force the 8086 processor to come out of the ‘halt’ state.
4. NOP instruction introduces
a) Address
b) Delay
c) Memory location
d) None of the mentioned
Explanation: NOP is the No operation. It means that the processor performs no operation for the clock cycle and thus there exists a delay.
5. Which of the following is not a machine controlled instruction?
a) HLT
b) CLC
c) LOCK
d) ESC
Explanation: Since CLC is a flag manipulation instruction where CLC stands for Clear Carry Flag.
6. The disadvantage of machine level programming is
a) time consuming
b) chances of error are more
c) debugging is difficult
d) all of the mentioned
Explanation: The machine level programming is complicated.
7. The coded object modules of the program to be assembled are present in
a) .ASM file
b) .OBJ file
c) .EXE file
d) .OBJECT file
Explanation: .OBJ file is created with same name as source file and extension .OBJ. It contains the coded object modules of the program to be assembled.
8. The advantages of assembly level programming are
a) flexibility of programming is more
b) chances of error are less
c) debugging is easy
d) all of the mentioned
Explanation: The assembly level programming is more advantageous than the machine level programming.
9. The extension that is essential for every assembly level program is
a) .ASP
b) .ALP
c) .ASM
d) .PGM
Explanation: All the files should have the extension, .ASM.
10. The directory that is under work must have the files that are related to
a) Norton’s editor
b) Assembler
c) Linker
d) All of the mentioned
Explanation: Before starting the process of entering a small program on PC, ensure that all the files namely Norton’s editor, assembler, linker and debugger are available in the same directory in which work is been done.