The document discusses various topics related to embedded C programming including:
1. The C compilation process and differences between startup code and bootloaders.
2. How to divide code into .c and .h files and the contents of each.
3. Linker files and linker scripts.
4. Module design and generated code.
5. Configuration options like pre-compile, link-time, and post-build configurations.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0 ratings0% found this document useful (0 votes)
10 views11 pages
Interview Qs
The document discusses various topics related to embedded C programming including:
1. The C compilation process and differences between startup code and bootloaders.
2. How to divide code into .c and .h files and the contents of each.
3. Linker files and linker scripts.
4. Module design and generated code.
5. Configuration options like pre-compile, link-time, and post-build configurations.
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 11
Building process
1-C compilation process in details
2-Start up code and boatloader in details and diffrence between them 3-how to divide the module to .c and .h file and the contents of each 4-Linker file and what do you know about linker script 5-what do you know about module design and generated codes 6-moule configs : - pre compile config , link time confi - post build config 7-diff header and soure files c-codes 1. C code to draw certain shape 2. C code to count number of ones in the binary of and integer NB 3. C code to get the 5th root of an number 4. Three methods to different functions from one function 5. Sorting c code 6. Function to divide 2 numbers and not to forget to handle the case x/y , y=0 7. C code to search for certain elemnt in array 8. Write a function to write 1 or 0 to certain bit in an integer NB 9. Function takes un-sorted array contains numbers from 0 to 9 and the function shall return true if all exit and false if not 10. Function to swap two NB and explain what happens in memory 11. Function to add two unsigned chars NB 12. C code to swap two arrays and swap two values 13. C code to checks of a certain NB is repeated in the array or not 14. Swap two variables without using temp or pointer 15. Write a c code to sort an array in desc order in new array 16. C code t ocount NB of Zeros in the binary of NB 17. C function That recies an array and removes duplicates 18. C function return the max NB in array and its index 19. Return the mult and add of two variables 20. C function to revesrse an array 21. C function to get the repeated element in an array 22. Draw x shape and pyramid shape 23. Func to sort an array and there is input variable to decide the way of sorting ascd or desc order 24. C func takes an array and if it finds a NB X makes the previous element in a seprate array and the func returns the new array 25. C func to get the duplicate NB in an array 26. C func to coint the max NB of consecutive one’s in 8bit binary array 27. C func to get the max repeated element in array 28. C func to print 2d array 29. C func to swap 4 bits with another in byte 30. How to change data from little to big indian 31. C code to sort an array and put the result in a new array 32. C function takes an array of int and return number of prime numbers inside the array 33. Swap two pointers of int and draw the stack 34. Write c code to copy the contents of 2 arrays int a third one into a zigzag orde given that array sizes are not known 35. C func to get the max and min NB in array 36. C func that takes the temp of a certain moment and return the highest temp so far 37. C function to take one NB and called by app many times then return the min NB from the first call 38. C function to return the prime NB start from zero to certain NB 39. Write a function that return the index of the odd element in the array given that the array contains even NBs except one odd 40. Write c function to print the max NBs of zeros between two one’s in binary of int NB 41. C code to print the binaru of intger NB 42. C code to return the sum of the digits of certain NB 43. Func to swap two arrays with diff lengths 44. Swap 3 digits cyclic ex 235 wil be 352 45. C func to count two 8 bits numbers and return the result 46. C func to reverse a string(using iteration and recurssion) 47. C code to know if the arch is little or big endian 48. C func to handle error cheching of the sent data using check sum algorithm 49. C func to calc the series 1,2,3,5,8,…. 50. Funct count the NB calls of this func Embedded C 1. Pointer to function 2. Diff between static , extern , volatile , register key words 3. What do you know about #pragma 4. Stack data structure algoritjm 5. C keywords that effects the variable scope and life time 6. C error types 7. Diff between if-else and switch case 8. Diff between variable life time and scope 9. Diff between pass by value and by address 10. Linkes list 11. C variable data types and its size 12. What is global variable and how to use extern 13. Diff between Null ptr and dangling and void 14. What do you know about ptr and its usage 15. Difference between #define and typedef 16. Diff between structures and unions 17. How to detect stack over flow 18. Write a macro to set and clr bit 19. Usage of typedef 20. How function can return 2 arguments with 4 different methods 21. What happen if function return the address of its local variables 22. How to return array by value 23. What is u8 and how to define it 24. What do you know about inline function 25. How to use a global variable from another file 26. How to count the size of the array if it is unknown 27. Bit wise opertions and how to use it to access certain bits 28. What is constant ptr 29. How th write assembly code with c in the same file 30. How to define memry mapped registers without using library 31. What is diff between little and big endian Embedded systems 1. What do you know about stack 2. Diff between mp and mc 3. Memory types and usage 4. Diff memory segments and dynamically allocated memory 5. Microcontroller memory segments 6. What is stack over flow 7. Ram and Rom types amd diff 8. Diff dynamic and static memory allocation 9. What is ES definition 10. What do you know about call backs function and its usage 11. What is software stack mean Interface 1. Interfacing between keypad and LCD 2. What do you know about IO ports 3. HW of LCD and how to diplay a string on it 4. DC , Servo , stepper motor 5. Buttin and led code 6. Toggle a led using push button every press 7. Code interfacing bet temp sensor and MCU and LCD 8. Complete embedded c driver for any types of keypad 9. How to interface with LCD 10. Led on every buttin release / led on every button press 11. Func to light the led while pressing the led and how to fix depouncing in the switch Interrupt 1. What happens when interrupt occurs in details 2. What is interrupt vector table and interrupt prirties 3. Diff between polling and interrupt 4. What is interrupt latency 5. Diff between maskable and non maskable 6. What is interrupt response and how reduce it 7. How to calc interrupt latency and how reduce it 8. What do you know about context switching 9. What do you know about interrupt recovery 10. What do you know about interrupt controller 11. Types of interrupt