首页 > 资料专栏 > HRM > 人力资源 > 面试甄选 > 微软2013_4_6暑期实习笔试题DOC

微软2013_4_6暑期实习笔试题DOC

kelehui
V 实名认证
内容提供者
资料大小:132KB(压缩后)
文档格式:DOC
资料语言:中文版/英文版/日文版
解压密码:m448
更新时间:2021/11/9(发布于湖北)

类型:积分资料
积分:10分 (VIP无积分限制)
推荐:升级会员

   点此下载 ==>> 点击下载文档


文本描述
微软2013暑假实习生笔试题
1. Which of the following calling convention(s) support(s) supportvariable-length parameter(e.g. printf)?(3 Points)
? ??A. cdecl?? ?
? ? B. stdcall ? ?
? ? C. pascal ? ?
? ? D. fastcall
2. What's the output of the following code?(3 Points)
[cpp]?view plaincopy
class?A??
{??
public:??
????virtual?void?f()??
????{??
????????cout<<"A::f() "<<endl;??
????}??
????void?f()?const??
????{??
????????cout<<"A::f()?const"<<endl;??
????}??
};??
??
class?B:?public?A??
{??
public:??
????void?f()??
????{??
????????cout<<"B::f()"<<endl;??
????}??
????void?f ()?const??
????{??
????????cout<<"B::f()?const"<<endl;??
????}??
};??
??
void?g(const?A*?a)??
{??
????a->f ();??
}??
??
int?main()??
{??
????A*?a?=?new?B();??
????a->f();??
????g(a);??
????delete?a?;??
}??
? ? A. B::f()B::f()const ? ?
? ??B. B::f()A::f()const???
? ? C. A::f()B::f()const ? ?
? ? D.?A::f()A::f()const?
3. What is the difference between a linked list and an array?(3 Points)
? ??。。。。。。以下内容略