嵌入式工程师面试题目

来源:互联网 发布:ubuntu 挂载不了硬盘 编辑:程序博客网 时间:2024/05/08 16:08
1.Can structures be passed to the functions by value? 1.結構体是否能传值给函数?
2.Why cannot arrays be passed by values to functions? 2.为什么数组不能传值给函数?
3.Advantages and disadvantages of using macro and inline functions? 3.宏定义和内联函数的利弊是什么?
4.What happens when recursion functions are declared inline? 4.将递归函数定义为内联函数会出现什么情况?
5.Scope of static variables? 5.静态变量的有效范?
6.Difference between object oriented and object based languages? 6.面向对象与面向基础的区别是什么?
7.Multiple inheritance – objects contain how many multiply inherited ancestor? 7.多态继承能包含多少祖先级的多态?
8.What are the 4 different types of inheritance relationship? 8.4种继承关系是什么?
9.How would you find out the no of instance of a class? 9.如何找出无实例类?
10.Is java a pure object oriented language? Why? 10.JAVA是纯面向对象语言吗?为什么?
11.Order of constructor and destructor call in case of multiple inheritance? 11.是否允许再多态种调用构造函数和析构函数?
12.Can u have inline virtual functions in a class? 12.在你的类种是否会含有内联虚函数?
13.When you inherit a class using private keyword which members of base class are visible to the derived class? 13.在什么情况下你继承的私有类种成员是基类的显性成员?
14.What is the output of printf(“\nab\bcd\ref”); -> ef 14.printf(“\nab\bcd\ref”); 会输出什么?
15.#define cat(x,y) x##y concatenates x to y. But cat(cat(1,2),3) does not expand but gives preprocessor warning. Why? 15.#define cat(x,y) x##y 链接 x to y.但是cat(cat(1,2),3)不能扩展同时会有预处理警告,为什么?
16.Can you have constant volatile variable? Yes, you can have a volatile pointer? 16.是否可以有可变恒常量?如果是是否有可变指针?
17.++*ip increments what? it increments what ip points to 17++*ip增加了什么?它将IP指向了什么?
18.Operations involving unsigned and signed — unsigned will be converted to signed 18.操作类型包括符号型和非符号型—非符号型会转换成符号型?
19.a+++b -> (a++)+b 19.a+++b->(a++)+b ji
20.malloc(sizeof(0)) will return — valid pointer 20.malloc(sizeof(0)) 将会返回的有效指针
21.main() {fork();fork();fork();printf(“hello world”); } — will print 8 times. 21.main() {fork();fork();fork();printf(“hello world”); } 会打印8次?
22.Array of pts to functions — void (*fptr[10])() 22.指针数组函数 void (*fptr[10])()
23.Which way of writing infinite loops is more efficient than others? there are 3ways. 23.如何写死循环更有效?
24.# error — what it does? 24.#ERROR是干吗的?
25.How is function itoa() written? 25.如何实现itoa()?
26.Who to know wether system uses big endian or little endian format and how to convert among them? 26.谁去分析系统使用了大系统还是小系统。(大头小头)
Intel的AISC指令都是低字节在前,苹果等Power PC的cpu使用的是RISC指令集,都是高字节在前。如何转变他们?
27.What is interrupt latency? 27.什么是中断响应?
28.What is forward reference w.r.t. pointers in c? 28.什么在C中分析w.r.t. pointers?
29.How is generic list manipulation function written which accepts elements of any kind?
30.What is the difference between hard real-time and soft real-time OS? 30.软实时操作系统和硬实时操作系统的区别?
31.What is interrupt latency? How can you recuce it? 31.什么是中断潜伏?你如何识别它?
32.What is the differnce between embedded systems and the system in which rtos is running? 32.嵌入式操作系统和实时操作系统的区别?
33.How can you define a structure with bit field members? 33.如何定义 bit field members的結構体
34.What are the features different in pSOS and vxWorks? 34.PSOS和VXWORKS功能区别有那些?
35.How do you write a function which takes 2 arguments – a byte and a field in the byte and returns the value of the field in that byte? 35……
36.What are the different storage classes in C? 36.C中的存储类有什么不同?
37.What are the different qualifiers in C? 37.C中有什么不同的限定?
38.What are the different BSD and SVR4 communication mechanisms BSD与SVR4通讯有什么不同?
0 0
原创粉丝点击