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.
-
微軟認證MCSE證書的有效期
一般來説,IT企業為了使證書持有者的專業水平能夠跟上自身產品的升級以及技術的不斷更新,其頒發的IT認證證書均有一個有效期。然而各個公司的證書有效期的制定策略卻是不一樣的。一般分為固定有效期和不定有效期兩種,前者如CISCO的證書一般為3年(CCNA,CCDA,CCNP,CCDP)...
-
微軟認證考試最新認證
2012年,微軟認證計劃進行了全面升級,以涵蓋雲技術相關的解決方案。新一代微軟認證基於產品與技術解決方案共有以下四個認證路徑:1、Client:1)MCSA:Windows8此認證可證明持證者有能力勝任配置、管理及維護企業級Windows8系統,通過兩項考試70687、70688即可獲得此認證...
-
2017年微軟認證考試模擬試題
微軟認證是具備相當含金量和實用價值的高端證書。新一代的Microsoft認證是更為具體,並且目標更為明確,以反映出專業能力的詳細數據。下面是小編整理的關於微軟認證考試模擬試題,歡迎大家參考!1.您有一台運行WindowsVista的計算機。您在計算機的新分區上安裝Window...
-
微軟面試題及答案
第一組1.燒一根不均勻的繩,從頭燒到尾總共需要1個小時。現在有若干條材質相同的繩子,問如何用燒繩的方法來計時一個小時十五分鐘呢?2.你有一桶果凍,其中有黃色、綠色、紅色三種,閉上眼睛抓取同種顏色的兩個。抓取多少個就可以確定你肯定有兩個同一顏色的果凍?3.如...