Microprocessors Questions and Answers – Special Operations

This set of Microprocessor Multiple Choice Questions & Answers (MCQs) focuses on “Special Operations”.

1. Which of the following operation is not carried out by 80286?
a) task switch operation
b) halt
c) processor reset
d) none of the mentioned
View Answer

Answer: d
Explanation: The 80286 carries out six operations. They are:
1. processor reset and initialization
2. task switch operation
3. pointer testing instructions
4. protected mode initialization
5. how to enter protected mode?
6. halt.

2. After completion of the first cycle, the first task is again scheduled for the next cycle. This process is known as
a) repetition
b) task switch operation
c) processor initiation
d) none of the mentioned
View Answer

Answer: b
Explanation: After completion of the first cycle, the first task is again scheduled for the next cycle, and the process continues. The previous task that was incomplete, may be completed during its coming turns of the allotted CPU time slice. This switch-over operation from one task to another is called task switch operation.

3. The operation that is provided by the internal architecture, to save the execution state of a task is
a) processor reset
b) processor initialization
c) task switch operation
d) halt
View Answer

Answer: c
Explanation: The 80286 internal architecture provides a task switch operation, to save the execution state of a task, and to load a new task to be executed.
advertisement
advertisement

4. The instruction that can be used to carry out task switch operation is
a) software interrupt instruction
b) exception
c) external interrupt
d) all of the mentioned
View Answer

Answer: d
Explanation: A software interrupt instruction, exception or external interrupt, can also be used to carry out task switch operation.

5. The IRET instruction gets back the execution state of the previous task, if
a) NT (nested task flag) = 1
b) NT (nested task flag) = 0
c) IF (interrupt flag) = 1
d) IF (interrupt flag) = 0
View Answer

Answer: a
Explanation: If NT = 1, the IRET instruction gets back the execution state of the previous task. Otherwise, the IRET instruction lets the current task continue, after popping the required values from the stack.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. The NT flag is set by the task switch operation, that is initiated by
a) CALL
b) INT
c) CALL & INT
d) None of the mentioned
View Answer

Answer: c
Explanation: The NT flag is set by CALL or INT initiated task switch operations.

7. The 80286 executes LMSW instruction to enter into
a) real addressing mode
b) protected mode
c) real addressing and protected modes
d) none of the mentioned
View Answer

Answer: b
Explanation: To enter into protected mode, 80286 executes LMSW instruction, that sets PE flag.
advertisement

8. The instruction that sets the zero flag, if the segment referred to, by the selector can be read is
a) VERW
b) VERR
c) LSL
d) LAR
View Answer

Answer: b
Explanation: The VERR (VERify to Read) instruction sets the zero flag, if the segment referred to, by the selector, can be read.

9. The instruction that sets the zero flag, if the segment referred to by the selector, can be written as
a) VERW
b) APRL
c) LSL
d) LAR
View Answer

Answer: a
Explanation: The VERW (VERify to Write) instruction sets the zero flag, if the segment referred to, by the selector can be written.
advertisement

10. The instruction that reads the descriptor access rights byte into the register is
a) VERW
b) APRL
c) LSL
d) LAR
View Answer

Answer: d
Explanation: The LAR (Load Access Rights) instruction reads the descriptor access rights byte into the register, if privilege rules allow.

11. The instruction that reads the segment limit into the register, if privilege rules and descriptor type allow is
a) VERW
b) APRL
c) LSL
d) LAR
View Answer

Answer: c
Explanation: The LSL (Load Segment Limit) instruction reads the segment limit into the register, if privilege rules, and descriptor type allow.

12. The instruction that adjusts the RPL (Requested Privilege Level) of the selector, to the numeric maximum of current selector RPL value is
a) LAR
b) VERR
c) LSL
d) APRL
View Answer

Answer: d
Explanation: The APRL (Adjust Requested Privilege Level) adjusts the RPL (Requested Privilege Level) of the selector to the numeric maximum of current selector RPL value, and the RPL value in the register.

Sanfoundry Global Education & Learning Series – Microprocessors.

Here’s the list of Best Books in Microprocessors.

To practice all areas of Microprocessors, here is complete set of 1000+ Multiple Choice Questions and Answers.

advertisement
advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.