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 itcal 10 1997
The file /yourhome/calender has the following line in itcal 5 1997If 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=\strcpy(gxxx(),g); g = gxxx();
strcpy(g,\
printf(\}
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=\myalloc(g,20);
strcpy(g,\printf(\}
a) The string is : String
b) Run time error/Core dump c) The string is : Oldstring
21
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[]=\int x=0; if(p==\{printf(\if(p[sizeof(p)-2]=='g') printf(\else
printf(\} else {
printf(\
if(p[sizeof(p)-2]=='g') printf(\else
printf(\} }
a) Pass 1, Pass 2 b) Fail 1, Fail 2 c) Pass 1, Fail 2
22
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 characters & 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 filessecond, 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)
====================
本帖隐藏的内容需要回复才可以浏览
==========================================================
个人感觉IBM技术题考得很细,比如考数据结构,会给定一种应用情况需要怎样插入数据,在哪删除,如何查找问你选哪种数据结构,如顺序存储、单链表、双向链表、循环链表最合适;考算法复杂度,如快速查找的平均查找次数;考基本概念,如UML是什么,或者画一个UML的图,问你是引用,关联还是什么。C++主要考程序执行结果,编译错误等等。 在做C卷的时候,感觉自己读题速度太慢了,因为不习惯英文的技术术语,需要反应下是什么意思。我在做一个进程调度的题时,就花了很长时间读题,后来才反应过来是考各种算法,短作业,优先级调度,等等。很多术语换做英文就不认识了,所以准备考试的时候不防把常用的专业英语词汇
前段时间特别有欲望要找份暑期实习的工作,于是就做了份简历投了IBM公司的蓝色计划项目(其实这个项目只招收08年毕业的学生,我在我简历上做了点小小的手脚,嘿嘿)于是有幸参加了IBM公司的笔试。
笔试分三部分,数据分析,数字推理,数值运算(三部分名字记不太清楚了,暂时先这
23
样叫吧),时间分别为13分钟,4分钟,15分钟,题量为15,15,20…………(好像应该是,记不太清了),各部分卷子是分开发的,全英文的题目,都是选择题,五选一(只有牛人才做得完题目)
数据分析就是给你个由各种符号组成的矩阵,问你对它进行行列的翻转平移后某行某列是什么符号,或是在对角线上某符号出现的次数之类的问题。我坐在边角的位置,等卷子发到我手里就已经过了2分钟了,又弄了半天才看懂题目要求,全英文的题目一会儿就读晕了,好容易做了道题,一看题目旁边的标注 “sample”……样题……气的我差点没吐血……这部分我做得最差,好像就做了一半的题目,后面的全都乱涂卡涂上去了
数字推理其实就是给你一组数,让你找出它们的规律然后推出下一个数,这部分题目比较简单,不过题量太大,真正做题目的时间差不多就只有3分钟(谁让我的位置差),我做了11道,个人感觉还比较良好
数值运算考得就好像是小学的应用题,只不过是换成了英文题目,题目比较简单,翻译成中文初中文化水平的人都会做,只是题量很大,根本没时间列方程算,只能用比较巧的算法去估算一下答案,这部分我也只做了13道,还有几道算的和选项不同,随便蒙的答案,看我斜前方的一女生超猛,都说要收卷了还在写,好像快做完了的样子,心中赞叹不已……
总之,IBM的笔试强调的是你思维的反应速度,希望我的这点经历能给以后要参加这个实习生项目的学弟学妹们一点小小的帮助
IBM的笔试有一个题库,就是IBM全球统一使用的数据处理测试(data procession)。最初几年是用英文测试的,近年来开始翻译成了中文。公司认为这套试题的设计就是为了考逻辑推理的,假如用英文,可能对一个人逻辑推理能力的判定就不够客观和完全,所以就把它翻译成了中文,笔试大概有四五十分钟。
IBM笔试的设计思路主要是考人的逻辑推理能力,对于编程之类的工作,公司比较倾向做笔试。笔试并不是过关的惟一条件,只是作为参考,公司会看应聘者的经验,再加上他面试的结果,综合起来考虑他是否适合这个职位。但是在对大学生的招聘中,公司则希望他有一定的逻辑推理能力,所以笔试会常用一些,作为一个初选。比如,从字母排列中找规律,从图形排列中找规律,数值(主要是会计计算)计算。
分三个部分:
第一部分25分钟35道题。就是给你一个5×5的矩阵,然后开始进行各种稀里糊涂的变换——别紧张,和数学变换无关。然后问你一些诸如在第2行第3个字符上边的字符是什么,很弱智的,就是需要时间,这一部分每题一分,错了不扣分。
第二部分15分钟,40道题。从已给出的字母序列中找到规律,然后将后边的一个字符添上,也是选择题,这一部分和下一部分作对一题1分,错了扣0.25分。
24
第三部分就是计算。可恨不让使用计算器,所以居然草稿上被我密密麻麻写了好多乘除的竖式——小学水平,这部分30分钟25道题。
题型都不难,考的是速度和准确率,
几点建议:
1.每个部分前有3分钟看例题,假如你对题型已经熟悉,可以静静开始了:) 2.带计算器,俺忘记带了,浪费了些时间,搞得最后一部分紧紧巴巴的。 3.2/3两个部分做错都是倒扣0。25,假如你有不少题来不及做的
笔试一共三场,每场时间都不等,根据题型决定,我的那场是一组矩阵题,一组数字序列题,两组数学推理题。一共需要47分钟,是最长的那一类型。
每一组都必须在一定时间内完成,首先是矩阵题,13分钟,共15道。
一共有三个5*5的矩阵,每个矩阵5小题,在我印象中,大概有这样一些:
1,把所有的W替换成2,所有的Y替换成6,所有的X替换成4,哪一行和哪一列的和等于18?
2,把第四列反转,把第2行和第二列替换,第三列第四个下面的数字是什么?
3,把出现了数字2次数最多的那一行的出现的唯一一个字母从矩阵中删掉,它出现在矩阵其他地方的次数减去3出现的次数和4出现的次数减一是多少?
4,把每一个出现在数字2和3左边的字母全部与他们右边的数字交换,出现在数字最多的那一列的两个字母是?
都是这一类型的题,换来换去,非常麻烦,最后我没有做完,仅仅做到第11题,前面还不能保证都对。但是因为这一大题答错不扣分,最后我想起这一点的时候就把后面4个空着的都填上了B,看运气了。
第二部分是数字序列题,4分钟,共20题,题目简单得要命,全是一个规律:连续几个数字,跳一个,再连续几个数字,再跳…… 举几个例子:
3,4,1,1,5,6,1,1,?
15,16,7,8,17,18,9,?
25