微软笔试态度范文

2024-09-04

微软笔试态度范文(精选5篇)

微软笔试态度 第1篇

数学篇 题目如下,希望大家解个答案出来

1、1000!有几位数,为什么

2、F(n)=1 n>8 n<12

F(n)=2 n<2

F(n)=3 n=6

F(n)=4 n=other

使用+ - * /和sign(n)函数组合出F(n)函数

sign(n)=0 n=0

sign(n)=-1 n<

sign(n)=1 n>0

3、编一个程序求质数的和例如F(7)=1+3+5+7+11+13+17=58

辑考题 此题源于1981年柏林的德国逻辑思考学院,98%的测验者无法解题,

前提:

有五间房屋排成一列;所有房屋的外表颜色都不一样;所有的屋主来自不同的国家

;所有的屋主都养不同的宠物;喝不同的饮料;抽不同的香烟。

提示:

英国人住在红色房屋里;瑞典人养了一只狗;丹麦人喝茶;绿色的房子在白色的房

子的左边;绿色房屋的屋主喝咖啡;抽Pall Mall香烟的屋主养鸟;黄色屋主抽Dunhill;

位于最中间的屋主喝牛奶;挪威人住在第一间房屋里;抽Blend的人住在养猫人家的隔壁;

养马的屋主在抽Dunhill的人家的隔壁,

抽Blue Master的屋主喝啤酒;德国人抽Prince;

挪威人住在蓝色房子隔壁;只喝开水的人家住在抽Blend的隔壁。

问:谁养鱼?

五个人来自不同地方,住不同房子,养不同动物,吸不同牌子香烟,喝不同饮料,

喜欢不同食物。根据以下线索确定谁是养猫的人?

1.红房子在蓝房子的右边,白房子的左边(不一定紧邻)

2.黄房子的主人来自香港,而且他的房子不在最左边。

3.吃比萨饼的人≡诎喝矿泉水的人的隔壁?

4.来自北京的人爱喝茅台,住在来自上海的人的隔壁。

5.吸希尔顿香烟的人住在养马的人?右边隔壁。

6.爱喝啤酒的人也爱吃鸡。

7.绿房子的人养狗。

8.爱吃面条的人住在养蛇的人的隔壁。

9.来自天津的人的邻居(紧邻)一个爱吃牛肉,另一个来自成都。

微软笔试态度 第2篇

题目包括数据结构算法数据库软件工程软件测试(2个大题写Test cases 不知道格式怎么写,没写过)

选择题不记得了,不定项选择,偶感觉出的都挺偏。做卷子的`最大感触就是偶英语太差了。

1。全篇公认一个最简单的题目是那个阅读理解,6辆不同款的车,排车位。条件是:(6个车就简写为ABCDEF,车位1~6) Either A not or B is in slot 1. Either B not or C is in slot 6. D, E 不分次序挨着 F, B 不分次序挨着

具体每个问题给个条件,排序,不难。就是不知道偶理解那个Either not or是不是“不是……就是……”的意思。

2。给一个“MS Office Outlook ”的图,让写一个你想要有哪些feature to improve or add. 给你3月时间搞定这个你要如何做。

3。写代码。把一个单链表,按照指定位置逆序。并在code中体现基本错误异常处理之类。

不能再多malloc内存了,可以用temp pointers。还有一个不允许的什么条件没看懂,无碍大雅吧。

eg,

N1->N2->N3->N4->N5->NULL pHEAD = N1;pSTART = N3;返回这个N3->N2->N1->N5-> N4->NULL

eg。N1->N2->N3->N4->N5->NULL pHEAD = N1;pSTART = N5;返回这个N5->N4->N3->N2-> N1->NULL

eg。N1->N2->N3->N4->N5->NULL pHEAD = N1;pSTART = N1;返回这个N1->N5->N4->N3-> N2->NULL

void Wasp(//可以自己加声明变量和局部变量

4。一个矩形函数及其应用的找bug和写Test cases

5。char * strcpy(char* str1, char* str2)//string copy

写Test cases

巨人的态度微软发力移动互联 第3篇

以2013年的数据为例,Android的市场占有率高达75%、iOS的市场占有率为17.3%,而Windows Phone的市场占有率仅为3.2%。虽然在智能操作系统上微软可以算作老三,但这老三与前两名的差距也未免太大了一点。微软也期待在取消25美元(Windows Phone,Windows RT含Office为90美元)的使用授权费后,有更多的厂商愿意选择该系统,让三者间的差距有望缩小。毕竟之前有很多厂商虽然愿意与微软接洽,但是却被卡在了高昂的授权费上。

无论是收购诺基亚,还是免除Windows的授权费,都可以看作是微软针对移动互联网行业的重大战略方针。作为桌面平台的龙头老大,微软终于开始放下身段,并越来越重视移动市场,这次免费也是其全面发力移动互联网行业的信号。不过微软此举来得实在是太晚了一点,在Android与iOS盛行的今天,以免授权费来抢占市场,究竟能够收到多大的成效还未为可知。此外,看似大手笔的免费方式,实际上还是稍显诚意不足—仅为9英寸以下屏幕的产品提供免费授权,无疑是将当前主流的平板电脑产品拒之门外……

微软技术基础笔试题目 第4篇

一个树的深度等于max(左子树深度,右子树深度)+1。可以使用递归实现。

问答

题目: 算术

有一个天平,2克和7克砝码各一个。如何利用天平砝码在三次内将140克盐分成50,90克两份。

问答

题目: 逻辑推理

站在地球上的某一点,向南走一公里,然后向东走一公里,最后向北走一公里,回到了原点。地球上有多少个满足这样条件的点?

问答

题目: 逻辑推理

有三个水果篮。其中一个里面只有苹果,一个里面只有橘子,另外一个既有苹果又有橘子。每个水果篮上都有题目,但题目都是错的。如何检查某个水果篮中的一个水果,然后正确标注每个水果篮?

问答

题目: 算术

不利用浮点运算,在屏幕上画一个圆 (x**2 + y**2 = r**2,其中 r 为正整数)。

问答

题目: 算法

将一个句子按单词反序。比如 “hi baidu com mianshiti”,反序后变为 “mianshiti com baidu hi”。

问答

题目: 算法

计算n bit的整数中有多少bit 为1

问答

题目: 算法

:快速求取一个整数的7倍

问答

题目: 算法,算术

判断一个数是不是2的n次幂

问答

题目: 逻辑推理,概率

在三角形的三个顶点上各有一只蚂蚁,它们向另一个顶点运动,目标随机(可能为另外两个顶点的任意一个)。问三只蚂蚁不相撞的概率是多少?

问答

题目: 算法,C/C++,Java,PHP,Android,IOS

给定一个长度为N的数组,其中每个元素的取值范围都是1到N。判断数组中是否有重复的数字。(原数组不必保留)

问答

题目: 逻辑推理,智力题

一块长方形的蛋糕,其中有一个小长方形的空洞(角度任意)。使用一把直刀,如何一刀将蛋糕切成相等的两份?

问答

题目: 算法

一个没有排序的链表,比如list={a,l,x,b,e,f,f,e,a,g,h,b,m},请去掉重复项,并保留原顺序,以上链表去掉重复项后为newlist={a,l,x,b,e,f,g,h,m},请写出一个高效算法(时间比空间更重要)。

问答

题目: 智力题

小明一家过一座桥,过桥时是黑夜,所以必须有灯。现在小明过桥要1秒,小明的弟弟要3秒,小明的爸爸要6秒,小明的妈妈要8秒,小明的爷爷要12秒。每次此桥最多可过两人,而过桥的速度依过桥最慢者而定,而且灯在点燃后30秒就会熄灭。问:小明一家如何过桥?

问答

题目: 算法

微软暑期实习招聘笔试题目 第5篇

总共20道选择题,全部不定项,总分100分,时间75分钟。去年时间是90分钟的。。。。

1~8,做对3分,半对2分,错误-2分,不做0分

9~18,做对5分,半对3分,错误-3分,不做0分

19~20,做对13分,半对7分,错误-7分,不做0分

1、关于支持不定数量参数的方法(supportvariable parameters)有哪些?

(cdecl,stdcall,pascal,fastcall)

cdecl只有这一个。

2、以下代码输出的结果是:

[cpp] view plaincopyprint?

1. class A

2. {

3. public:

4. virtual void f

5. {

6. cout<<“A::f”<

7. }

8. void f() const

9. {

10. cout<<“A::f const”<

11. }

12. };

13.

14. class B:public A

15. {

16. public:

17. virtual void f()

18. {

19. cout<<“B::f”<

20. }

21. void f() const

22. {

23. cout<<“B::f const”<

24. }

25. };

26.

27. void g(const A* a)

28. {

29. a->f();

30. }

31.

32. int main()

33. {

34. A *b = new B();

35. b->f();

36. g(b);

37. return 0;

38. }

答案为:

[cpp] view plaincopyprint?

1. B::f A::f const

第一个b->f()为动态绑定,输出B::f没问题,第二个,目前还没弄明白,

感觉是由于函数g的参数有const,所以调用成员函数也是调用const版本,但是const版本的不是虚函数,不存在动态绑定,所以输出A::f const。

3、linked list和array的区别,链表与数组的区别。

What is the difference between a linked list and an array?(3 Points)

A. Search complexity when both are sorted

B. Dynamically add/remove

C. Random access efficiency

D. Data storage type

4、线程Thread和进程Process的区别(下列关于...和...说法正确的是?)好像是指明了windows下的。

About the Thread and Process in Windows, which description(s) is(are) correct:(3 Points)

A. One application in OS must have one Process, but not a necessary to have one Thread

B. The Process could have its own Stack but the thread only could share the Stack of its parent Process

C. Thread must belongs to a Process

D. Thread could change its belonging Process

5、更奇葩的:

[cpp] view plaincopyprint?

1. int i=10,j=10;

2. i = i++;

3. j = ++j;

4. cout<

问输出结果:

使用g++编译,直接警告这是未定义的。。。。。

当然也给出了结果11,11.

使用vc编译,没有任何警告,结果也是11,11.

6、给一个二维数组,求数组的[x][y]是多少(x,y是确定的数字)?Java/C#下的

For the following Java or C# code(3 Points)

[java] view plaincopyprint?

1. int[][] myArray3 =

2. new int[3][]{

3. new int[3]{5,6,2},

4. new int[5]{6,9,7,8,3},

5. new int[2]{3,2}};

What will myArray3[2][2] returns?

A. 9

B. 2

C. 6

D. overflow

答案是D越界。

7、关于const int x和const int * x和int const x的注释表述是否正确。

Please choose the right statement about const usage:(3 Points)

A. const int a; //const integer

B. int const a; //const integer

C. int const *a; //a pointer which point to const integer

D. const int *a; //a const pointer which point to integer

E. int const *a; // a const pointer which point to integer

AB选项忘记初始化了,但是描述正确的是ABC,自己查查资料吧。

8、以下代码输出的结果是:

[cpp] view plaincopyprint?

1. class C

2. {

3. public:

4. long a;

5. };

6.

7. class D:public C

8. {

9. public:

10. long b;

11. };

12.

13. void seta(C *data, int index)

14. {

15. data[index].a = 2;

16. }

17.

18. int main()

19. {

20. D data[4];

21. cout<

22. for(int i=0;i<4;++i)

23. {

24. data[i].a = 1;

25. data[i].b = 1;

26. seta(data,i);

27. }

28. for(int i=0;i<4;++i)

29. {

30. cout<

31. }

32. return 0;

33. }

答案:22221111.

这个做错了。。。。。觉得不可能这么简单,果然有猫腻。。

seta中,参数是基类C类型的指针,然后移动指针取对象并赋值,

但是main中往函数seta中传递的是派生类的对象,所以对象被截取了。。。再按照基类去取对象,只取出了一部分

自己慢慢体会吧。。。

9、1000瓶中有1瓶毒药,喂老鼠,问至少多少只老鼠,才能识别毒药?

1 of 1000 bottles of water is poisoned which will kill a rat in 1 week if the rat drunk any amout of the water. Given the bottles of water have no visual difference, how many rats are needed at least to find the poisoned one in 1 week?(5 Points)

A. 9

B. 10

C. 32

D. None of the above

(2^n > 1000),n=10即可,

10.下列代码输出值为1的是?(其中选项有return 1&7,return “ab” == “ab”)

Which of the following statement(s) equal(s) value 1 in C programming language?(5 Points)

A. the return value of main function if program ends normally

B. return (7&1)

C. char *str=“microsoft”; return str==“microsoft”

D. return “microsoft”==“microsoft”

E. None of the above

1&7=1;

gcc下会对“ab” == “ab”警告:比较字面值是未定义的行为。但是结果也给出1.

还有一项是:char *s=“abc”;return s==“abc”;

测试发现一般编译器都会优化,但是g++会警告。。。

但。。。。。。。但是,这是微软的笔试。。。

11、32位有符号数x,x/2不等于x>>1的情况?

If you computed 32 bit signed integers F and G from 32 bit signed X using F = X / 2 and G = (X>>1), and you found F!=G, this implies that

A. There is a compiler error

B. X is odd

C. X is negative

D. F - G = 1

E. G - F = 1

12、3*4的表格grid,可能找出多少个方框?(6 0)

How many rectangles you can find from 3*4 grid?

A. 18

B. 20

C. 40

D. 60

E. None of above is correct

13、一条直线可以将平面(surface)分2部分,2条可以分4部分,问100条可以分多少部分?

One line can split a surface to 2 part, 2 line can split a surface to 4 part. Given 100 lines, no two parallel lines, no tree lines join at same point, how many parts can 100 line split?

A. 5051

B. 5053

C. 5510

D. 5511

自己画画吧,我当时没读懂题意,空着。。。

微软的`surface。。。split。。。被自己切n多片儿…… (感谢网友飞侠桑提供~ )

14、稳定的排序方法?(冒泡排序、快排、堆排序、希尔排序、归并排序)

Which of the following sorting algorithm(s) is(are) stable sorting?

A. bubble sort

B. quick sort

C. heap sort

D. merge sort

E. Selection sort

15、关于MVC中M、V、C的职责描述

Model-View-Controller(MVC) is an architectural pattern that frequently used in web applications. Which of the following statement(s) is(are) correct:

A. Models often represent data and the business logics needed to manipulate the data in the application

B. A view is a (visual) representation of its model. It renders the model into a form suitable for interaction, typically a user interface element

C. A controller is the link between a user and the system. It accepts input from the user and instructs the model and a view to perform actions based on that input

D. The common practice of MVC in web applications is, the model receives GET or POST input from user and decides what to do with it, handing over to controller and which hand control to views(HTML-generating components)

E. None of the above

16、二叉树的还原(必须要有中序,外加其他的任一一个)

we can recover the binary tree if given the output of

A. Preorder traversal and inorder traversal

B. Preorder traversal and postorder traversal

C. Inorder traversal and postorder traversal

D. Postorder traversal

17、n长度的string,求它substring子串的个数。

Given a string with n characters, suppose all the characters are different from each other, how many different substrings do we have?

A. n+1

B. n^2

C. n(n+1)/2

D. 2^n-1

E. n!

请弄清楚substring的定义。

好像我错了。。。

18、sql执行,影响的结果条数?(涉及in、group、sum、having关键字)

Given the following database table, how many rows will the following SQL statement update?(5 Points)

update book set numberofcopies = numberofcopies + 1 where bookid in (select bookid from book group by bookid having sum(numberofcopies) < 8)

A. 1

B. 2

C. 3

D. 4

E. 5

19、单向图的最短路径?不需要算法,画画就出来了。放最后真浪费。。。那么高的分数。。

What is the shortest path between node S and node T, given the graph below? Note: the numbers represent the lengths of the connected nodes

A. 17

B. 18

C. 19

D. 20

E. 21

20、有N个球,只有一个的质量和其他的不同,给你一个天平,允许称3次(当然是没有刻度的),问下面可能的N有?

Given a set of N balls and one of which is defective (weighs less than others), you are allowed to weigh with a balance 3 times to find the defective. Which of the following are possible N?

A. 12

B. 16

C. 20

D. 24

E. 28

上一篇:一封家书作文800字初三下一篇:工业用地合作开发合同