Successfully reported this slideshow.
Upcoming SlideShare
×

# Embedded SW Interview Questions

• Full Name
Comment goes here.

Are you sure you want to Yes No

### Embedded SW Interview Questions

1. 1. Embedded SystemsEng. Mohammed Sokkaree
2. 2. Agenda• Introduction to embedded Systems• Why embedded C• Interview questions• Q&A
3. 3. Computing Systems
4. 4. What’s ES?• System designed to do one or a few dedicated and/or specific functions.• combination of computer hardware and software ▫ Mp3 player ▫ Mobile ▫ Medical testing systems ▫ Anti-Lock Brakes
5. 5. Embedded SW• Portability• Optimization• Quality• Readability• Complexity• HW Compatibility “ HW knowledge”• Min. Resources
6. 6. Why embedded C?
7. 7. Question 1 RTD
8. 8. Question 1• Real time System ▫ Hard ▫ Soft• CBT
9. 9. Question 2 SWE
10. 10. Question 2• Testing ▫ Types of testing• Debugging
11. 11. Question 3 Pointers
12. 12. Pointers Pointers & Pointers• Using the variable a, give definitions for the following: ▫ a) An integer ▫ b) A pointer to an integer ▫ c) A pointer to a pointer to an integer ▫ d) An array of 10 integers ▫ e) An array of 10 pointers to integers ▫ f) A pointer to an array of 10 integers ▫ g) A pointer to a function that takes an integer as an argument and returns an integer ▫ h) An array of ten pointers to functions that take an integer argument and return an integer
13. 13. Answer• a) int a; // An integer• b) int *a; // A pointer to an integer• c) int **a; // A pointer to a pointer to an integer• d) int a[10]; // An array of 10 integers• e) int *a[10]; // An array of 10 pointers to integers• f) int (*a)[10]; // A pointer to an array of 10 integers• g) int (*a)(int); // A pointer to a function a that takes an integer argument and returns an integer• h) int (*a[10])(int); // An array of 10 pointers to functions that take an integer argument and return an integer
14. 14. Question 4 Macros
15. 15. Question 4 Functions Function like macros How it works Input arguments
16. 16. Question 4 (Cont.)• Write a macro to set the MSB#define MSB(X) ((X) | (1 << ((sizeof(X)<<3) -1))
17. 17. Question 5 Variables
18. 18. Question 5• Local• Global• Static• Extern
19. 19. Question 6 Tracing
20. 20. Question 6int main() X Y 2 1{int x=1,y=1; 3 1for(;y;printf("%d %dn",x,y)) 4 1y=x++<=5; 5 1return 0; 6 1 7 0}
21. 21. Thank you