Embedded Interview Questions PDF 1675182402
Embedded Interview Questions PDF 1675182402
Embedded
io
st
ue
Q
Interview
W
IE
RV
TE
Questions
IN
D
CE
N
VA
AD
Sohaib Dar
&
C
SI
BA
1. Linker file/linker script.
2. Linked List.
3. Difference between boot-loader and startup code.
4. Memories types.
5. Microcontroller Memory Segments.
6. Reentrant and non reentrant functions
7. contents of.c and .h files
8. Static and Dynamic Architecture.
ns
9. Testing Types.
io
10. What do you know about Call by Reference.
st
11. General questions about pointers like NULL pointer, dangling pointer, pointers
ue
arithmetic
12. What do you know about const keyword and its usage with pointer.
Q
13. What do you know about variable scope and life-time.
W
14. Different types of RAM.
IE
15. What do you know about software development cycle.
RV
16. The usage of the typedef keyword.
17. What is the difference between the waterfall Model and V-Model ?
TE
18. What will happen if function return the address of one of its local variables?
19. What do you know about Stack Overflow.
IN
21. What is the difference between Structure and Union ? difference between static,
CE
29. How to define the Memory mapped registers without using library.
BA
ns
47. a) int a; // An integer
io
b) int *a; // A pointer to an integer
st
c) int **a; // A pointer to a pointer to an integer
ue
d) int a[10]; // An array of 10 integers
e) int *a[10]; // An array of 10 pointers to integers
Q
f) int (*a)[10]; // A pointer to an array of 10 integers
W
g) int (*a)(int); // A pointer to a function that takes an integer as an argument
IE
and returns an integer
RV
h) int (*a[10])(int); // An array of ten pointers to functions that take an integer
argument and return
TE
an integer
IN
D
CE
50. Difference reentrant & non-reentrant API's and between Sync and Async API's.
VA
56. Write function to send / get character using SPI with polling and interrupt
BA
ns
io
74. BSW layered Architectures
st
75. Complier errors – Liner errors – preprocessor errors.
ue
76. Why use critical section
77. What is block scope?.
Q
78. Function to get the number of ZERO's and One's in the binary of a character
W
variable.
IE
79. RTOS footprint
RV
80. Why RTOS??
81. Call by reference and call by value
TE
82. Stack overflow problem Macro like function vs function Function vs inline
function
IN
ns
113. Bank switching Technique
io
114. How to write code more optimized?
st
115. Foreground Background is more deterministic than RTOS
ue
116. Why RTOS is more responsiveness than While(1)
117. Static Architecture
Q
118. Function prototype and header file content
W
119. RAM section
IE
120.LIFO vs FIFO
RV
121.V model
122.Software life cycle
TE
136.How to decide whether given processor is using little endian format or big endian
format ?
137.What is Top half & bottom half of a kernel?
138.Difference between RISC and CISC processor.
139.What is the difference between hard real-time and soft real-time OS?
140.What type of scheduling is there in RTOS?
141.What is priority inversion?
142.What is priority inheritance?
143.How many types of IPC mechanism you know?
144.What is semaphore?
145.What is spin lock?
146.What is difference between binary semaphore and mutex?
147.What is virtual memory?
148.What is kernel paging?
149.Can structures be passed to the functions by value?
150.Why cannot arrays be passed by values to functions?
151.Advantages and disadvantages of using macro and inline functions?
152.What happens when recursion functions are declared inline?
153.#define cat(x,y) x##y concatenates x to y. But cat(cat(1,2),3) does not expand but
gives preprocessor warning. Why?
ns
154.Can you have constant volatile variable? Yes, you can have a volatile pointer?
io
155.++*ip increments what? it increments what ip points to
st
156.Operations involving unsigned and signed — unsigned will be converted to
ue
signed
157.Which way of writing infinite loops is more efficient than others? there are 3ways.
Q
158.Who to know whether system uses big endian or little endian format and how to
W
convert among them?
IE
159.What is forward reference w.r.t. pointers in c?
RV
160.How is generic list manipulation function written which accepts elements of any
kind?
TE
161.What is the difference between embedded systems and the system in which RTOS
is running?
IN
163.How do you write a function which takes 2 arguments - a byte and a field in the
CE
ns
191.⦁Differences between inline function, MACRO function, and function
io
192.⦁delay for 1 sec with timer
st
193.⦁ADC types and modes
ue
194.⦁Bit manipulation
195.⦁Keypad (connection and hardware)
Q
196.⦁CPU load in RTOS
W
197.⦁How to calculate CPU load without knowing each task execution time (hint: Idle
IE
task)
RV
198.⦁How to know number is big endian or little endian, and how to convert from one
to another
TE
202.⦁ICU usage
CE
203.⦁Memory segments
204.⦁Priority inversion, priority inheritance, priority ceiling protocol, Deadlock.
N
207.⦁Scheduling algorithms
208.What's The Startup Code?
&
ns
232.What’s pipelining? How does it affect CPU performance?
io
233.What are the differences between Harvard & Von Neumann
st
Architectures?
ue
234.What are the differences between a Microcontroller & a Microprocessor?
235.What are the differences between RAM & ROM?
Q
236.What are the differences between FLASH & EEPROM?
W
237.What is Endianness? Little and Big
IE
238.What’s Bit Banging?
RV
239.What’s Bit Banding?
240.Differences between 8-Bit and 32-Bit architectures?
TE
247.What’s the watchdog timer (WDT)? When and Why it’s used?
VA
ns
272.How to pick the proper sampling rate for ADC?
io
273.What’s the effect of analog input impedance on the ADC’s reading?
st
274.What’s ADC channels cross-coupling? How to eliminate it?
ue
275.Write code to read temperature with ADC
276.Using 8-Bit DAC, write code to generate a sawtooth waveform @ 50Hz
Q
277.Using 8-Bit DAC, write code to generate a triangular waveform @ 50Hz
W
278.Using 8-Bit DAC, write code to generate a sine waveform @ 50Hz
IE
279.Compare between SPI and I2C
RV
280.Which offers the highest data rate among SPI, I2C, UART protocols?
281.Which port to use for onboard high-speed communication? Why?
TE
282.At the same baud rate which would send more data SPI or UART? Why?
283.How does UART communication work?
IN
ns
313.What’s The CPU Load?
io
314.What’s the scheduler? List down some scheduling algorithms
st
315.What’s a deadlock and when does it occur?
ue
316.Differences between Mutex and Semaphores
317.What’s the priority ceiling?
Q
318.What’s the priority inversion?
W
319.What’s the priority inheritance?
IE
320.Write a FreeRTOS task implementation in c
RV
321.Preemptive vs Non-Preemptive kernels
322.What’s the speed range for the CAN bus?
TE
327.What happens when 2 CAN nodes transmit data with the same id at
328.the same time?
N
333.Simulator VS Emulator
C
SI
BA