最新的Microsoft UPGRADE: MCAD Skills to MCTS Web Apps Using MS.NET Framework - 70-559免費考試真題
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 writing code for user authentication and authorization. The username, password, and roles are stored in your application data store.
You have to build a user security context that will be used for authorization checks such as IsInRole. The security context will be used for authorization checks such as IsInRole. You authorize the user by writing the code segment below:
If TestPassword(UserName, Password) = False Then Throw New Exception("Could not authenticate user")
End If
Dim RolesArray() As String = LookUpUserRoles(UserName)
In order to establish the user security, you have to complete the code segment. In the options below, which code segment should you use?
You have to build a user security context that will be used for authorization checks such as IsInRole. The security context will be used for authorization checks such as IsInRole. You authorize the user by writing the code segment below:
If TestPassword(UserName, Password) = False Then Throw New Exception("Could not authenticate user")
End If
Dim RolesArray() As String = LookUpUserRoles(UserName)
In order to establish the user security, you have to complete the code segment. In the options below, which code segment should you use?
正確答案: B
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 Web site. The Web site contains many predefined roles and associated users that will be used for security purposes. You have to manage these roles and user accounts. In the options below, which tool should you use?
正確答案: A
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 changing the security settings of a file named MyData.xml. You have to keep the existing inherited access rules. What's more, the access rules are not allowed to inherit changes in the future. You must ensure this. In the options below, which code segment should you use?
正確答案: A
You work as the developer in an IT company. Recently your company has a big customer. The customer runs a large supermarket chain. You're appointed to provide technical support for the customer. Now according to the customer requirement, you create a personalized home page. You plan to enable users to choose from a selection of daily headlines from different news providers. You create a series of custom user controls each of which points to a different news provider. You have to add these controls to the personalized home page. What should you do?
正確答案: A
You have just graduated from college, now you are serving the internship as the software developer in an international company. You are designing a .NET Framework 2.0 Web Application. You want the application to send messages by e-mail. There's an SMTP server which is named smtp.wikigo.com on the local subnet. You use a source address, [email protected], and [email protected], a target address, to test the application. In the options below, which code segment should you use to transmit the e-mail message?
正確答案: C
You work as the developer in an IT company. Recently your company has a big customer. The customer is a large international compay. You're appointed to provide technical support for the customer. Now according to the customer requirement, you create a Web application for the company's intranet. The company wants to enable users to customize their versions of the intranet home page. You create sections of content as Web Parts. You need to ensure that users can customize content at any time. In the options below, which code segment should you use?( choose more than one)
正確答案: C,D
You work as the developer in an IT company. Recently your company has a big customer. The customer runs a large supermarket chain. You're appointed to provide technical support for the customer. Now according to the customer requirement, a Web site has been created. An EditorZone control has been added to the home page on the Web site. Now the customer wants to enable users to customize the size and location of the Web Parts on their home pages. You have to achieve this for the customer. In the options below, which control should be added to the EditorZone control? (choose more than one)
正確答案: B,C
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 an auditing application to display the trusted ClickOnce applications. The applications are installed on a computer. Now you need the auditing application to display the origin of each trusted application. In the options below, which code segment should you use?
正確答案: B
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, for a Web site, you create a personalized home page by using a series of Web Parts. The Web site does not use a master page. You have to enable the Web Parts to communicate with one another. Which control should you add to the personalized home page?
正確答案: D