前天面深信服的一套比试题 有点意思~~~~ 大家研究下好么?

林初茵 2008-11-02 10:37:15
加精
深信服的一套面试题 有点意思~~~~ 大家研究下好么?

第一类 数据推理:

题目1:393,163,67,29,9,? [问号里应该是5,3,1,11中哪个]
题目2:1,10,26,50,82,? [问号里应该是104,140,146,131中哪个]
题目3:22,44,68,96,128,? [问号里应该是148,156,164,174中哪个]
题目4:6,18,?,78,126 [问号里应该是40,41,42,44中哪个]
题目5:9,16,37,?,289 [问号里应该是30,46,216,100中哪个]

题目6:如果2003年6月3号星期五,那么2006年6月3号星期几?(给出分析过程)

题目7:某杂志刊登一段文字如下:
1 周迅的前男友窦鹏是窦唯的堂弟;
2 窦唯是王菲的前老公;
3 周迅的前男友宋宁是高原的表弟;
4 高原是窦唯的现任老婆;
5 窦唯是王菲的前老公;
6 周迅的前男友李亚鹏是王菲的现任老公;
7 周迅的前男友朴树的音乐制作人是张亚东;
8 张亚东是王菲的前老公窦唯的妹妹窦颖的前老公,也是王菲的音乐制作人;
9 张亚东是李亚鹏前女友瞿颖的现男友。
请问下列说法不正确的是:
A 王菲周迅是情敌关系;
B 瞿颖王菲是情敌关系;
C 窦颖周迅是情敌关系;
D 瞿颖周迅是情敌关系。

简答题:
题目8:在程序设计中,对公共资源(如缓冲区)的操作和访问经常需要使用锁来进行保护,但在大并发系统中过多的锁会导致效低很低,通常那些办法可以尽量避免或减少锁的使用?

题目9:有哪些方法让一个进程仅有一个实例运行。

题目10:红黑树比AVL树的优势是什么?

题目11:有3个红色球,2个白色球,1个绿色球。取出2个不同颜色的球就能变成2个第三种颜色的球(比如:取出1红球,1白球,就能变成2个绿球)。问,最少几次变化能将所有的球都变成同一颜色,说明步骤和原因?


题目12:通常一个软件开发过程包含哪几个阶段,你知道在个阶段的质量保证措施分别是什么吗?


PS 还有一套thoughtworks题也来做做

题目13:编号为123456789的火车经过如下轨道从左边入口处移到右边出口处(每车只能进临时轨道M一次)


-----------------------------------------------------
987654321
-------------------\ /-----------------------------
| |
| |
| |
| |
| |
|M|
| |
| |
| |
| |
|_|

按照从左向右的顺序,下面的结果不可能是______
A 123876549
B 321987654
C 321456798
D 789651234

题目14:如果M只能容纳4列车。上面选项因该选哪个______

题目15:For the following description about OOP, which is right?
1 An object can inherit the feature of another object;
2 A sub class can contain dditional attribute or behaviors.
3 Encapsulation is used to hide as MUCH as possible about the inner working of the interface.
4 Encapsulation prevents the program from becoming independent
5 polymorphism allows the methods have different signature but with same name.

A 12
B 14
C 23
D 35
E 45

题目16:Function club is used to simulate guest in a club. With 0 guests initially
and 50 as max occupancy, when guests beyond limitation, they need to wait outside;
when some guests leave the waiting list will decrease. The function will print out
number of guests in the club and waiting outside. The function declaration as follows:
void club(int x);
positive x stands for guests arrived, nagative x stands for guests left from
within the club
For example, club (40) prints 40,0; and then club (20) prints 50,10; and then club (-5) prints 50,5; and then club (-30) prints 25,0; and then club (-30) prints N/A; since it is impossible input.
To make sure this function works as defined, we have following set of data to pass into
the function and check the result are correct.
a 60
b 20 50 -10
c 40 -30
d 60 -5 -10 -10 10
e 10 -20
f 30 10 10 10 -60
g 10 10 10
h 10 -10 10

A a d e g
B c d f g
C a c d h
D b d g h
E c d e f


题目17:Read the following javascript code:

someText = 'Web2.0';
pattern = /(\w+)(\d)\.(\d)/i;
outCome = pattern.exec(someText);

What is outCome[0]?

Choice A: true
Choice B: false
Choice C: null
Choice D: Web
Choice E: Web2.0

题目18:Which one is Class B Address?


Choice A: 10.10.10.1
Choice B: 191.168.0.1
Choice C: 192.168.0.1
Choice D: 202.113.0.1
Choice E: None of them

题目19:Which of the choices below correctly describes the amount of time used by the following code:

n=10;

for(i=1; i<n; i++)

for(j=1; j<n; j+=n/2)

for(k=1; k<n; k=2*k)

x = x +1;

Choice A: Θ(n^3)
Choice B: Θ(n2logn)
Choice C: Θ(n(log n)2)
Choice D: Θ(n log n)
Choice E: Θ((logn)2)

题目20:Which one of the following statements about buffer overflow attacking is NOT correct?

Choice A: Wrapping the vulnerable functions (such as strcpy) can help
prevent buffer overflow attacking
Choice B: Forbidding to execute code on the stack can help prevent
buffer overflow attacking
Choice C: Adding a mechanism in TLB to set the attribute of a page
non-executable can help prevent buffer overflow attacking
Choice D: C++ language has some built-in mechanisms to prevent buffer
overflow attacking
Choice E: None of above

题目21:During Beijing Olympic Games this summer, lots of people visited Beijing. However, many visitors have complains/difficulties towards trip since most hotels are very expensive or already fully booked. On the other hand, some local people are eagerly to rent out their apartments during Olympics, but don’t know how to effectively publish the information, even after Olympic, a lot of visitors and house renters are still facing the same problems

You’re assigned to solve this problem, and what are the action(s) you want to take for your first step

Choice A: Contact Government and ask for some initial funding
Choice B: Work with your colleagues to do user study to figure out more on who may be your customers
Choice C: Work with your Developer and Tester to build a platform to help these customers
Choice D: Find some of your friends outside the company, discuss about the project details, and see if they can help you.
Choice E: Nothing

题目22:You are the PM of online shopping project. This project is running well and will be released to customer in two months. But the marketing team demands to add two new features in this release and emphasize these two features are critical because our major competitors already have similar features . At the same time, you found out that all developers and tester already had work items planned for next two months. What are the right possible action(s) to take to deal with this issue?

1. Discuss the issue with the management team and try to request
new resources to fulfill these two features

2. Reject the new features request directly so that you can ship
current release on time

3. Decrease the testing criteria to reduce the test duration so
that you can add the two new features

4. Go through all the left work items with marketing team and
other partners to punt low priority items to next release

5. Discuss this issue with stakeholders (management team,
marketing team etc) and propose to postpone current release



Choice A: 1, 3 and 4
Choice B: 2
Choice C: 1, 3 and 4
Choice D: 1, 4 and 5
Choice E: 2, 4 and 5








...全文
11029 274 打赏 收藏 转发到动态 举报
写回复
用AI写文章
274 条回复
切换为时间正序
请发表友善的回复…
发表回复
  • 打赏
  • 举报
回复
哎,受打击了
HeartyHu 2012-07-25
  • 打赏
  • 举报
回复
365能被7整除??????????????????????[Quote=引用 45 楼 的回复:]

1,11
2,140
3,156
4,42
5,100

6,星期六,一年365天,365能被7整除,但是2004年是闰年,so 星期六
7,C
8,减少互斥的发生,排队等待,这个不会答
9,
10,
11,是不可能的
12,
13,D 栈的老题目了。
14,BD,B因为栈的深度不够
15,不熟
16,A
17,不会
18.B? 记不清了
19,C
20,……
[/Quote]
hhsyxxwl0601 2012-07-25
  • 打赏
  • 举报
回复
mark
第一题我选3
各位数相乘都是3的倍数,393((3*9*3%3)==0)所以选3,哈哈
Fighting Horse 2012-06-23
  • 打赏
  • 举报
回复
11题不可能可以这么证明:

给定3个颜色分别是三个数字 1、2、3,那么现有数字总和是1×3+2×2+3=10
如果1、2=>3×2 总和会加3
如果1、3=>2×2 总和不变
如果2、3=>1×2 总和会减3
所以变化只能是3的倍数,不管怎样,最终总和除3都余1

假设能够完成,最终总和是6的倍数,显然与前面的结论矛盾,所以该题无解
hackbuteer1 2012-05-04
  • 打赏
  • 举报
回复
19题选哪个啊??
  • 打赏
  • 举报
回复
[Quote=引用 202 楼 的回复:]
我也笔试过在西电的
太难了
题目11差点想爆我的脑袋,老以为有解~~~
还有一个题大家帮忙想想啊~~
问题是:: 箱子中有1001个球,每次从中只可取出1,2,4个球。现在你和甲比赛,谁拿走箱子中最后一个球就为输。
现在让你第一个从箱子中拿球,问你又没必胜的把握,如果有写出过程,没的话简述理由~!
[/Quote]
不可以拿3个吗?要是可以拿3个就能完胜了
爱若一生 2012-04-12
  • 打赏
  • 举报
回复
http://www.willowgarage.com/
boluomianbao 2011-11-30
  • 打赏
  • 举报
回复
第七题有点晕。。太多人名,把人名全改成ABCD形式吧···
霸气傲中原 2011-10-31
  • 打赏
  • 举报
回复
题目1:393,163,67,29,9,? [问号里应该是5,3,1,11中哪个]

答案是11

67=393-163*2
29=163-67*2
9=67-29*2
11=29-9*2
cplusplus_tmp 2011-10-24
  • 打赏
  • 举报
回复
傻C-1才会理会这种变#态无¥耻的公司所出的变×态无@耻的题目
xuht 2011-10-08
  • 打赏
  • 举报
回复
mark一下
huigecool 2011-10-07
  • 打赏
  • 举报
回复
第二题啊
猫咪01 2011-09-01
  • 打赏
  • 举报
回复
第二题没想明白
LynnF2009 2011-08-31
  • 打赏
  • 举报
回复
mark
xjgarchermind 2011-08-18
  • 打赏
  • 举报
回复
[Quote=引用 237 楼 zhengart 的回复:]
题目7:某杂志刊登一段文字如下:
1 周迅的前男友窦鹏是窦唯的堂弟;
2 窦唯是王菲的前老公;
3 周迅的前男友宋宁是高原的表弟;
4 高原是窦唯的现任老婆;
5 窦唯是王菲的前老公;
6 周迅的前男友李亚鹏是王菲的现任老公;
7 周迅的前男友朴树的音乐制作人是张亚东;
8 张亚东是王菲的前老公窦唯的妹妹窦颖的前老公,也是王菲的音乐制作人;
9 张亚东是李亚鹏前女友瞿颖的现男友……
[/Quote]


这题 太雷了 那娱乐圈那帮人的多角关系来考 出题人看样子比较对这方面的男女关系感兴趣 pf
godblessing_hr 2011-08-17
  • 打赏
  • 举报
回复
看的累了。。。第2题还是很好做的,无需考虑别的,看到第2个,第4个是整数,那第六个必然也是整数
iLove9ouHenry 2011-08-17
  • 打赏
  • 举报
回复
12 24 36 48
iLove9ouHenry 2011-08-17
  • 打赏
  • 举报
回复
222222
moosha 2011-08-17
  • 打赏
  • 举报
回复
11 木结果
dinko321 2011-08-17
  • 打赏
  • 举报
回复
mark 回去再看
加载更多回复(251)

65,211

社区成员

发帖
与我相关
我的任务
社区描述
C++ 语言相关问题讨论,技术干货分享,前沿动态等
c++ 技术论坛(原bbs)
社区管理员
  • C++ 语言社区
  • encoderlee
  • paschen
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
  1. 请不要发布与C++技术无关的贴子
  2. 请不要发布与技术无关的招聘、广告的帖子
  3. 请尽可能的描述清楚你的问题,如果涉及到代码请尽可能的格式化一下

试试用AI创作助手写篇文章吧