作者zuki326 (Zukisa)
看板Programming
标题[问题] 外国高级工程师的面试题
时间Tue Nov 17 07:08:46 2009
这里有一份外国公司的高级工程师面试题
不知道有没有人可以答得出来
1. Explain in detail what is wrong with the following code-block
and provide a correct implementation:
解释以下程式码有何错误,并提供正确的写法
private string GetString()
{
string value = string.Empty;
for (int i = 0; i < 85000; i++)
value += i.ToString();
return value;
}
2. What is the significance of the value 85000 in the code-block above?
(hint: 85,000 bytes and Memory Allocation/Garbage Collection)
上题中的 85000 有什麽特别的意义?
(提示: 85,000 bytes and Memory Allocation/Garbage Collection )
3. You have the following ASP.NET code-behind class:
你有以下的 ASP.NET 程式码
public partial class Page1 : Page
{
private string _value;
public Page1()
{
if (DateTime.Now.Ticks % 10 == 0)
_value = "Test";
}
~Page1()
{
if(_value.Equals("Test"))
_value = string.Empty;
}
}
You have found events in the Application event log indicating
that the ASP.NET worker process is crashing.
You determine the problem to be that in some circumstances,
accessing _value throws a NullReferenceException.
Why does this crash the ASP.NET worker process instead of showing an error
to the end-user?
你发现 Application event log 纪录 ASP.NET 的 process 会出现错误。
你发现问题出在某些情况下 accessing _value throws a NullReferenceException。
为什麽这个ASP.NET 程式在出错时会 crash 而不是向用户显示错误讯息?
4. You have identified that your ASP.NET worker process is consuming
large amounts of memory and is not releasing it.
How would you identify whether it is a native memory leak or
an issue with managed code? If you identified the issue as a problem
with managed code, what steps would you take to further isolate the issue?
(这题真不知道怎麽翻…)
5. Provide a comparison of XML and JSON including the pros and
cons of each and provide ideal uses for both.
提出 XML 与 JSON 的对比,包括双方的优缺点列表。
6. Discuss some common rendering issues with Internet Explorer
(version of your choice) and provide some workarounds.
Internet Explorer (任何版本) 有哪些呈现上的问题,并提出要如何解决。
7. Provide a comparison of the box model in Internet Explorer 5.5
and Internet Explorer 7.0
提出 Internet Explorer 5.5 与 Internet Explorer 7.0 中的 box model 的比对。
8. As an ASP.NET developer, how to you see Silverlight 2.0 fitting
into the development of web applications?
作为一个 ASPNET 的工程师,你对於在网页软体开发中使用 Silverlight 2.0
有什麽看法。
9. Explain why using CSS image replacement techniques (image sprites)
has better perceived performance than using individual images.
解释为什麽用 CSS 图片替换技术 (image sprites) 会比用单独的图片有更好的效果。
10. You have the following Go.gif image.
The full image dimensions are 75x40px
你有一个 Go.gif 图片档。完整的图片大小为 75x40px
http://www.badongo.com/pic/7762055
The HTML for this button is
这个按钮的 HTML 是
<a id="lnkGo" href="#">Go</a>
a. Provide a CSS-only implementation of the button with a hover state
(the dark blue is the hover state)
提供一个这个按钮的 CSS-only implementation 与 hover state
(应该是说滑鼠放上去会变成深蓝色的?)
b. Provide an implementation that uses CSS for the initial state
but jQuery for the hover state
提供一个使用 CSS 在最初的状态,但是用 jQuery 在 hover state
11. You visited an eCommerce website, and when navigating to
a Cannon SD1000 camera, you noticed the URL was
http://www.mystore.com/ViewProduct.aspx?productId=10
你去了一个电子商务的网站,当你到 Cannon SD1000 相机的页面时,
发现网址是
http://www.mystore.com/ViewProduct.aspx?productId=10
You have been asked to consult on SEO best practices.
What recommendations would you make to the site developer with regards
to his URL’s?
你现在是负责做这个公司的谘询工作,你要怎麽建议这个网站的工程师改进他的网址?
12. You visited a website that has a menu composed of images.
You noticed that on mouse over of each image, the image flickers.
What would you recommend to the webmaster to prevent the flickering?
你去了一个有很多图片组成的menu的网站。
当你把滑鼠放上去的时候,每个图案都会闪烁。
你要怎麽建议网站的工程是针对这个做改进?
13. You are managing a website that displays a (hidden)
layer on top of a number of SELECT elements.
Some users are complaining that the dropdown list is appearing on top of
the layer. Why does this occur and how would you fix it?
你负责管理一个网站。这个网站在一些 SELECT elements 之上有一个 (隐藏的) 层。
一些用户抱怨下拉是菜单出现在这个层之上。为什麽会发生这个情况? 要如何修正?
14. You have an unordered list with 10 elements.
The list has an ID of “myList”. Using jQuery, how would you:
你有一个没排序过的 10 个物件的列表。这个列表的 ID 是 “myList”
。使用 jQuery, 你要怎麽
a. Change the fore color of all even list items to red
改变所有表中单数物件的显示颜色为红色
b. Indent the 5th item when the mouse hovers over it
当滑鼠放上的时候, Indent (就是前面空格?) 第五个物件
15. Explain some key differences between
using an ASP.NET UpdatePanel versus using either PageMethods or
web services to retrieve and populate data.
解释使用 ASP.NET UpdatePanel 及使用 PageMethods 或 web services 来获取及显示数据的主要区别
16. Discuss a new features of ASP.NET 3.5 Service Pack 1.
ASP.NET 3.5 Service Pack 1 中有哪些新的功能
17. Discuss in detail a technique, as it relates to web development,
that you frequently use and feel would be beneficial
to share to a new development team.
解释你在网站开发中较常使用,且觉得有分享给开发团队的价值的技术
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 72.53.68.197
1F:推 ykjiang:自己的面试自己解 :p 61.230.67.59 11/17 12:10
2F:嘘 MOONRAKER:谴责标题不加上ASP.NET,混淆视听 59.120.168.228 11/17 13:16
3F:→ opman:哈,标题改成 知名大学研究所的期末考 好了. 219.80.141.70 11/18 16:25