无忧上挂了简历,让个外企的hr约好面试,今天刚面完,整理出来给大家看看。难度不是很大,基本就是Asp.net Mvc 用到的东西,没有问数据库方面的。

Part I – Frontend 
1. Try to simplify the following CSS(Cascading Style Sheet) as short as possible. (简化一下)
background-color: #000000;
background-image: url(./img.png);
background-repeat: no-repeat;
background-attachment: fixed;
background-position: right top;
margin-left: 10px;
margin-right: 10px;
margin-top: 5px;
margin-bottom: 5px;

---> background:##000000 url(./img.png) no-repeat fixed right top;margin:5px 10px;

2. Try to complete the CSS code below to ensure the div is aligned center horizontally.  (让div 居中)

<div style=”width:100px; float:left;” class=”exam”></div>
.exam
{
}

--> .exam{pozistion:relative;left:50%;top:50%}

3. The return value of the “foo()” below is ____________
function foo(){
var a = 1;
function fun1(){
fun2();
var a = 2;
}
function fun2(){
a = 3;
}
fun1();
return a;
}
---> 3  一瞬间还是有点懵,定下来一看考察的是必包,回答了个3,问为什么是3,和闭包有关系吗? 因为想了回,被问是不是拿去执行了,天地良心真没有,反正fun1中 var a=2是无效的。
4.Try to write out the javascript to disable all the <button> elements on the current HTML page.(jQuery is welcome)
 开始写了个

$("button").disable();//以为有现成的,好久没做前端的 真记不清了

被问有这个方法吗? 我就又写了$("button").attr("disabled","disabled");       失效当然还有很多方法。

5.Is there any Internet site whose frontend is implemented(实施) by you ? please list them. (看你现成的作品,很汗,公司内部的看不了,有域名的就一个很简单的,24号那天才用ftp传了个单页上去,这里不好意思拿出来了。这个题的教训就是 做web的怎么能没有自己的个人网站呢? 你是想干嘛!)
 
Part2  ASP.NET MVC Framework 
5. There are different sub-types of ActionResult in MVC,please try to list them 
   ViewResult表示HTML的页面内容

  EmptyResult表示空白的页面内容

  RedirectResult表示定位到另外一个URL

  JsonResult表示可以运用到AJAX程序中JSON结果

  JavaScriptResult表示一个JavaScript对象

  ContentResult表示一个文本内容

  FileContentResult表示一个可以下载的、二进制内容的文件

  FilePathResult表示一个可以下载的、指定路径的文件

  FileStreamResult表示一个可以下载的、流式的文件

当时只回答了四个常用的 Json Content  View(partview)

6.which ways can be used to  pass the variable "a" to the "Index"  View .
  当时回答了 ViewData,ViewBag,Session Cookie ,然后他补充还有 TempData ,Model  额,当时有点汗,怎么把viewmodel忘了。
7.What's the difference between Html.RenderPartial and Html.RenderAction  
8.What's the difference between <%= %> and <%: %>  MVC2中的符号,表示没用过。
9.How does MVC support asynchronous Action?
 
Part 3 .Net 
10. What is the output result of executing the "Main" methold below ?
 static void Main(string[] args)
{
try
{
new Obj1();
using (new Obj1())
{
throw new Exception();
}
}
catch
{ }
Console.Read();
} public class Obj1:IDisposable
{
static Obj1()
{
Console.WriteLine("");
} public void Dispose()
{
Console.WriteLine("");
}
}

回答了“12”  问为什么,说第一次New的时候输出1 using结束输出“2”   结果确实是“12” 不知道解释的对不对。

11.How to optimize the following code?

string b="a ="+ a +"\n b="+b+"\n c= "+c ;

不怕丑的说,当时真没看懂optimize这个单词,僵持了一会,不知道要干嘛,瞧瞧有道了下,才想起用StringBuilder .... 汗。

12. What is the result when serializing the following "arry" variable to Json ?please write out .

  public class Obj1
{
public int Id { get; set; }
public string Name { get; set; }
} private Obj1[] arry = new Obj1[]
{
new Obj1(){Id=,Name = "Bob"},
new Obj1(){Id=,Name = "Leo"}
};

就是换成Json -->[{"ID":4,"Name":"Bob"},{"ID":2,"Name":"Leo"}]

13 What are extension methods ?  什么是.Net的扩展方法。 当时一片空白。不知道指的什么,当然自己是用过Lamada linq。 完全没和概念联系起来。- -!
14.Do you know Ioc (Inversion of control ) Or DI(Dependency Injection)? which party libraries did you use(know) for that 
    依赖注入或者控制翻转,前端时间看面相切面编程学习过,让我解释下,我也说的含糊,PostSharp 企业库 都有用到。
15.which ORM framworks have you used ?  entityfamework
16. which source-version-control system do you use?  git
17.which verison of C#(.net) do you use?     4.0 4.5
18 which agile(敏捷) software development method do you experience?    null
 

好的, 非常感谢你抽出时间来面试。所有面试题已经结束了。基本的评价是:
basic skill in frontend(HTML/CSS) development.
Don't have enough project experience
know ASP.NET MVC
basic experience in .NET,but don't have full understanding
我们会择优录取。
hr可能会在接下来的1-2周内联系你。 双向选择嘛
--------------------------------------------------------------我是分割线---------------------------------------------------------
结束后,淡淡的忧桑,总结了下。
1.个人网站是很有必要的。
2.学习东西不能浮于表面,知其然不知其所以然,回头再好好看书,认真理解。
3.英语单词还是要积累积累。
 
与君共勉!
 
 
 
 

一次外企QQ面试的更多相关文章

  1. 【外企测试面试、笔试】分享下历时8轮、30k+的外企面试全过程

    外企福利 薪酬体系完善(期权.股票等),定期薪酬市场调研,紧跟一线互联网大厂 加班很少很少 年假多,15-20天 国外免费旅游.旅游金 免费培训英语(还可能出国培训) 定期技术交流 免费零食 定期团建 ...

  2. bootstrap-paginator 分页插件笔记

    [MVC]bootstrap-paginator 分页插件笔记   bootstrap-paginator基于bootstrap框架,使用起来非常简单.官网:http://harttle.github ...

  3. 白板编程浅谈——Why, What, How

    作者:Lucida 微博:@peng_gong 豆瓣:@figure9 原文链接:http://lucida.me/blog/whiteboard-coding-demystified/ 这篇文章节选 ...

  4. 【设计模式】Singleton模式C++实现

    Singleton是设计模式中比较简单的一个.园中的朋友们应该都很熟悉了.前段时间参加xxx外企的面试,和面试官讨论C++的时候正好写了一个.当时由于在有些地方考虑不太周全,代码出现了一些疏漏.不过最 ...

  5. 白板编程浅谈——Why, What, How(转)

    原文链接:http://lucida.me/blog/whiteboard-coding-demystified/ 这篇文章节选自我正在撰写的一本关于应届生面试求职的书籍,欢迎在评论或微博(@peng ...

  6. Singleton模式C++实现

    Singleton模式C++实现 Singleton是设计模式中比较简单的一个.园中的朋友们应该都很熟悉了.前段时间参加xxx外企的面试,和面试官讨论C++的时候正好写了一个.当时由于在有些地方考虑不 ...

  7. 月薪过2w的IT程序员都是怎么做到的?

    ​  先说结论:要月入过2万,不能仅仅靠技术,更要找个肯给到这份工资的平台.也就是说,尽量去大城市,尽量去大公司. 我在上海,先说下我知道的薪资情况,基本上,只要有3年开发经验,能过大厂或外企的面试, ...

  8. 程序员求职之道(《程序员面试笔试宝典》)之求职有用网站及QQ群一览表

    技术学习网站 www.csdn.com www.iteye.com www.51cto.com http://www.cnblogs.com/ http://oj.leetcode.com/ http ...

  9. IT职场中外企面试最爱提的问题

    1.请介绍一下你自己. 这是外企常问的问题.一般人回答这个问题过于平常,只说姓名.年龄.爱好.工作经验,这些在简历上都有,其实,外企最希望知道的是求职者能否胜任工作,包括:最强的技能.最深入研究的知识 ...

随机推荐

  1. ember - 观察者模式

    Ember可以察觉所有属性的变化,包括计算属性.观察者是非常有用的,特别是计算属性绑定之后需要同步的时候. 观察者经常被Ember开发过度使用.Ember框架本身已经大量使用观察者,但是对于大多数的开 ...

  2. WampServer3.0.4 允许外网访问配置教程

    原文地址:http://jingyan.baidu.com/album/acf728fd556c93f8e410a344.html?picindex=1

  3. ios6 滤镜相关知识内容网址

    http://blog.csdn.net/justinjing0612/article/details/8145607#

  4. 浅析 IDE跟编译器

    之前听别人总说你用啥IDE,直接用编译器. 总的来说IDE包含编译器,而编译器仅仅是IDE的一部分, IDE包括编辑器与编译器. IDE: 可以在IDE上面编写代码,然后编译运行,有错误还能调试.比如 ...

  5. 解决mac安装grunt时出现[command not found]的错误

    第一步: 1先确定一下.bash_profile是否存在. 2在mac终端输入: test -e .bash_profile && echo "found" || ...

  6. floyd算法小结

    floyd算法是被大家熟知的最短路算法之一,利用动态规划的思想,f[i][j]记录i到j之间的最短距离,时间复杂度为O(n^3),虽然时间复杂度较高,但是由于可以处理其他相似的问题,有着广泛的应用,这 ...

  7. Emgu CV播放视频

    public partial class Form1 : Form {     Capture _capture;     public Form1()     {         Initializ ...

  8. Bootstrap自带的一些预定义的按钮颜色

    浅蓝色 btn-info 被用在那些用户可能会采取的操作上. 红色btn-danger被用来提醒用户该操作具有“破坏性”,例如删除一张猫的图片.

  9. shell学习

    set -x 进入调试模式,会把每一个命令实际执行的命令打印出来,也就是会把一些参数扩展后的样子打印出来. set +x 退出调试模式自定义变量:x=7,y=8echo `expr $x + $y` ...

  10. 仿QQ列表左滑删除

    一直想写个仿QQ通讯列表左滑删除的效果,今天终于忙里偷闲,简单一个. 大概思路是这样的: 通过 ontouchstartontouchmoveontouchend 结合css3的平移. 不多说,直接上 ...