2013年微软认证考试精选试题8

牛课网 考试宝典 更新时间:2024-05-19 04:53:58

微软认证题库 微软的认证考试 微软认证考试有哪些

我们考吧网为了帮助考生朋友们加强基础知识的巩固,加强练习试题的训练,有效的提高学习效率,我们考吧网整理了一些关于微软认证模拟试题,希望对本次的考试有所帮助,汇编的模拟试题如下:同时也希望你本次顺利通关。想了解更多职称计算机咨询,就请继续关注我们考吧网。

1.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.

You create a composite custom control named MyControl.

You need to add an instance of the OrderFormData control to the MyControl control.

Which code segment should you use?

A.protected override void CreateChildControls() {

Controls.Clear();

OrderFormData oFData = new OrderFormData("OrderForm");

Controls.Add(oFData);

}

Bprotected override void RenderContents(HtmlTextWriter writer) {

OrderFormData oFData = new OrderFormData("OrderForm");

oFData.RenderControl(writer);

}

Cprotected override void EnsureChildControls() {

Controls.Clear();

OrderFormData oFData = new OrderFormData("OrderForm");

oFData.EnsureChildControls();

if (!ChildControlsCreated) CreateChildControls();

}

Dprotected override ControlCollection CreateControlCollection() {

ControlCollection controls = new ControlCollection(this);

OrderFormData oFData = new OrderFormData("OrderForm");

controls.Add(oFData);

return controls;

}

答案:A

2.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.

You create a Web form in the application by using the following code fragment. (Line numbers are included for reference only.)

01

02 protected void Button_Handler(object sender, EventArgs e)

03 {

04 // some long-processing operation.

05 }

06

07

08 < p>

09 runat="server" />

10

11 < p>

12 UpdateMode="Conditional" runat="server">

13

14

15 < p>

16 Text="Submit" OnClick="Button_Handler" />

17

18

19

You plan to create a client-side script code by using ASP.NET AJAX.

You need to ensure that while a request is being processed, any subsequent Click events on the btnSubmit Button control are suppressed.

Which code fragment should you insert at line 10?

A.

var rm = Sys.WebForms.PageRequestManager.getInstance();

rm.add_beginRequest(checkPostback);

function checkPostback(sender, args) {

if (rm.get_isInAsyncPostBack() && args.get_postBackElement().id == ’btnSubmit’) {

rm.abortPostBack(); alert(’A previous request is still in progress.’);

}

}

B. var rm = Sys.WebForms.PageRequestManager.getInstance();

rm.add_initializeRequest(checkPostback);

function checkPostback(sender, args) {

if (rm.get_isInAsyncPostBack() && args.get_postBackElement().id == ’btnSubmit’) {

rm.abortPostBack();

alert(’A previous request is still in progress.’);

}

}

C. var rm = Sys.WebForms.PageRequestManager.getInstance();

rm.add_initializeRequest(checkPostback);

function checkPostback(sender, args) {

if (rm.get_isInAsyncPostBack() && args.get_postBackElement().id == ’btnSubmit’) {

args.set_cancel(true);

alert(’A previous request is still in progress.’);

}

}

D. var rm = Sys.WebForms.PageRequestManager.getInstance();

rm.add_beginRequest(checkPostback);

function checkPostback(sender, args) {

var request = args.get_request();

if (rm.get_isInAsyncPostBack() && args.get_postBackElement().id == ’btnSubmit’) {

request.completed(new Sys.CancelEventArgs());

alert(’A previous request is still in progress.’);

}

}

答案: C

3.You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.

You plan to add a custom parameter in the SqlDataSource control.

You write the following code fragment.

You write the following code segment to create a custom parameter class.

public class DayParameter : Parameter { }

You need to ensure that the custom parameter returns the current date and time.

Which code segment should you add to the DayParameter class?

A.protected DayParameter() : base("Value", TypeCode.DateTime, DateTime.Now.ToString()) {

}

B.protected override void LoadViewState(object savedState) {

((StateBag)savedState).Add("Value", DateTime.Now); }

C.protected override object Evaluate(HttpContext context, Control control) { return DateTime.Now; }

D.protected override Parameter Clone() {

Parameter pm = new DayParameter(); pm.DefaultValue = DateTime.Now; return pm; }

答案: C

编辑推荐:

2013年微软认证考前模拟精选试题汇总二

2013年微软认证考试精选试题汇总三

考试宝典安装说明

宝典适用于手机、电脑、平板,您可安装客户端或在浏览器使用。

电脑版

手机版

网页版

考试宝典咨询
服务热线

TEL:029-88699698