应届生求职网小程序
查看: 81992|回复: 2
打印 上一主题 下一主题

[其他] IBM2008笔试题(有答案)

[复制链接]
cyinger      

主题

好友

28

积分

求职中

跳转到指定楼层
1
发表于 2008-11-25 21:01 |显示全部楼层 |倒序浏览
IBM笔试题 第一部分:IPAT (IPAT 的全称是 Information Processing Aptitude Test)。 PartI 15min 15Ques 矩阵排列 PartII 4min 20Ques 数列猜测 PartIII 5min (不记得多少题)Ques 数学计算 PartIV 15min 15Ques 矩阵排列 每部分单独发卷,卷子第一页是样板题。没说开始考试,不让翻页。时间到了就收走卷子,但是IPAT的答题卡是在最后所有答完再收。 答题方法,选哪个就在哪个地方画叉,一共有ABCDE五个选项。题型和网上历年的题目一样,稍后做了一个总结。记分方法:I和IV打错不扣分,II和III打错倒扣分 第二部分:技术卷,答题时间是一个小时,有ABC三套卷子。熟悉JAVA的选做AC,熟悉C++的选做BC。 题型为单选和多选,每题分值不同,做错不扣分,多选选不全得一半分。我答的是BC卷,B卷全考C++,多为读程序选结果,类,字符串,指针之类的。 C卷什么都考,很细,UML、数据结构。。。。。

评分

2

查看全部评分

+10
回复

使用道具 举报

cyinger      

主题

好友

28

积分

求职中

2
发表于 2008-11-25 21:05 |显示全部楼层
个人感觉IBM技术题考得很细,比如考数据结构,会给定一种应用情况需要怎样插入数据,在哪删除,如何查找问你选哪种数据结构,如顺序存储、单链表、双向链表、循环链表最合适;考算法复杂度,如快速查找的平均查找次数;考基本概念,如UML是什么,或者画一个UML的图,问你是引用,关联还是什么。C++主要考程序执行结果,编译错误等等。 在做C卷的时候,感觉自己读题速度太慢了,因为不习惯英文的技术术语,需要反应下是什么意思。我在做一个进程调度的题时,就花了很长时间读题,后来才反应过来是考各种算法,短作业,优先级调度,等等。很多术语换做英文就不认识了,所以准备考试的时候不防把常用的专业英文术语准备下,做一些这类英文题。
+10
回复

使用道具 举报

cyinger      

主题

好友

28

积分

求职中

3
发表于 2008-11-25 21:09 |显示全部楼层

自己结合考试经验,总结了一下,希望对大家有帮助。因为有点多,所以没有直接贴过来,上面具体的笔试题都是网上找到的,只是结合自己考试的经验总结了一下,我笔的是技术类的。

IBM笔试题(一)

IBM笔试题

第一部分:IPAT (IPAT 的全称是 Information Processing Aptitude Test)。
PartI  15min    15Ques  矩阵排列
PartII 4min    20Ques   数列猜测
PartIII  5min    (不记得多少题)Ques   数学计算
PartIV 15min    15Ques    矩阵排列

每部分单独发卷,卷子第一页是样板题。没说开始考试,不让翻页。
时间到了就收走卷子,但是IPAT的答题卡是在最后所有答完再收。

答题方法,选哪个就在哪个地方画叉,一共有ABCDE五个选项。
题型和网上历年的题目一样,稍后做了一个总结。
记分方法:I和IV打错不扣分,II和III打错倒扣分


第二部分:技术卷,答题时间是一个小时,有ABC三套卷子。
熟悉JAVA的选做AC,熟悉C++的选做BC。

题型为单选和多选,每题分值不同,做错不扣分,多选选不全得一半分。
我答的是BC卷,B卷全考C++,多为读程序选结果,类,字符串,指针之类的。
C卷什么都考,很细,UML、数据结构。。。。。


IPAT总结

1:
E D C B A
C A D E B
A D B C E
B E D A C
D C A E B
Start 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?

 

答案:C

解析:根据题意,从第5列第4个字母开始,在矩阵元素外沿顺时针方向走,在第2E字母和第2B字母之间的第二个字母应该为C,如图所示:


2:
A B 2 C 3
1 1 B 3 D
A 1 B C 4
5 A 5 2 B
E 5 D 2 C
In the row that has 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?

 

答案:C

 

解析:根据题意:(1)字母比数字多的行有第1行、第3行、第5行;(2)数字只被1个字母隔开的行只有第1行;(3)在第1行中,从右往左数,在第2个数字(即2)之前的字母应该为C

这道题的关键是找出题干中要求的那一行,其中最后一个条件:这一行的数字之和要小于第二列的数字之和(即1+1+5=7)可作为排除第5行的依据。


3:
E D C B A
C A D E B
A D B C E
B E D A C
D C A E B
If Row 4 were reversed, what letter would be above E in Row 5?

 

答案:E

解析:如果将第4行的字母倒转,则第4行变为:C A D E B,则在第5行字母E的上面的字母就是变化后的低行,从右往左数的第2个字母E

 

 

 

[a href="http://cyinger-smiling_blogbus_com/logs/31766359_html" target=_blank][/a])IBM笔试题(二)

 

PARTIII  数学计算

1.A clerk multiplied a number by ten when it should have been divided by
ten_The ans he got was 100_what should the ans have been?
a:1

2_If Rs20/- is available to pay for typing a research report & typist A produces 42 pages and typist B produces 28 pages_How much should typist A receive?
a:Rs12/-

3_The average salary of 3 workers is 95 Rs. per week. If one earns
Rs.115 and second earns Rs.65 how much is the salary of the 3rd worker.
Ans.105.

4.A 16 stored building has 12000 sq_feet on each floor. Company A rents 7 floors and company B rents 4 floors. What is the number of sq_feet of unrented floor space.
Ans.60000

5. During a given week A programer spends 1/4 of his time preparing flow
chart, 3/8 of his time coding and the rest of the time in debugging the
programs. If he works 48 hours during the week , how many hours did he
spend debugging the program.
Ans. 18.

6. A company installed 36 machines at the beginning of the year. In March
they installed 9 additional machines and then disconnected 18 in August.
How many were still installed at the end of the year.
Ans. 27

7. A man owns 2/3 of the market research beauro business and sells 3/4 of
his shares for Rs. 75000. What is the value of Business.
Ans.150000

8. If 12 file cabinets require 18 feet of wall space, how many feet of wall space will 30 cabinets require?
Ans.45

9.A computer printer produced 176,400 lines in a given day. If the
printer was in operation for seven hours during the day, how many lines did it print per minute?
Ans.420

10. From its total income, A sales company spent Rs.20,000 for advertising, half of the remainder on commissions and had Rs.6000 left.
What was its total income?
Ans.32000

11. On Monday a banker processed a batch of cheques, on Tuesday she
processed three times as many, and on Wednesday she processed 4000
cheques. In the three days, she processed 16000 cheques. How many did
she process on Tuesday?
Ans.9000

12. The cost of four dozen proof machine ribbons and five dozen accouting
machine ribbons was Rs.160/-. If one dozen accounting machine ribbons
cost Rs.20/-, what is the cost of a dozen proof machine ribbons?
Ans_Rs.15

13. If a clerk can process 80 cheques in half an hour, how many cheques
can she process in a seven and one half hour day?
Ans.1200

14. In a library, there are two racks with 40 books per rack. On a given
day, 30 books were issued. What fraction remained in the racks?
Ans.5/8

15. The average length of three tapes is 6800 feet. None of the tapes is
less than 6400 feet. What is the greatest possible length of one of the
other tapes?
Ans.7600

16. A company rented a machine for Rs.700/- a month. Five years later
the treasurer calculated that if the company had purchased the machine
and paid Rs.100/- monthly maintenance charge, the company would have
saved Rs.2000/-. What was the purchase price of the machine?
Ans_Rs.34000

17. Two computers each produced 48000 public utility bills in a day. One
computer printed bills at the rate of 9600 an hour and the other at the
rate of 7800 an hour. When the first computer finished its run, how many
bills did the other computer still have to print?
Ans.9000

18. If a salesman's average is a new order every other week, 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?
Ans.3/4

19. On a given day, a bank had 16000 cheques returned by customers.
Inspection of the first 800 cheques indicated that 100 of those 800 had
errors and were therefore the available immediately for data processing.
On this basis, hwo many cheques would be available immediately for data
processing on that day?
Ans.14000

20. A company figured it needed 37.8 sq_feet of carpot for its reception
room. To allow for waste, it decided to order 20% more material than
needed. Fractional parts of sq_feet cannot be ordered. At Rs.9/- a
sq_feet, how much would the carpet cost?
Ans.
a. Rs.324 b) Rs.405 c) Rs.410 d) Rs.414 e) Rs.685

21. A tape manufacturer reduces the price of his heavy duty tape from
Rs.30/- to Rs.28/- a reel and the price of a regular tape from Rs.24/- to
Rs.23/- a reel. A computing centre normally spends Rs.1440/- a month for
tapes and 3/4 of this is for heavy duty tapes. How much will they save a
month under the new prices?
Ans_Rs.87            132

22. In a team of 12 persons, 1/3 are women and 2/3 are men. To obtain a
team with 20% women how many men should be hired?
Ans.8

23. The dimensions of a certain machine are 48″ X 30″ X 52″. If the size
of the machine is increased proportionately until the sum of its
dimensions equals 156″, what will be the increase in the shortest side?
Ans. 6″

24. In a certain company, 20% of the men and 40% of the women attended
the annual company picnic. If 35% of all the employees are man, what
percent of all the employees went to the picnic?
Ans.33%             21%

25. It cost a college Rs.0.70 a copy to produce a Programme for the
homecoming football game. If Rs.15,000/- was received for advertisements
in the programme, how many copies at Rs.0.50 a copy must be sold to make
a profit of Rs.8000/- ?
Ans. 35000

 

IBM笔试题(三)

[a href="http://cyinger-smiling_blogbus_com/logs/31766541_html" target=_blank][/a]) 

PARTII 数列猜测 没有像考到19,21,那样的,因为只有4分钟20个题。
基本都是18,20,25这样的题。

It consists of number series. In some institutes alphabetical series is given instead of number series. I am having number series so I am sending that. Please go through the alphabetical tests also.
15.  30,28,25,20,34,28,? a:21
16.  4,8,16,32,64,128,? a:256
17.  8,16,24,32,40,48,? a:56
18.  13,11,14,12,15,13,? a:16
19.  6,18,36,108,216,648,? a:1296
20.  4,4,8,8,16,16,? a:32
21.  2,6,18,54,162,486,? a:1458
22.  4,20,35,49,62,74,? a:85
23.  10,18,15,23,20,28,? a:25
24.  4,10,8,14,12,18,? a:16
25   10,15,12,17,14,10,? a:16

个人觉得IBM好好准备下,还是可以考的。下面贴一个常用词汇表,IPAT总结就结束了,希望对大家有所帮助。我就把odd和even记反了,狂晕啊~~~~

clockwise,顺时针                  counterclockwise,逆时针
exchange ,交换                          catercorner,对角线
 diagonal,对角线                       perimeter,周长
rectangle,长方形, 矩形             square, 正方形
volume, 体积                             remainder,余数
prime,质数                                 odd,奇数
even,偶数                                  periphery,外围
 diameter 直径                           radius 半径
fraction 分数                              subtract 减法
cube 立方                                  dimension 维,尺寸,度

 

 

 

IBM笔试题(四)

其他IBM IPAT笔试题

三部分

第一部分 看矩阵题 时间15分钟

Part:                                                         

        本部分计分方法为答对题数乘以1                          

  给你一个矩阵:                       

                         1     a  b  c  d  e                      

                         2     b  c  a  e  d                       

                         3     c  b  e  a  d

                         4     c  e  d  b  a

                         5     e  d  a  c  b

        回答以下问题。

        问:⑴将第一行和第四行交换后,第一行第四个字母下面啲左边啲下面啲右

              边啲字母係?

                a b c d e

            ⑵将所有出现在d左边啲字母从矩阵中删掉。将所有出现在a左边啲c字母

              从矩阵中删掉。如果矩阵中剩低啲字母啲种类啲数目大于3,答案为原

              矩阵中左上方至右下方对角线上出现两次啲字母。如果矩阵中剩低啲字

              母啲种类啲数目小于或者等于3,答案为原矩阵中右上至左下对角线上

              出现4次啲字母。

                a b c d e

                                                                        P4

            ⑶将所有啲a4替换,所有啲d2替换,边一列啲总和最大?

                ①㈠ ②㈡ ③㈢ ④㈣ ⑤㈤

            ⑷从左上字母开始,沿顺时针沿矩阵外围,第四次出现啲字母係以下边个

                a b c d e

            ⑸沿第5列从上到下,接着沿第3列从下到上,接着沿第4列从上到下,接着

              沿第1列从下到上,接着沿第2列从上到下,第一个出现5次啲字母係? 

                ①㈠ ②㈡ ③㈢ ④㈣ ⑤㈤

            ⑷从左上字母开始,沿顺时针沿矩阵外围,第四次出现啲字母係以下边个

                a b c d e

            ⑸沿第5列从上到下,接着沿第3列从下到上,接着沿第4列从上到下,接着

              沿第1列从下到上,接着沿第2列从上到下,第一个出现5次啲字母係?

                a b c d e

                (请停止作答,等待提示翻到下一页)

第二部分:英文字母排序 时间25

个人心得:先把26个字母写一排在纸上,容易找规律些。可惜做到一半采用此法。

题信大至是:aabbcc  选下一个为d。当然有的不这么简单,有时跳了好多个,也有向前

或向后跳着的规律。所以先把26个字母写一排在纸上,容易找归率些。

第三部分:数学题时间35

繁琐的数学,最好不用计算器(只用了两次计算器),大致估算就可,这样节约时间

可惜还是没做完。

 

 

[a href="http://cyinger-smiling_blogbus_com/logs/31767425_html" target=_blank][/a]) IBM笔试题(五)

1. 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
? 30.12
(d) 32.65
(e) none of these
2. In A,B,C are having some 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.
(i) If x,y,z are the marbles initially with A,B,C respectively.
Then the number of marbles B have at the end
(a) 2(x-y-z)
(b) 4(x-y-z)
? 2(3y-x-z)
(d) x + y-z
Ans. ?
(ii) If the total number of marbles are 72, then the number of marbles with
A at the
starting
(a) 20
(b) 30
? 32
(d) 39
Ans. (d)
3. If a car starts from A towards B with some velocity.
Due to some problem in 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 ofter 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 distance between A and
B in km
Ans. 20 & 130.           25 & 105
4. 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.
5. Ten questions on analogies.
eg: chief : tribe :: governer : state
epaulette : shoulder :: tiara : head
guttural : throat :: gastric : stomach
inept : clever :: languid : active
knife : butcher ::
hammer : carpenter ::
7. 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 COBAL is taught prior to that
BINO, FIFO can never be taught in single module
languages are BASIC, WORD STAR, WORD PERFECT, FORTRAN, COBAL, BINO,
FIFO, LOTUS, C
i) If word star is in 3rd month , what could be in 6th month.
ii) If COBAL is in the 2nd month and BINO in 6th month. FORTRAN will be
taught in
which month.
8. In a class, except 18 all are above 50 years.
15 are below 50 years of age. How many people are there
(a) 30
(b) 33
? 36
(d) none of these.
Ans. (d)
9. A square plate of some size is cut at four corners. Equal squares of the
same size are
cut and is formed as open box.
If this open box carries 128 ml of oil. What is the size of the side of the
plate?
(a) 17
(b) 14
? 13
(d) None of these
10. In a square, all the mid points are joined. The inner square is shaded.
If the area of the square is A, what is the area of the shaded area?
11. Two questions on basic angles i.e given a circle, a few chords or
diameter is drawn
etc.
12. If the follwoing statements are given
@(a,b)= (a+b)/2
/(a,b)= a/b
*(a,b)= ab
If a=1, b=2 then find
i) /(a,(@(a,b),*(a,b)))
ii) */(a,@(*(a,b)))
13. If the follwoing statements are given
(x#y) = x + y- xy
(x*y) = (x + y)/2
i) Find the values of x, y will satisfy this equation (x#y)#(x*y) < (x#y)
ii) Find the values of x, y will satisfy this equation (a*b)#(b*c)<
(a#b)*(b*c)

====================
1.

E D C B A
C A D E B
A D B C E
B E D A C
D C A E B

Start 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.

A B 2 C 3
1 1 B 3 D
A 1 B C 4
5 A 5 2 B
E 5 D 2 C

In the row that has 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?

4_If a salesman's average is a new order every other week, 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?

5.在房里有三盏灯,房外有三个开关,在房外看不见房内的情况,你只能进门一次,你用什么方法来区分那个开关控制那一盏灯.

6.一个粗细均匀的长直管子,两端开口,里面有4个白球和4个黑球,球的直径、两端开口的直径等于管子的内径,现在白球和黑球的排列是wwwwbbbb,要求不取出任何一个球,使得排列变为bbwwwwbb。

7.一只蜗牛从井底爬到井口,每天白天蜗牛要睡觉,晚上才出来活动,一个晚上蜗牛可以向上爬3尺,但是白天睡觉的时候会往下滑2尺,井深10尺,问蜗牛几天可以爬出来?

8.在一个平面上画1999条直线最多能将这一平面划分成多少个部分?

9.在太平洋的一个小岛上生活着土人,他们不愿意被外人打扰,一天,一个探险家到了岛上,被土人抓住,土人的祭司告诉他,你临死前还可以有一个机会留下一句话,如果这句话是真的,你将被烧死,是假的,你将被五马分尸,可怜的探险家如何才能活下来?

10.怎样种四棵树使得任意两棵树的距离相等。

11.27个小运动员在参加完比赛后,口渴难耐,去小店买饮料,饮料店搞促销,凭三个空瓶可以再换一瓶,他们最少买多少瓶饮料才能保证一人一瓶?

12.有一座山,山上有座庙,只有一条路可以从山上的庙到山脚,每周一早上8点,有一个聪明的小和尚去山下化缘,周二早上8点从山脚回山上的庙里,小和尚的上下山的速度是任意的,在每个往返中,他总是能在周一和周二的同一钟点到达山路上的同一点。例如,有一次他发现星期一的8点30和星期二的8点30他都到了山路靠山脚的3/4的地方,问这是为什么?

13.有两根不均匀分布的香,每根香烧完的时间是一个小时,你能用什么方法来确定一段15分钟的时间?
================
1. 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


2. In A,B,C are having some 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.

(i) If x,y,z are the marbles initially with A,B,C respectively.
    Then the number of marbles B have at the end

(a) 2(x-y-z)
(b) 4(x-y-z)
(c) 2(3y-x-z)
(d)  x + y-z

Ans. (c)


(ii) If the total number of marbles are 72, then the number of marbles with
A at the starting

(a) 20
(b) 30
(c) 32
(d) 39

Ans. (d)


3. If a car starts from A towards B with some velocity.
    Due to some problem in 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 ofter 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 distance between A
and B in km

Ans. 20 & 130.


4. 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.

5. Ten questions on analogies.

eg: chief : tribe :: governer : state
     epaulette : shoulder :: tiara : head
     guttural : throat :: gastric : stomach
     inept : clever :: languid : active
     knife : butcher ::
     hammer : carpenter ::   


6. The values of shares (in Rs).of A, B and C from January to June are as
follows.

Month
A
B
C

January
30
60
80

February
35
65
85

March
45
75
65

April
40
75
82

May
55
75
85

June
50
75
80
i) During this period which share has undergone maximium fluctuation?
ii) In which month it is possible to buy B and C selling A?
iii) In which month the share values are very low?
iv) By purchasing one share of A and 4 each of B and C in the beginning of
the period,
     when shoudl these be sold to get maximum profit?
7. 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 COBAL is taught prior to that

BINO, FIFO can never be taught in single module

languages are BASIC, WORD STAR, WORD PERFECT, FORTRAN, COBAL, BINO, FIFO,
LOTUS, C

i) If word star is in 3rd month , what could be in 6th month.
ii) If COBAL is in the 2nd month and BINO in 6th month. FORTRAN will be
taught in which month.


8. In a class, except 18 all are above 50 years.
    15 are below 50 years of age. How many people are there

(a) 30
(b) 33
(c) 36
(d) none of these.

Ans. (d)
9. A square plate of some size is cut at four corners. Equal squares of the
same size are cut and is formed as open box.
    If this open box carries 128 ml of oil. What is the size of the side of
the plate?

(a) 17
(b) 14
(c) 13
(d) None of these
10. In a square, all the mid points are joined. The inner square is shaded.
      If the area of the square is A, what is the area of the shaded area?

11. Two questions on basic angles i.e given a circle, a few chords or
diameter is drawn etc.
12. If the follwoing statements are given

@(a,b)= (a+b)/2

/(a,b)= a/b

*(a,b)= ab

If a=1, b=2 then find

i) /(a,(@(a,b),*(a,b)))

ii) */(a,@(*(a,b)))

16. In UNIX a files i-node ......?

Ans. Is a data structure that defines all specifications of a file like the
file size,
        number of lines to a file, permissions etc.
17. The UNIX shell ....

a) does not come with the rest of the system
b) forms the interface between the user and the kernal
c) does not give any scope for programming
d) deos not allow calling one program from with in another
e) all of the above

Ans. (b)
18. enum number { a=-1, b= 4,c,d,e}
      What is the value of e ?

(a) 7
(b) 4
(c) 5
(d) 15
(e) 3
19. The very first process created by the kernal that runs till the kernal
process is halts is

a) init
b) getty
c) both (a) and (b)
d) none of these

Ans. (a)
20. Output of the following program is

main()
{int i=0;
for(i=0;i<20;i++)
{switch(i)
case 0:i+=5;
case 1:i+=2;
case 5:i+=5;
default i+=4;
break;}
printf("%d,",i);
}
}

a) 0,5,9,13,17
b) 5,9,13,17
c) 12,17,22
d) 16,21
e) Syntax error

Ans. (d)
21. What is the ouptut in the following program

main()
{char c=-64;
int i=-32
unsigned int u =-16;
if(c>i)
{printf("pass1,");
if(c<u)
printf("pass2");
else
printf("Fail2");
}
else
printf("Fail1);
if(i<u)
printf("pass2");
else
printf("Fail2")
}

a) Pass1,Pass2
b) Pass1,Fail2
c) Fail1,Pass2
d) Fail1,Fail2
e) None of these

Ans. (c)
22. In the process table entry for the kernel process, the process id value
is

(a) 0
(b) 1
(c) 2
(d) 255
(e) it does not have a process table entry

Ans. (a)
23. Which of the following API is used to hide a window

a) ShowWindow
b) EnableWindow
c) MoveWindow
d) SetWindowPlacement
e) None of the above

Ans. (a)
24. What will the following program do?

void main()
{
int i;
char a[]="String";
char *p= ** ew Sring";
char *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)",a,p);
free(p);
free(a);
} //Line number 15//

a) Swap contents of p & a and print:(New string, string)
b) Generate compilation error in line number 8
c) Generate compilation error in line number 5
d) Generate compilation error in line number 7
e) Generate compilation error in line number 1

Ans. (b)
25. In the following code segment what will be the result of the function,

value of x , value of y
{unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf( ** ot same");
}

a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT

Ans. (a)
26. 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 calender is executed

a) The calendar for May 1997 will be printed on screen
b) The calendar for Oct 1997 will be printed on screen
c) The calendar for the current month( whatever it is) will be printed
d) Nothing will get printed on screen
e) An error massage will be printed
27. What will be the result of the following program ?

char *gxxx()
{static char xxx[1024];
return xxx;
}

main()
{char *g="string";
strcpy(gxxx(),g);
g = gxxx();
strcpy(g,"oldstring");
printf("The string is : %s",gxxx());
}

a) The string is : string
b) The string is :Oldstring
c) Run time error/Core dump
d) Syntax error during compilation
e) None of these

Ans. (b)
28. 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));
}

main()
{char *g="String";
myalloc(g,20);
strcpy(g,"Oldstring");
printf("The string is %s",g);
}

a) The string is : String
b) Run time error/Core dump
c) The string is : Oldstring
d) Syntax error during compilation
e) None of these
29. Which of the following function is used to repaint a window immediately

a) Sendmessage(hWnd,WM_PAINt,......)
b) InvalidateRect(.......)
c) MoveWindow
d) WM_COPY
e) None
30. Which function is the entry point for a DLL in MS Windows 3.1

a) Main
b) Winmain
c) Dllmain
d) Libmain
e) None

Ans. (b)
31. The standard source for standard input, standard output and standard
error is

a) the terminal
b) /dev/null
c) /usr/you/input, /usr/you/output/, /usr/you/error respectively
d) None

Ans. (a)
32. What will be the result of the following program?

main()
{char p[]="String";
int x=0;
if(p=="String")
{printf("Pass 1");
if(p[sizeof(p)-2]=='g')
printf("Pass 2");
else
printf("Fail 2");
}
else
{
printf("Fail 1");
if(p[sizeof(p)-2]=='g')
printf("Pass 2");
else
printf("Fail 2");
}
}

a) Pass 1, Pass 2
b) Fail 1, Fail 2
c) Pass 1, Fail 2
d) Fail 1, Pass 2
e) syntax error during compilation
33. Which of the choices is true for the mentioned declaration ?

const char *p;
and
char * const p;

a) You can't change the character in both
b) First : You can't change the characterr & Second : You can;t change the
pointer
c) You can't change the pointer in both
d) First : You can't change the pointer & Second : You can't chanage the
character
e) None
34. The redirection operators > and >>

a) do the same function
b) differ : > overwrites, while >> appends
c) differ : > is used for input while >> is used for output
d) differ : > write to any file while >> write only to standard output
e) None of these

Ans. (b)
35. The command grep first second third /usr/you/myfile

a) prints lines containing the words first, second or third from the file
/usr/you/myfile
b) searches for lines containing the pattern first in the files
second, third, and /usr/you/myfile and prints them
c) searches the files /usr/you/myfiel and third for lines containing the
words first or second and prints them
d) replaces the word first with the word second in the files third and
/usr/you/myfile
e) None of the above

Ans. (b)
====================
1.有3台复印机(copier),平均每台每周工作42小时,每台每周最少工作35小时,问一

台复印机每周最多会工作多少小时?
  42*3 - 35*2 =56
2.在一个长11 meters,宽6 meters的房间里,铺上10 centimeters厚的水泥,问需要多

少水泥?
  11*6*0.1=6.6 cubic meters
3.某公司有两座办公楼,一天,第一座楼20%的复印机和第二座楼40%的复印机需要进
行维护,如果第一座楼拥有公司60%的复印机,问这天在维护的复印机是多少?
   20% * 60% + 40% * (1 - 60%) = 28%
4.要在一个接待室(reception room)里铺瓷砖,接待室的长18 meters,宽12 meters,
同时要修一条从大厅(hall)到楼梯(stair way)的通道(不铺瓷砖)占地50 square
meters,允许铺设时有35%的浪费(wastage),1平方米瓷砖的价格是10美元,
问大约(approximately)要花多少钱?
   (18 * 12 - 50) * 135% * 10 = 2,200
5.某公司要做一个车辆更新,有2种车型,一种是X(忘了,用X代替),一种是van,新X每
liter油走20公里,新van每liter油走15公里,旧X每liter油走15公里,旧van每liter油

走12公里。现在要开15000公里,其中有60%由van来承担,问更新后将节省多少油?
  (15000 * 60% / 12 + 15000 * 40% / 15) - (15000 * 60% / 15 + 15000 * 40% /
20) = 250
6.有2个行政打字员(administrative typist),A的速度是B的1 1/4 times,现在要打7
2页文件,问快的那个人打了多少页?
  72* 5/9 = 40
7.有一个呼叫中心,星期二的calls比星期一的1/2还多1/3,星期一和星期二的calls的
和是120,问星期二的calls是多少?
  48
8.有一个软件公司,1/2的人是系统分析员,2/5的人是软件工程师,有1/4的人两者都是

,问有多少人两者都不是?
  1 - 1/2 - 2/5 + 1/4= 0.35
9.有一个crate要做等比例(proportionally)的缩放,为了能够便于运输(shipment),c
rate的尺度(dimension)是72,96,48,如果缩放到三个尺度的和是200,问最长的那个尺
度要缩多少?
  96 * (1 - 200 / 216) = 64 / 9 = 7.1
10. 有一个矩形,长是宽的1 1/3 times,如果把每边增加1,面积将增加85,问长是多
少?
  48
11.有一个printer,一小时能打12,000页,早上8:30开始打印,中途被打断2次,每次5
分钟,13:15打完,问总共打了多少页?
  55,000

==========================================================

个人感觉IBM技术题考得很细,比如考数据结构,会给定一种应用情况需要怎样插入数据,在哪删除,如何查找问你选哪种数据结构,如顺序存储、单链表、双向链表、循环链表最合适;考算法复杂度,如快速查找的平均查找次数;考基本概念,如UML是什么,或者画一个UML的图,问你是引用,关联还是什么。C++主要考程序执行结果,编译错误等等。

在做C卷的时候,感觉自己读题速度太慢了,因为不习惯英文的技术术语,需要反应下是什么意思。我在做一个进程调度的题时,就花了很长时间读题,后来才反应过来是考各种算法,短作业,优先级调度,等等。很多术语换做英文就不认识了,所以准备考试的时候不防把常用的专业英文术语准备下,做一些这类英文题。

[a href="http://cyinger-smiling_blogbus_com/logs/31767524_html" target=_blank][/a]) 

 

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册 QQ登录

x
+10
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册 QQ登录

本版积分规则

关闭

站长推荐上一条 /1 下一条

应届生微信小程序|应届生求职网YingJieSheng.COM ( 沪ICP备12015550号-13 )

GMT+8, 2024-5-18 12:43

Powered by Discuz!

© 2001-2012 Comsenz Inc.

快速回复 返回顶部 返回列表