IBM 2022 技术面试题(应聘 求职 面试准备资料).docx





《IBM 2022 技术面试题(应聘 求职 面试准备资料).docx》由会员分享,可在线阅读,更多相关《IBM 2022 技术面试题(应聘 求职 面试准备资料).docx(15页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、IBM 2022技术面试题第1题:EDCBACADEBADBCEB E D ACDCAE BStart at the fourth letter of Column 5 and follow the letters around the outside of the pattern in a clockwise direction. What is the second letter between the second E and the second B you come to?第 2 题: AB2C311 B3 DA1BC45A5 2 BE5 D2CIn the row that has
2、 more letters than numbers, in which the numbers are separated by only one letter, and in which the numbers sum to less than the sum of the numbers in the second column, which letter comes just before the second number, counting from right to left?(a,b)= (a+b)/2/(a,b)= a/b*(a,b)= abIf a=l, b=2 then
3、findi)/(a,(a,b)z*(a,b)11) */(a,(*(a,b) 16. In UNIX a files i-node?第 23 题: enum number b= 4,c,d,e What is the value of e ?(a) 7(b)4(c)5(d) 15(e)3第 24 题: The very first process created by the kernal that runs till thekernal process is halts isa) initb) gettyc) both (a) and (b)d) none of these-io - 第 2
4、5 题: Output of the following program is main() int i=0; for(i=0;i20;i+) switch(i) case 0:i+=5; case l:i+=2; case 5:i+=5; default i+=4; break; printf(”d,”,i);a) 0,5,9,13,17b) 5,9,13,17c) 12,17,22d) 16,21e) Syntax error第 26 题: What is the ouptut in the following programmain() char c=-64; int i=-32 uns
5、igned int u =-16; if(ci) printf(passl/);if(cu) printf(pass2); else printf(Fail2); else printf(Faill);if(iu) printf(pass2); else printf(Fail2)a) Passl,Pass2b) Passl,Fail2c) Faill,Pass2d) FaillzFail2e) None of these-ii - 第 27 题: In the process table entry for the kernel process, the process id value i
6、s(a)0(b)l(c)2(d)255(e) it does not have a process table entry第 28 题: Which of the following API is used to hide a windowa) ShowWindowb) EnableWindowc) MoveWindowd) SetWindowPlacemente) None of the above第 29 题: What will the following program do?void main() int i; char a=String; char *p=New Sring; ch
7、ar *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); /Line number:9/ p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf(%s, %s)za,p); free(p);-12 -free(a); /Line number 15/a) Swap contents of p a and print:(New string, string)b) Generate compilation error in line number 8c) Generate compilation
8、 error in line number 5d) Generate compilation error in line number 7e) Generate compilation error in line number 1第 30 题: In the following code segment what will be the result of the function,value of x , value of y unsigned int x=-l; int y; y =0; if(x = y) printf(same); else printf(not same);a) sa
9、me, MAXIN7; -1b) not same, MAXIN1; -MAXINTc) same, MAXUNIT,-1d) same, MAXUNIT, MAXUNITe) not same, MAXIN MAXUNIT第 31 题: PATH = /bin : /usr: /yourhome The file /bin/calender has the following line in it cal 10 1997 The file /yourhome/calender has the following line in it cal 5 1997 If the current dir
10、ectory is /yourhome and-13 -calender is executeda) The calendar for May 1997 will be printed on screenb) The calendar for Oct 1997 will be printed on screenc) The calendar for the current month( whatever it is) will be printedd) Nothing will get printed on screene) An error massage will be printed第
11、32 题: What will be the result of the following program ?char *gxxx() static char xxx1024; return xxx;main() char *g=string; strcpy(gxxx(),g); g = gxxx();strcpy(g,oldstring); printf(The string is : %s/gxxx();a) The string is : stringb) The string is :Oldstringc) Run time error/Core dumpd) Syntax erro
12、r during compilatione) None of these第 33 题: What will be result of the following program?void myalloc(char *x, int n) x= (char *)malloc(n*sizeof(char);memset(x,0/n*sizeof(char);-14 -main() char *g=String; myalloc(g,20); strcpy(g,Oldstring); printf(The string is %s,g);a) The string is : Stringb) Run
13、time error/Core dumpc) The string is : Oldstringd) Syntax error during compilatione) None of these第 34 题: Which of the following function is used to repaint a window immediatelya) Sendmessage(hWnd,WM_PAINt,)b) lnvalidateRect()c) MoveWindowd) WM_COPYe) None第 35 题: Which function is the entry point fo
14、r a DLL in MS Windows 3.1a) Mainb) Winmain-15 -c) Dllmaind) Libmaine) None第 36 题: The standard source for standard input, standard output and standard error isa) the terminalb) /dev/nullc) /usr/you/input, /usr/you/output/, /usr/you/error respectivelyd) None第 37 题: What will be the result of the foll
15、owing program? main() char p=String;int x=0; if(p=String) printf(Pass 1);if(psizeof(p)-2=g)printf(Pass 2); else printf(Fail 2); else printf(Fail 1); if(psizeof(p)-2=,g,) printf(Pass 2); else printf(Fail 2);a) Pass 1, Pass 2b) Fail 1, Fail 2c) Pass 1, Fail 2d) Fail 1, Pass 2-16 e) syntax error during
16、 compilation第 38 题: Which of the choices is true for the mentioned declaration ? const char *p; and char * const p;a) You cant change the character in bothb) First : You cant change the characterr Second : You can;t change the pointerc) You cant change the pointer in bothd) First: You cant change th
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- IBM 2022 技术面试题应聘 求职 面试准备资料 技术 试题 应聘 面试 准备 资料

限制150内