2016年微软认证考试练习题及答案
create a Microsoft application by using the Microsoft Framework version 3.5.
All the content pages in the application use a single master page. The master page uses a static navigation menu to browse the site.
You need to ensure that the content pages can optionally replace the static navigation menu with their own menu controls.
What should you do?
A.
Add the following code fragment to the master page
Add the following code segment to the Page_Load event of the content page
PlaceHolder placeHolder = Control("MenuPlaceHolder") as PlaceHolder;
Menu menuControl = new Menu();
(menuControl);
B.
Add the following code fragment to the master page
Add the following code fragment to the content page
C.
Add the following code fragment to the master page
Add the following code segment to the Page_Load event of the content page
ContentPlaceHolder placeHolder = Control("MenuPlaceHolder") as ContentPlaceHolder;
Menu menuControl = new Menu();
(menuControl);
D.
Add the following code fragment to the master page
Add the following code fragment to the content page
Answer: B
create a Microsoft application by using the Microsoft 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", Time, ring()) {
}
B.
protected override void LoadViewState(object savedState) {
((StateBag)savedState)("Value", ); }
C.
protected override object Evaluate(HttpContext context, Control control) { return ; }
D.
protected override Parameter Clone() {
Parameter pm = new DayParameter(); ultValue = ; return pm; }
Answer: C
create a Microsoft application by using the Microsoft Framework version 3.5. The application has an ASPX page named .
You plan to manage the unhandled application exceptions.
You need to perform the following tasks:
Display the page Write the exceptioninformation in the Event log file.
Which two actions should you perform? (Each correct answer presents part of the solution.
Choose two.)
A.
Add the following code fragment to the ig file.
B.
Add the following code fragment to the ig file.
C.
Add the following code segment to the file.
void Application_Error(object sender, EventArgs e)
{
Exception exc = astError();
//Write Exception details to event log
}
D.
Add the following code segment to the file.
void Page_Error(object sender, EventArgs e)
{
Exception exc = astError();
//Write Exception details to event log
rError();
}
Answer: AC
create a Microsoft application by using the Microsoft Framework version 3.5.
The application contains two Web pages named and .
If the application throws unhandled errors in the Web page, a stack trace is displayed to remote users.
You need to ensure that the Web page is displayed for unhandled errors only in the Web page.
What should you do?
A.
Set the Page attribute for the Web page in the following manner.
Add the following section to the ig file.
B.
Set the Page attribute for the Web page in the following manner.
Add the following section to the ig file.
C.
Set the Page attribute for the Web page in the following manner.
Add the following section to the ig file.
D.
Set the Page attribute for the Web page in the following manner.
Add the following section to the ig file.
Answer: C
Section: (none)
Explanation/Reference:
Debug
Indicates whether the page should be compiled with debug symbols. true if the page should be compiled with debug symbols; otherwise, false. Because this setting affects performance, you should only set the attribute to true during development.
ErrorPage
Defines a target URL for redirection if an unhandled page exception occurs.
create a Microsoft application by using the Microsoft Framework version 3.5.
You write the following code fragment.
You need to ensure that when you click the btnSubmit Button control, each Label control value is asynchronously updatable.
Which code segment should you use?
A.
protected void btnSubmit_Click(object sender, EventArgs e) {
= "Label1 updated value";
= "Label2 updated value";
= "Label3 updated value";
}
B.
protected void btnSubmit_Click(object sender, EventArgs e) {
= "Label1 updated value";
= "Label2 updated value";
sterDataItem(Label3, "Label3 updated value");
}
C.
protected void btnSubmit_Click(object sender, EventArgs e) {
sterDataItem(Label1, "Label1 updated value");
sterDataItem(Label2, "Label2 updated value");
= "Label3 updated value";
}
D.
protected void btnSubmit_Click(object sender, EventArgs e) {
= "Label1 updated value";
= "Label2 updated value";
sterAsyncPostBackControl(Label3); = "Label3 updated value";
}
Answer: B
Section: (none)
Explanation/Reference:
Use the RegisterDataItem method to send data from the server to the client during asynchronous postbacks, regardless of whether the control receiving the data is inside an UpdatePanel control.
Use RegisterAsyncPostBackControl for Registers a control as a trigger for asynchronous postbacks.
-
2016年微软认证经典习题及答案
1.您有一台运行WindowsVista的计算机。您在计算机的新分区上安装Windows7。您需要确保计算机总是在默认状态下启动WindowsVista。您应该怎么办?A.运行并指定/default参数。B.运行并指定/bootems参数。C.在Windows7分区的'根目录中创建文件。D.在WindowsVista...
-
微软认证报考流程
考试报名1、填写报名表:报名时考生需提供考生中英文姓名、E-MAIL地址、中英文联系地址及邮编、联系电话和考试号码、名称及考试语种;非首次考试的考生还应再提供考生ID;确认报名表填写无误后交回给考管员。2、交纳考试相应费用,并领取考试凭证。预约考试时间周一...
-
2016年微软认证Win7系统库功能小技巧
为什么Win7系统取代了XP系统,那么它的亮点在哪里呢?下面就让我来帮大家揭下这一块面纱吧!揭秘微软认证之Win7的亮点到底在何处?和yjbys小编一起来学习吧!库功能是Windows7系统最大的亮点之一,它彻底改变了我们的文件管理方式,从死板的文件夹方式变得更为灵活和方便...
-
2016微软认证考试企业技术模拟试题
1.Youtransferalloftheuseraccounts,andfilesfromaNetWareservertoWindowsNTServercomputer.YouwantallcomputersthatpreviouslywereabletoaccesstheNetWareservertobeabletoaccesstheWindowsNTServercomputer.Whatmustyoudo?A.InstallaMicrosoftredirectorone...