版權(quán)說(shuō)明:本文檔由用戶(hù)提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
1、IBM 2022技術(shù)面試題第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)*/(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 isinitgettyboth (a) and (b)none of these-io - 第 25 題: Output of t
4、he 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);0,5,9,13,175,9,13,1712,17,2216,21Syntax error第 26 題: What is the ouptut in the following programmain() char c=-64; int i=-32 unsigned int u =-16; if(ci) printf
5、(passl/);if(cu) printf(pass2); else printf(Fail2); else printf(Faill);if(iu) printf(pass2); else printf(Fail2)Passl,Pass2Passl,Fail2Faill,Pass2FaillzFail2None of these-ii - 第 27 題: In the process table entry for the kernel process, the process id value is(a)0(b)l(c)2(d)255(e) it does not have a proc
6、ess table entry第 28 題: Which of the following API is used to hide a windowShowWindowEnableWindowMoveWindowSetWindowPlacementNone of the above第 29 題: What will the following program do?void main() int i; char a=String; char *p=New Sring; char *Temp; Temp=a; a=malloc(strlen(p) + 1); strcpy(a,p); /Line
7、 number:9/ p = malloc(strlen(Temp) + 1); strcpy(p,Temp); printf(%s, %s)za,p); free(p);-12 -free(a); /Line number 15/Swap contents of p a and print:(New string, string)Generate compilation error in line number 8Generate compilation error in line number 5Generate compilation error in line number 7Gene
8、rate 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);same, MAXIN7; -1not same, MAXIN1; -MAXINTsame, MAXUNIT,-1same, MAXUNIT, MAXUNITno
9、t 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 directory is /yourhome and-13 -calender is executedThe calendar for May 1997 will be printed o
10、n screenThe calendar for Oct 1997 will be printed on screenThe calendar for the current month( whatever it is) will be printedNothing will get printed on screenAn error massage will be printed第 32 題: What will be the result of the following program ?char *gxxx() static char xxx1024; return xxx;main(
11、) char *g=string; strcpy(gxxx(),g); g = gxxx();strcpy(g,oldstring); printf(The string is : %s/gxxx();The string is : stringThe string is :OldstringRun time error/Core dumpSyntax error during compilationNone of these第 33 題: What will be result of the following program?void myalloc(char *x, int n) x=
12、(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);The string is : StringRun time error/Core dumpThe string is : OldstringSyntax error during compilationNone of these第 34 題: Which of the following functio
13、n is used to repaint a window immediatelySendmessage(hWnd,WM_PAINt,)lnvalidateRect()MoveWindowWM_COPYNone第 35 題: Which function is the entry point for a DLL in MS Windows 3.1a) Mainb) Winmain-15 -DllmainLibmainNone第 36 題: The standard source for standard input, standard output and standard error ist
14、he terminal/dev/null/usr/you/input, /usr/you/output/, /usr/you/error respectivelyNone第 37 題: What will be the result of the following 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,) pr
15、intf(Pass 2); else printf(Fail 2);Pass 1, Pass 2Fail 1, Fail 2Pass 1, Fail 2Fail 1, Pass 2-16 syntax error during compilation第 38 題: Which of the choices is true for the mentioned declaration ? const char *p; and char * const p;You cant change the character in bothFirst : You cant change the charact
16、err Second : You can;t change the pointerYou cant change the pointer in bothFirst: You cant change the pointer Second : You cant chanage the characterNone第 39 題: The redirection operators anddo the same functiondiffer: overwrites, while appendsdiffer: is used for input while is used for outputdiffer
17、: write to any file while write only to standard outputNone of these-17 -第 40 題: The command grep first second third /usr/you/myfileprints lines containing the words first, second or third from the file /usr/you/myfilesearches for lines containing the pattern first in the filessecond, third, and /us
18、r/you/myfile and prints themsearches the files /usr/you/myfiel and third for lines containing the words first or second and prints themreplaces the word first with the word second in the files third and /usr/you/myfileNone of the above-18 第 3 題: If a salesmans average is a new order every other week
19、, he will break the office record of the year. However, after 28 weeks, he is six orders behind schedule. In what proportion of the remaining weeks does he have to obtain a new order to break the record?第4題:在房里有三盞燈,房外有三個(gè)開(kāi)關(guān),在房外看不見(jiàn)房?jī)?nèi)的狀況,你只 能進(jìn)門(mén)一次,你用什 么方法來(lái)區(qū)分那個(gè)開(kāi)關(guān)掌握那一盞燈.第5題:一個(gè)粗細(xì)勻稱(chēng)的長(zhǎng)直管子,兩端開(kāi)口,里面有4個(gè)白球和4個(gè)黑球,
20、球的直徑、兩 端開(kāi)口的直徑等于管子的內(nèi)徑,現(xiàn)在白球和黑球的排 列是wbbbb,要求不取出任何一個(gè)球,使得排列變?yōu)閎bwbb。第6題:一只蝸牛從井底爬到井口,每天白天蝸牛要睡覺(jué),晚上才出來(lái)活動(dòng), 一個(gè)晚上蝸??梢韵蛏吓?尺,但是白天睡覺(jué)的時(shí)候會(huì)往下滑2尺, 井深10尺,問(wèn)蝸牛幾天可以爬出來(lái)?第7題:在一個(gè)平面上畫(huà)1999條直線最多能將這一平面劃分成多少個(gè)局部?第8題:在太平洋的一個(gè)小島上生活著土人,他們不情愿被外人打攪,一天, 一個(gè)探險(xiǎn)家到了島上,被土人抓住,土人的祭司告知他,你臨死前還 可以有一個(gè)機(jī)會(huì)留下一句話,假如這句話是真的,你將被燒死,是 假的,你將被五馬分尸,可憐的探險(xiǎn)家如何才能活下來(lái)
21、?第9題:怎樣種四棵樹(shù)使得任意兩棵樹(shù)的距離相等。第10題:27個(gè)小運(yùn)發(fā)動(dòng)在參與完競(jìng)賽后,口渴難耐,去小店買(mǎi)飲料,飲料 店搞促銷(xiāo),憑三個(gè)空瓶可以再換一瓶,他們最少買(mǎi)多少瓶飲料才能 保證一人一瓶?第11題:有一座山,山上有座廟,只有一條路可以從山上的廟到山腳,每周 一早上8點(diǎn),有一個(gè)聰明的小和尚去山下化緣,周二早上8點(diǎn)從山 腳回山上的廟里,小和尚的上下山的速度 是任意的,在每個(gè)來(lái)回中, 他總是能在周一和周二的同一鐘點(diǎn)到達(dá)山路上的同一點(diǎn)。例如,有 一次他覺(jué)察星期一的8點(diǎn)30和星期二的8點(diǎn)30他都到了山路靠山腳 的3/4的地方,問(wèn)這是為什么?第12題:有兩根不勻稱(chēng)分布的香,每根香燒完的時(shí)間是一個(gè)小時(shí),
22、你能用什 么方法來(lái)確定一段15分鐘的時(shí)間?第13題:In 1978, a kg of paper was sold at Rs25/-. If the paper rate increases at 1.5% more than the inflation rate which is 6.5% a year, then what wil be the cost of a kg of paper after 2 years?(a) 29.12 (b) 29.72 (c) 30.12 (d) 32.65 (e) none of these第14題:In A,B,C are having some
23、marbles with each of them.A has given B and C the same number of marbles each of them already have. Then, B gave C and A the same number of marbles they already have. Then C gave A and B the same number of marbles they already have. At the end A,B,and C have equal number of marbles.If x,y,z are the
24、marbles initially with A,B,C respectively. Then the number of marbles B have at the end2(x-y-z)4(x-y-z)2(3y-x-z)x + y-zIf the total number of marbles are 72, then the number of marbles with A at the starting203032(d)39第 15 題: If a car starts from A towards B with some velocity. Due to some problem i
25、n the engine after travelling 30km, the car goes with 4/5 th of its actual velocity The car reaches B 45 min later to the actual time.If the car engine fails of ter travelling 45km, the car reaches the destination B 36min late to the actual time What is the initial velocity of car and what is the di
26、stance between A and B in km第16題:A person has Rs 100/- in his pocket, he can as 25 pencils or 15 books.He kept 15% of the money for travelling expenses and purchased 5 pencils. So how many books he can purchase with the remaining money.第17題:The values of shares (in Rs).of A, B and C from January to
27、June are as follows.MonthABCJanuary306080February356585March457565April407582May557585June507580During this period which share has undergone maximium fluctuation?In which month it is possible to buy B and C selling A?In which month the share values are very low? iv) By purchasing one share of A and
28、4 each of B and C in the beginning of the period, when shoudl these be sold to get maximum profit?第 18 題: In a computer institute 9 languages can be taught. The module is of 6 months duration and of the six languages only one can be taught each month . In addition to that BASIC is always taught and should be in first month itself WORD PERFECT is to be taught in the preceeding week of WORD STAR. FORTRAN can not be taught until CO
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶(hù)所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒(méi)有圖紙預(yù)覽就沒(méi)有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶(hù)上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶(hù)上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶(hù)因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 《家樂(lè)福模式分析》課件
- 管理顧問(wèn)工作總結(jié)
- 房地產(chǎn)行業(yè)客服經(jīng)驗(yàn)分享
- 服裝行業(yè)的保安工作總結(jié)
- 中央財(cái)經(jīng)大學(xué)財(cái)務(wù)管理課件-風(fēng)險(xiǎn)與報(bào)酬
- 銀行求職自我介紹(15篇)
- 2023-2024年項(xiàng)目部治理人員安全培訓(xùn)考試題(原創(chuàng)題)
- 《電子政務(wù)》課件
- 2024年公司項(xiàng)目部負(fù)責(zé)人安全教育培訓(xùn)試題含答案(模擬題)
- 銷(xiāo)售個(gè)人年度工作總結(jié)(7篇)
- 創(chuàng)意寫(xiě)作與文學(xué)欣賞
- 高空伐樹(shù)作業(yè)施工方案
- 新媒體用戶(hù)行為研究-洞察分析
- 醫(yī)療器械考試題及答案
- 初三家長(zhǎng)會(huì)數(shù)學(xué)老師發(fā)言稿
- 2025版國(guó)家開(kāi)放大學(xué)法學(xué)本科《知識(shí)產(chǎn)權(quán)法》期末紙質(zhì)考試總題庫(kù)
- 醫(yī)藥銷(xiāo)售培訓(xùn)課程
- 2022-2023學(xué)年北京市海淀區(qū)七年級(jí)(上)期末語(yǔ)文試卷
- 膝關(guān)節(jié)炎階梯治療
- 設(shè)備日常維護(hù)及保養(yǎng)培訓(xùn)
- 行業(yè)背景、經(jīng)濟(jì)運(yùn)行情況及產(chǎn)業(yè)未來(lái)發(fā)展趨勢(shì)分析
評(píng)論
0/150
提交評(píng)論