Embedded Systems Questions and Answers – Introduction of Interrupts

This set of Embedded Systems Multiple Choice Questions & Answers (MCQs) focuses on “Introduction of Interrupts”.

1. The time taken to respond to an interrupt is known as
a) interrupt delay
b) interrupt time
c) interrupt latency
d) interrupt function
View Answer

Answer: c
Explanation: The interrupts are the most important function of the embedded system and are responsible for many problems while debugging the system. The time taken to respond to an interrupt is called the interrupt latency.

2. Into how many parts does the interrupt can split the software?
a) 2
b) 3
c) 4
d) 5
View Answer

Answer: a
Explanation: The software interrupt can split into two parts. These are foreground work and background work.

3. Which of the following allows the splitting of the software?
a) wait statement
b) ready
c) interrupt
d) acknowledgement
View Answer

Answer: c
Explanation: The interrupt can make the software into two main parts and these are foreground work and background work.
advertisement
advertisement

4. Which part of the software is transparent to the interrupt mechanism?
a) background
b) foreground
c) both background and foreground
d) lateral ground
View Answer

Answer: a
Explanation: The interrupt mechanism is transparent to the background software, that is, the background software is not aware of the existence of the foreground software.

5. Which part of the software performs tasks in response to the interrupts?
a) background
b) foreground
c) lateral ground
d) both foreground and background
View Answer

Answer: b
Explanation: In the foreground work, the tasks are performed in response to the interrupts but in the background work, the tasks are performed while waiting for an interrupt.
Sanfoundry Certification Contest of the Month is Live. 100+ Subjects. Participate Now!

6. In which of the following method does the code is written in a straight sequence?
a) method 1
b) timing method
c) sequence method
d) spaghetti method
View Answer

Answer: d
Explanation: In the spaghetti method, the code is written in a straight sequence in which the analysis software goes and polls the port to see if there is data.

7. Which factor depends on the number of times of polling the port while executing the task?
a) data
b) data transfer rate
c) data size
d) number of bits
View Answer

Answer: b
Explanation: The data transfer rate can determine the number of times the port is polled while executing the task.
advertisement

8. Which of the following can improve the quality and the structure of a code?
a) polling
b) subroutine
c) sequential code
d) concurrent code
View Answer

Answer: b
Explanation: The subroutine can improve the quality and the structure of the code. By using the polling method, as the complexity increases the software structure rapidly fall and it will become inefficient. So the subroutine method is adopted.

9. Which of the following are asynchronous to the operation?
a) interrupts
b) software
c) DMA
d) memory
View Answer

Answer: a
Explanation: The interrupts are asynchronous to the operation and therefore can be used with systems that are the event as opposed to the time driven.
advertisement

10. Which of the following can be used to create time-driven systems?
a) memory
b) input
c) output
d) interrupts
View Answer

Answer: d
Explanation: The interrupts which are asynchronous can be used with systems that are the event as opposed to the time driven.

11. What does ISR stand for?
a) interrupt standard routine
b) interrupt service routine
c) interrupt software routine
d) interrupt synchronous routine
View Answer

Answer: b
Explanation: The data transfer codes are written as part of the interrupt service routine which is associated with the interrupt generation by the hardware.

12. Which can activate the ISR?
a) interrupt
b) function
c) procedure
d) structure
View Answer

Answer: a
Explanation: When the port receives the data, it will generate an interrupt which in turn activates the ISR.

13. Which code is written as part of the ISR?
a) data receive code
b) sequential code
c) data transfer code
d) concurrent code
View Answer

Answer: c
Explanation: The data transfer codes are written as part of the interrupt service routine which is associated with the interrupt generation by the hardware.

Sanfoundry Global Education & Learning Series – Embedded System.

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

If you find a mistake in question / option / answer, kindly take a screenshot and email to [email protected]

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.