Embedded Systems MCQs
Embedded Systems MCQs
3. When other tasks can run, the kernel can switch control to the user-supplied routine instead of to the idle
task. (True or False)
Ans. False
4. When a task is first created and made ready to run, the kernel puts it into the ___.
Ans. ready state
5. ___ occurs when higher priority tasks use all of the CPU execution time and lower priority tasks do not get
to run.
Ans. CPU starvation
6. On a single-processor system, only one task can run at a time. (Yes or No)
Ans. Yes
8. Endless-loop tasks do the majority of the work in the application by handling inputs and outputs.
(True or False)
Ans. True
10. The ___ tracks the number of times a semaphore has been acquired or released by maintaining a token
count.
Ans. Kernel
11. The ___ is the part of the scheduler that performs context switching and changes the flow of execution.
Ans. dispatcher
13. Ownership of a mutex is gained when a task first locks the mutex by releasing it. (True or False)
Ans. False
14. What happens when a higher priority task is blocked and is waiting for a resource being used by a lower
priority task?
Ans. Priority inversion occurs
15. ___ specify the initial semaphore state and the task-waiting order.
Ans. Binary
1
16. To clear all tasks waiting on a semaphore task-waiting list, some kernels support a ___ operation.
Ans. Flush
17. Two tasks can communicate for the purpose of synchronization without exchanging data.(True or False)
Ans. True
21. Which scheduling provides each task an equal share of the CPU execution time?
Ans. Round-robin
22. ___ are concurrent and independent threads of execution that can compete for CPU execution time.
Ans. Tasks
23. Different kernels store message queues in different locations in memory. (True or False)
Ans. True
25. ___ are kernel objects that provide unstructured data exchange and facilitate synchronization among tasks.
Ans. Pipes
28. An event register can count the occurrences of the same event while it is pending. (True or False)
Ans. False
29. A ___ is software interrupt that is generated when an event has occurred.
Ans. Signal
30. The number and type of signals defined is both system-dependent and ___ dependent.
Ans. RTOS
32. A task must first acquire the ___ before evaluating the predicate.
Ans. mutex
2
33. Embedded systems must be reliable. (True or False)
Ans. True
36. ___ are the portions of the program code that handle the interrupt requests.
Ans. Interrupt Service Routines (ISR)
37. The time required for CPU to return to the interrupted code /highest priority task is called ___.
Ans. interrupt recovery time
38. An embedded system with a single CPU can run only one process at an instance. (True/False)
Ans. True
40. In embedded systems code must be stored in ___ and data in ___.
Ans. ROM, RAM
41. ___ is a real-time operating system made and sold by Wind River Systems of Alameda, California, USA.
Ans. VxWorks
42. ___ is based on the idea of running most of the OS in the form of a number of small tasks, known as
servers.
Ans. QNX
43. In a multi-tasking RTOS, each task needs to be allocated with an amount of memory for storing their
contexts for ___.
Ans. context switching
44. Heap memory is typically used by the kernel for dynamic memory allocation of data space for tasks.
(True/False)
Ans. False
45. Fundamental to the operation of most pre-emptive RTOSs is the concept of a tick timer or heartbeat.
(True/False)
Ans. True
48. The RISC architecture follows the philosophy that ___ instruction should be performed every clock cycle.
Ans. One
3
49. ___ is a von Neumann architecture machine, while ___ uses Harvard architecture.
Ans. ARM7, ARM9
50. SHARC is a high performance floating-point and fixed-point DSP from Analog Devices. (True/False)
Ans. True
53. The I²C reference design has a ___ address space with 16 reserved addresses.
Ans. 7-bit
54. The transmission starts when SDL is pulled low while SCL remains high. (True or False)
Ans. True
56. CAN is a synchronous bus – all transmitters must send at the same time for bus arbitration to work.
(True or False)
Ans. True
57. When all nodes are transmitting 1s, the bus is said to be in the ___ state.
Ans. recessive
58. Using ___ devices, high baud rates and high bus loads with many messages can be handled.
Ans. Full CAN
60. A node that transmits data among different types of networks is known as a ___.
Ans. Router
61. 68. The canonical example of a pipelined processor is a ___ processor, with five stages.
Ans. RISC