Microsoft UPGRADE: MCAD Skills to MCTS Web Apps Using MS.NET Framework 認定 070-559 試験問題:
1. You have just graduated from college' now you are serving the internship as the software developer in an international company. According to the requirements of the company CIO, you create a master page named Template.master which contains the following ContentPlaceHolder server controls.
<asp:contentplaceholder id="area1" runat="server"/>
<asp:contentplaceholder id="area2" runat="server"/>
You also create 10 Web Forms which reference Template.master as their master page.
Each Web Form has the following Content controls that correspond to the ContentPlaceHolder controls in Template.master.
<asp:Content ContentPlaceHolderID="area1" Runat="Server"/>
<asp:Content ContentPlaceHolderID="area2" Runat="Server"/>
In order to make that whenever a Web Form does not provide that content, default content will be shown in the area2 ContentPlaceHolder control, you have to configure the Web pages.
What action should you perform?
A) You have move default content inside area2 in Template.master. Leave area2 blank in Web Forms that do not provide content.
B) You have move default content inside area2 in Template.master. Remove area2 from Web Forms that do not provide content.
C) You have move default content inside area2 in the Web Forms. Remove area2 from Template.master.
D) You have to create an additional ContentPlaceHolder control in Template.master named area2_default. Then you should place default content inside area2_default and remove area2 from Web Forms that do not provide content.
2. You have just graduated from college,now you are serving the internship as the software developer in an international company. According to the requirements of the company CIO, you're developing a server. You are developing an application. Users who are not members of the Administrator group are not allowed to run the application. You protect sensitive data within the application by writing the security code below:
Dim blnAdmin As Boolean = False
Dim objRole As WindowsBuiltInRole = _
WindowsBuiltInRole.Administrator
If blnAdmin = False Then
Throw New Exception("User not permitted")
End If
Now if a user is not a member of the Administrator group, the application must throw an exception. You must add a code segment to this security code to ensure this.
In the options below, which code segment should you use?
objGroup.Value.Equals(objRole)Next
A) Dim objUser As WindowsPrincipal = _DirectCast(Thread.CurrentPrincipal, WindowsPrincipal)blnAdmin = objUser.IsInRole(objRole)
B) Dim objUser As WindowsIdentity = WindowsIdentity.GetCurrentFor Each objGroup As IdentityReference In objUser.GroupsDim objAccount As NTAccount = _ DirectCast(objGroup.Translate( _ Type.GetType("NTAccount")), NTAccount)blnAdmin =
C) Dim objUSer As WindowsIdentity = _DirectCast(Thread.CurrentPrincipal.Identity, WindowsIdentity)blnAdmin = objUSer.Name.EndsWith("Administrator")
D) Dim objUser As GenericPrincipal = _DirectCast(Thread.CurrentPrincipal, GenericPrincipal)blnAdmin = objUser.IsInRole(objRole.ToString)
3. You have just graduated from college, now you are serving the internship as the software developer in an international company. There's a Web site that uses custom Themes. Your Web site must support additional Themes based on the user's company name. When a user logs on to the Web site, the company named is set. The company's Theme name is stored in a variable named ThemeName. You have to dynamically set the Web site's Theme by using this variable. So what should you do?
A) The following code segment should be added to the Load event of each page on the Web site. Page.Theme = ThemeName;
B) The following code segment should be added to the Web site's configuration file. <pages theme="ThemeName" />
C) The following code segment should be added to the markup source of each page on the Web site. <%@ Page Theme="ThemeName" ... %>
D) The following code segment should be added to the PreInit event of each page on the Web site. Page.Theme = ThemeName;
4. You have just graduated from college, now you are serving the internship as the software developer in an international company. According to the requirements of the company CIO, you are creating a class. The class uses unmanaged resources and maintains references to managed resources on other objects. You must make sure that when the class instance cease to be needed, users of this class can explicitly release resources. what should you do? (choose more than one)
A) You should define the class such that it implements the IDisposable interface.
B) You should create a class destructor that calls methods on other objects to release the managed resources.
C) You should define the class such that it inherits from the WeakReference class.
D) You should create a class destructor that releases the unmanaged resources.
E) You should create a Dispose method that releases unmanaged resources and calls methods on other objects to release the managed resources.
F) You should create a Dispose method that calls System.GC.Collect to force garbage collection.
5. You have just graduated from college, now you are serving the internship as the software developer in an international company. A class library has been created. The class library contains the class hierarchy defined in the following code segment. (Line numbers are used for reference only.)
1 Public Class Group 2 Public Employees As Employee() 3 End Class 4 5 Public Class Employee 6 Public Name As String 7 End Class 8 9 Public Class Manager 10 Inherits Employee 11 Public Level As Integer 12 End Class You create an instance of the Group class.
You populate the fields of the instance. You receive error message and InvalidOperationException when you try to use the Serialize method of the XmlSerializer class to serialize the instance the Group class. The error message is: "There was an error generating the XML document."
In order to serialize instances successfully, you have to modify the code segment. Besides this, you must make sure that the XML output contains an element for all public fields in the class hierarchy.
So what should you do?
A) Between lines 1 and 2 of the code segment insert the code below: <XmlArrayItem(Type:=GetType(Employee))> _ <XmlArrayItem(Type:=GetType(Manager))> _
B) Between lines 1 and 2 of the code segment, insert the code below: <XmlElement(Type:=GetType(Employee))> _
C) Between lines 5 and 6 of the code segment, insert the code below: <XmlElement(Type:=GetType(Employee))> andInsert the following code between lines 10 and 11 of the code segment: <XmlElement(Type:=GetType(Manager))>
D) Between lines 1 and 2 of the code segment insert the code below: <XmlArray(ElementName:="Employees")> _
質問と回答:
| 質問 # 1 正解: B | 質問 # 2 正解: A | 質問 # 3 正解: D | 質問 # 4 正解: A、D、E | 質問 # 5 正解: A |














1343 お客様のコメント
品質保証JPexamはIT認定試験のシラバスに従って、試験問題の範囲を正確に絞って、的中率が99%の最新問題集を捧げます。
1年間の無料更新サービスJPexamは1年以内に問題集の無料更新サービスを提供し、お客様がいつでも最新版の問題集を持つことを保証いたします。もし試験の内容が変更されたら、弊社は直ちにお客様にお知らせします。それに、弊社の問題集が更新されたら、早速メールで最新バージョンを送付いたします。
全額返金JPexamの問題集を利用すると、短時間で勉強しても試験に合格できるのを保証いたします。試験に不合格になってしまった場合、弊社は全額返金いたします。(
ご購入前のお試しJPexamは問題集のサンプルを無料で提供いたします。ご購入前にサンプルを試用して製品の品質を確認することができます。ご遠慮なく利用してください。
