
笔试面试
文章平均质量分 74
hanlin1985
求职中。。。。。。
展开
-
sony的2道笔试题
1、给出一个数组 0 1 1 1 2 1 2 1 3 3 1 3 1 4 6 4 1 ..... ..... 9 1..........1程序代码如下:#include using namespace std;int main(){ int N; cout cin>>N; int **p=new int*[N+1]; p[0]=new int[2原创 2008-09-23 16:11:00 · 555 阅读 · 0 评论 -
C/C++笔试题(7)
1 #include “filename.h”和#include 的区别?答:#include “filename.h”表明该文件是用户提供的头文件,查找该文件时从当前文件目录开始;#include 表明这个文件是一个工程或标准头文件,查找过程会检查预定义的目录。 2 头文件的作用是什么?答:一、通过头文件来调用库功能。在很多场合,源代码不便(或不准)向用户公布,转载 2008-10-10 10:58:00 · 3893 阅读 · 0 评论 -
C/C++笔试题(12)
香港电信笔试题 1. Based on your understanding of the following java related technologies: servlets, JavaServerPage, JavaBeans, Enterprise JavaBeans, how do you think these technologies are work t转载 2008-10-10 11:04:00 · 4782 阅读 · 0 评论 -
C/C++笔试题(6)
1、完成程序,实现对数组的降序排序#include void sort( );int main(){ int array[]={45,56,76,234,1,34,23,2,3}; //数字任//意给出 sort( ); return 0;}void sort(转载 2008-10-10 10:55:00 · 2011 阅读 · 0 评论 -
C/C++笔试题(9)
Intel笔试面试题目 智力题1.每天中午从法国塞纳河畔的勒阿佛有一艘轮船驶往美国纽约,在同一时刻纽约也有一艘轮船驶往勒阿佛。已知横渡一次的时间是7天7夜,轮船匀速航行,在同一航线,轮船近距离可见。 请问今天中午从勒阿佛开出的船会遇到几艘从纽约来的船? 2.巴拿赫病故于1945年8月31日。他的出生年份恰好是他在世时某年年龄的平方,问:他是哪年出生的? 答案: 设他在转载 2008-10-10 11:00:00 · 1860 阅读 · 0 评论 -
C/C++笔试题(11)
(慧通)1 写出程序把一个链表中的接点顺序倒排typedef struct linknode{int data;struct linknode *next;}node;//将一个链表逆置node *reverse(node *head){node *p,*q,*r;p=head;q=p->next;while(q!=NULL){ r=q->next; q->next=p; p=q; q=转载 2008-10-10 11:04:00 · 3128 阅读 · 0 评论 -
C/C++笔试题(1)
1.多态类中的虚函数表是Compile-Time,还是Run-Time时建立的?答案:虚拟函数表是在编译期就建立了,各个虚拟函数这时被组织成了一个虚拟函数的入口地址的数组.而对象的隐藏成员--虚拟函数表指针是在运行期--也就是构造函数被调用时进行初始化的,这是实现多态的关键. 2.将一个 1M -10M 的文件,逆序存储到另一个文件,就是前一个文件的最后一个 字符存到新文件的第一转载 2008-10-10 10:36:00 · 2499 阅读 · 2 评论 -
C/C++笔试题(4)
1. 写出程序运行结果int sum(int a){ auto int c=0; static int b=3;c+=1;b+=2;return(a+b+C);}void main(){ int I;int a=2;for(I=0;I{ printf("%d,", sum(a));}} 2. int func(int a)转载 2008-10-10 10:44:00 · 2142 阅读 · 1 评论 -
C/C++笔试题(13)
1.下面的代码输出是什么,为什么? void foo(void) { unsigned int a = 6; int b = -20; (a+b>6)?puts(">6"):puts("为打印函数 }输出 >6.就是考察隐式转换.int型变量转化成unsigned int, b成了正数.转载 2008-10-10 11:05:00 · 1507 阅读 · 0 评论 -
C/C++笔试题(3)
-1.有双向循环链表结点:(华为面试题)typedef struct node{ int date; struct node *front,*next;}_Node;有两个双向循环链表A,B,知道其头指针为:pHeadA,pHeadB,请写一函数将两上链表中date值相同的结点删除参考算法: 1.取出A的一个元素d 2.收集B中有相同元转载 2008-10-10 10:43:00 · 2347 阅读 · 2 评论 -
C/C++笔试题(10)
戴尔 I.Choose one question and write down the trouble shooting steps in English ( 4-5 steps ) 1.Customer report his computer cannot start after sudden power lost. How will you trouble shoot and f转载 2008-10-10 11:01:00 · 1690 阅读 · 0 评论 -
面试英语经典问答
Q: Can you sell yourself in two minutes? Go for it. (你能在两分钟內自我推荐吗?大胆试试吧!) A: With my qualifications and experience, I feel I am hardworking, responsible and diligent in any project I undertake. Your o转载 2008-09-28 09:49:00 · 839 阅读 · 0 评论 -
2009 morgan Stanley校园招聘部分笔试题
今天参加了morgan stanley的笔试,记了几个题目下来:1、What a stored prodedure is and how it is used?2、What is the difference between clustered index and non-clustered index?3、What is the expected number of coin tos原创 2008-10-18 19:52:00 · 1266 阅读 · 0 评论 -
百度09年校园招聘交大考点的一道题
找出下面程序中的错误,并改正:#include #include #include using namespace std;class Test{public: string s;};main(){ Test *t=new Test[3]; ofstream output("file",ofstream::binary); t原创 2008-10-21 14:13:00 · 1175 阅读 · 0 评论 -
c/c++笔试题
微软亚洲技术中心的面试题!!!1.进程和线程的差别。线程是指进程内的一个执行单元,也是进程内的可调度实体.与进程的区别:(1)调度:线程作为调度和分配的基本单位,进程作为拥有资源的基本单位(2)并发性:不仅进程之间可以并发执行,同一个进程的多个线程之间也可并发执行(3)拥有资源:进程是拥有资源的独立单位,线程不拥有系统资源,但可以访问隶属于进程的资源. (4)系统开销:转载 2008-09-28 10:09:00 · 45074 阅读 · 7 评论 -
堆与栈,静态变量和全局变量的区别
对和栈的主要的区别由以下几点: 1、管理方式不同; 2、空间大小不同; 3、能否产生碎片不同; 4、生长方向不同; 5、分配方式不同; 6、分配效率不同; 管理方式:对于栈来讲,是由编译器自动管理,无需我们手工控制;对于堆来说,释放工作由程序员转载 2008-10-23 19:54:00 · 5043 阅读 · 1 评论 -
C/C++笔试题(2)
1.请完成以下题目。注意,请勿直接调用 ANSI C 函数库中的函数实现。 a)请编写一个 C 函数,该函数给出一个字节中被置 1 的位的个数,并请给出该题的至少一个不同解法。第一种unsigned int TestAsOne0(char log) { int i; unsigned int num=转载 2008-10-10 10:41:00 · 1940 阅读 · 2 评论 -
C/C++笔试题(5)
1、写一算法检测单向链表中是否存在环(whether there is a loop in a link list),要求算法复杂度(Algorithms complexity是O(n)) 并只使用常数空间(space is O(c)). 注意,你只知道一个指向单向链表头的指针。链表的长度是不定的,而且环出现的地方也是不定的,环有可能在头,有可能在中间。而且要求是检测, 不能破坏环的转载 2008-10-10 10:46:00 · 1350 阅读 · 0 评论 -
C/C++笔试题(8)
微软智力题 1.烧一根不均匀的绳子,从头烧到尾总共需要1个小时,问如何用烧绳子的方法来确定半小时的时间呢? 2.10个海盗抢到了100颗宝石,每一颗都一样大小且价值连城。他们决定这么分: (1)抽签决定自己的号码(1~10); (2)首先,由1号提出分配方案,然后大家表决,当且仅当超过半数的人同意时,按照他的方案进行分配,否则将被扔进大海喂鲨鱼; (3)如果1号死后,再由2转载 2008-10-10 10:59:00 · 1361 阅读 · 0 评论 -
sybase2009校园招聘笔试题
PartI:1、 What is the difference between deadlock and starving?2、 Please list some typical page replacement algorithms. Introduce the design and performance respectively.3、 Please indicate the原创 2008-12-28 20:46:00 · 1100 阅读 · 0 评论