没有合适的资源?快使用搜索试试~ 我知道了~
首页微软MCP70528认证考试中英文对照题库
微软MCP70528认证考试中英文对照题库
需积分: 9 16 下载量 32 浏览量
更新于2023-03-03
评论
收藏 1.32MB DOC 举报
微软MCP70528认证考试中英文对照题库,中英文对照的哦,题目和答案都是。
资源详情
资源评论
资源推荐
70-528-AllBrainDumpsGigi_134q
Exam A
QUESTION 1
You create a Web Form that allows users to create a new
account. You add a CreateUserWizard control by using
the following code segment.
You need to ensure that the wizard automatically sends
an e-mail message to users when they finish creating their
accounts. You add a valid element to the Web.config file.
Which code segment should you add to the Page_Load
event?
您创建 Web 窗体,允许用户创建一个新帐户。通过使用下
面的代码段添加了 CreateUserWizard 控件。
您需要确保当他们完成创建其帐户时,向导自动将电子邮
件发送给用户。向 Web.config 文件中添加一个有效的元
素。您应添加在 Page_Load 事件中添加那个代码段?
A.Wizard1.RequireEmail = True
B.Wizard1.Email = "user@address.com"
C.Wizard1.MailDefinition.From =
"registration@mysite.com"
D.SmtpMail.SmtpServer = "mail.contoso.com"
Answer: A
Section: (none)
Explanation/Reference:
Explanation: Answer A is more correct than Answer C
because you can set the 'From' attribute with in the
element of the web.config file. However you do need to
make the user enter his email so you can confirm
registration. Therefore we need to set the RequiredEmail
property of the wizard to true.
说明: 答案 A 是更正确答案 C 比因为您可以在 web.config
文件中的元素中设置具有从属性。但是你要让用户输入其
电子邮件,以便您可以确认注册。因此,我们需要将向导
的 RequiredEmail 属性设置为 true。
QUESTION 2
Your Web site uses custom Themes. Your Web site must
support additional Themes based on the user's company
name. The company name is set when a user logs on to
the Web site. The company's Theme name is stored in a
variable named ThemeName. You need to use this
variable to dynamically set the Web site's Theme. What
should you do?
您的 Web 站点使用自定义主题。您的 Web 站点必须支持
基于用户公司名称的其他主题。当用户登录web站点时自动
设置公司名称。公司的主题名称存储在一个名为
ThemeName 的变量中。您需要使用此变量动态地设置网
站的主题。你应该做什么?
A.Add the following code segment to the markup source
of each page on the Web site.
将下面的代码段添加到 Web 站点上的每个页面的源文件
上。
<%@ Page Theme="ThemeName" ... %>
B.Add the following code segment to the Load event of
each page on the Web site.
将下面的代码段添加到 Web 站点上的每个页面的 Load
事件。
Page.Theme = ThemeName
C.Add the following code segment to the PreInit event of
each page on the Web site.
将下面的代码段添加到每个页面在 Web 站点上的 PreInit
事件。
Page.Theme = ThemeName
D.Add the following code segment to the Web site's
configuration file.
将下面的代码段添加到网站的配置文件。
<pages theme="ThemeName" />
Answer: C
Section: (none)
Explanation/Reference:
QUESTION 3
You write a Web application. This application must
support multiple languages. You store the localized strings
in the application as resources. You want these resources
to be accessed according to a users language preference.
You create the following resource files in the
App_GlobalResources folder of your application.
myStrings.resxmyStrings.en-CA.resxmyString.en-
US.resxmyStrings.fr-CA.resxmyStrings.es- MX.resx
Each resource file stores a localized version of the
following strings: Name, E-mail, Address, and Phone. You
create a Web Form that contains one label for each of
these strings. You need to ensure that the correct
localized version of each string is displayed in each label,
according to a users language preference. What should
you do?
您编写了一个 Web 应用程序。此应用程序必须支持多种语
言。您将应用程序中的资源文件存储到已本地化的字符串
中。您需要根据用户的语言首选项访问这些资源。您在您
的应用程序的 App_GlobalResources 文件夹中创建以下资
源文件。
每个资源文件在本地化字符串中存储以下类型: 名称、 电
子邮件、 地址及电话。在您创建的Web 窗体上有包含每个
字符串内容的标签。您需要确保根据对用户的语言首选项
在每个标签上正确显示本地化信息字符串。你应该做什
么?
A.Add the following configuration section to the
Web.config file.
向 Web.config 文件中添加下面的配置节。
<globalization culture="Auto" />
B.Set the directive for each page in your site as follows:
在您的网站中为每个页设置指令,如下所示:
<%@ Page UICulture="Auto" %>
C.Add the following code segment to the pages load
event.
将下面的代码段添加到页加载事件。
lblName.Text ="{myStrings}Name";
lblAddress.Text=@"{mystrings}Address";
lblEmail.Text= @"{myStrings}Email";
lblPhone.Text=@"{mystrings}Phone";
D.Add the following code segment to the pages load
event.
将下面的代码段添加到页加载事件。
lblName.Text = Resources.myStrings.Name;
lblAddress.Text=Resources.myStrings.Address;
lblEmail.Text=Resources.myStrings.Email;
lblPhone.Text= Resources.myStrings.Phone;
Answer: D
Section: (none)
Explanation/Reference:
QUESTION 4
You create a Web site that stores users' active themes in
user profile objects. You need to apply users' preferred
themes when they log on to the Web site. What should
you do?
您创建一个Web 站点,将用户的活动主题存储到用户配置
文件中。当用户登录到网站上时,你需要使用用户的首选
主题。你应该做什么?
A.In the InitComplete event handler, set the Theme
property of the Page object based on the user profile.
在InitComplete事件处理程序中,将用户主题属性的配置文
件在page对象中设置。
B.In the PreLoad event handler, set the Theme property of
the Page object based on the user profile.
在PreLoad事件处理程序中,将用户主题属性的配置文件
在page对象中设置。
C.In the OnLoad event handler, set the Theme property of
the Page object based on the user profile.
在OnLoad事件处理程序中,将用户主题属性的配置文件在
page对象中设置。
D.In the PreInit event handler, set the Theme property of
the Page object based on the user profile.
在PreInit事件处理程序中,将用户主题属性的配置文件在
page对象中设置。
Answer: D
Section: (none)
Explanation/Reference:
QUESTION 5
You create Web sites for Certkiller .com. You apply a
consistent design to the pages and controls of the Web
sites. You need to make style changes to all of the Web
sites on the Web server. You want to achieve this goal
without having to edit the individual pages on each Web
site. Which two actions should you perform? (Each correct
answer presents part of the solution. Choose two.)
你在创建了CertKiller.com站点,你需要在页面和控件上使
用统一的设计方案。你需要在web服务器上更改web站点上
页面的所有样式。要实现这一目标,而不必编辑每个 Web
站点上的单个页面。您应执行下列哪两个操作?(每个正
确答案提供解决方案的一部分。选择两个。)
A.Place a theme in the App_Themes directory under the
application root directory.
在应用程序根目录下的 App_Themes 目录中放置一个主
题
B.Place a theme under an ASP.NETClientFiles folder
under the ASP.NET installation directory.
在 ASP.NET 安装目录下的 ASP.NETClientFiles 文件夹
下放置一个主题。
C.Assign a theme by setting the <%@ Page Theme="..."
%> directive to the name of the application theme.
通过 <%@ Page Theme="..." %> 指令分配应用主题的名
称。
D.Assign a theme by specifying the <pages theme="..."/>
section in the Web.config file.
在web.config文件中设置 <pages theme="..."/>的节点代
码
Answer: AD
Section: (none)
Explanation/Reference:
QUESTION 6
You create an application. The application processes
hundreds of XML documents per minute. The XML
documents are validated against inline schemas. You
need to load XML documents from the file system and
read them as quickly as possible. XML comments must be
ignored while reading the XML documents. What should
you do?
你创建一个应用程序。程序每分钟需要处理数百个xml文
档。验证这些文档的内联架构。你需要从系统文件加载这
些xml文档并以尽快的速度读取。Xml注释在读取时必须忽
略。你应该做什么?
A.Create an instance of the XmlReader class by using the
XmlReader Create method with an instance of the
XmlReaderSettings class.
通过使用 XmlReader类创建一个方法,在方法中再调用
XmlReaderSettings 类的实例来创建 XmlReader 类的一
个实例。
B.Create an instance of the XmlReader class with an
instance of the XmlTextReader class.
使用 XmlTextReader 类的实例创建 XmlReader 类的一
个实例。
C.Create an instance of the XmlDocument class and
specify a location for the application schema.
创建 XmlDocument 类的一个实例,并指定应用程序架构
的位置。
D.Create an instance of the XmlReader class with an
instance of the XmlNodeReader class.
使用 XmlNodeReader 类的实例创建 XmlReader 类的一
个实例。
Answer: A
Section: (none)
Explanation/Reference:
QUESTION 7
You are transferring records from one database to
another. You need to decide whether you can use the
SqlBulkCopy class to transfer the records. What should
you do?
你正在把记录从一个数据库转移到另一个数据库。您需要
决定是否可以使用 SqlBulkCopy 类来转移这些数据记录。
你应该做什么?
A.Ensure that the source database is Microsoft SQL
Server.
确保源数据库是 SQL Server。
B.Ensure that the destination database is Microsoft SQL
Server.
确保目标数据库是 SQL Server。
C.Ensure that the column names in the source table
match the column names in the destination table.
确保源表中的列名称与目标表中的列名称相匹配
D.Ensure that the bulk copy program (bcp) utility is
installed on the destination server.
确保大容量复制程序 (bcp) 实用程序已安装在目标服务器
上。
Answer: B
Section: (none)
Explanation/Reference:
QUESTION 8
Exhibit:
You create a master page named Parent.master that
contains a global header for your Web application. You
add a ContentPlaceHolder to Parent.master by using the
following code segment.
您创建了一个名为 Parent.master的母版页,其中包含您的
Web 应用程序的全局标头的母版页。通过使用下面的代码
段,您将一个 ContentPlaceHolder 添加到
Parent.master。
<asp:ContentPlaceHolder ID="pagebody"
runat="server" />
You also create a content page named Article.aspx by
using the following code segment.
您还创建了一个名为 Article.aspx,通过使用下面的代码段
的内容页。
<%@ Page Language="C#"
MasterPageFile="~/navigation.master"%> <asp:Content
ContentPlaceHolderID="article" Runat="Server">
Article content to go here
</asp:Content>
You need to create a child master page that
contains the navigation for each section. The users must
be able to see the header, the navigation, and the article
when they view the page, as shown in the exhibit.
Which code segment should you use?
您需要创建一个子级母版页包含每个部分的导航。用户必
须能够标头、 在的导航和文章查看时,看到他们在的页面
在展览中所示。您应该使用哪个代码段?
A.<%@ Master Language="C#"
MasterPageFile="~/parent.master"%>
<asp:Content runat="server"
ContentPlaceHolderID="pagebody"> Navigation
element 1<br /> Navigation element 2<br />
<asp:contentplaceholder id="article" runat="server">
</asp:contentplaceholder>
</asp:Content>
B.<%@ Master Language="C#"
MasterPageFile="~/parent.master"%> <asp:Content
runat="server" ContentPlaceHolderID="pagebody">
<asp:contentplaceholder id="article" runat="server">
Navigation element 1<br /> Navigation element 2<br />
</asp:contentplaceholder></asp:Content>
C.<%@ Master Language="C#"
MasterPageFile="~/parent.master"%> <asp:Content
runat="server" ContentPlaceHolderID="article">
Navigation element 1<br /> Navigation element 2<br />
<asp:contentplaceholder id="pagebody" runat="server">
</asp:contentplaceholder>
</asp:Content>
D.<%@ Master Language="C#"
MasterPageFile="~/parent.master"%> <asp:Content
runat="server" ContentPlaceHolderID="article">
<asp:contentplaceholder id="pagebody" runat="server">
Navigation element 1<br /> Navigation element 2<br />
</asp:contentplaceholder></asp:Content>
Answer: A
Section: (none)
Explanation/Reference:
QUESTION 9
You create a Web Form that contains a TreeView control.
The TreeView control allows users to navigate within the
Marketing section of your Web site. The following XML
defines the site map for your site.
创建一个包含一个树视图控件的 Web 窗体。在web站点中
允许用户通过treeview控件作为用户导航。下面的 XML的
定义为站点地图。
<siteMapNode url="~\default.aspx" title="Home"
description="Site Home Page"> <siteMapNode
url="Sales.aspx" title="Sales" description="Sales Home">
<siteMapNode url="SalesWest.aspx" title="West Region"
description="Sales for the West Region" />
<siteMapNode url="SalesEast.aspx" title="East Region"
description="Sales for the East Region" />
</siteMapNode>
<siteMapNode url="Marketing.aspx" title="Marketing"
description="Marketing Home"> <siteMapNode
url="MarketNational.aspx" title="National Campaign"
description="National marketing campaign" />
<siteMapNode url="MarketMidwest.aspx" title="Midwest
Campaign" description="Midwest region marketing
campaign" /> <siteMapNode url="MarketSouth.aspx"
title="South Campaign" description="South region
marketing campaign" />
</siteMapNode></siteMapNode>
You need to bind the TreeView control to the site map
data so that users can navigate only within the Marketing
section. Which three actions should you perform? (Each
correct answer presents part of the solution. Choose
three.)
您需要将 TreeView 控件绑定到站点地图数据,这样,用户
就只能在市场营销部分内导航。您应执行的哪三个操作?
(每个正确答案提供解决方案的一部分。选择三项。
A.Add a SiteMapDataSource control to the Web Form and
bind the TreeView control to it.
将 SiteMapDataSource 控件添加到 Web 窗体并将
TreeView 控件绑定到该控件。
B.Add a SiteMapPath control to the Web Form and bind
the TreeView control to it.
将SiteMapPath 控件添加到 Web 窗体并将TreeView 控
件绑定到该控件。
C.Embed the site map XML within the SiteMap node of a
Web.sitemap file.
将xml嵌入到Web.sitemap文件的网站站点地图节点中。
D.Embed the site map XML within the AppSettings node
of a Web.config file.
将xml嵌入到AppSettings 节点中的 Web.config 文件的站
点地图中。
E.Set the StartingNodeUrl property of the
SiteMapDataSource control to ~/Marketing.aspx.
将 SiteMapDataSource 控件的 StartingNodeUrl 属性设
置为~ / Marketing.aspx。
F.Set the SkipLinkText property of the SiteMapPath
control to Sales.
将SiteMapPath 控件的 SkipLinkText 属性设置为销售。
Answer: ACE
Section: (none)
Explanation/Reference:
QUESTION 10
You are developing an application that connects to a
Microsoft SQL Server database using the SqlConnection
object. Your connection objects are being pooled. As the
pool fills up, connection requests are queued. Some
connection requests are rejected. You need to ensure that
the application releases connections back to the pool as
soon as possible. Also, you need to decrease the
likelihood that connection requests will be rejected. Which
three actions should you perform?
(Each correct answer presents part of the solution.
Choose three.)
您正在开发的应用程序连接到使用 SqlConnection 对象的
SQL Server 数据库。您的连接对象正在建立池连接。如该
池填充连接请求进行排队。某些连接请求被拒绝。您需要
确保应用程序能尽快释放回池中的连接。您还要减少该连
接请求将被拒绝的可能性。您应执行的三个操作?(每个
正确答案提供解决方案的一部分。选择三。)
A.Ensure that the Close method is called on each
connection object after it has finished executing.
确保在执行完成后每个连接对象上调用 Close 方法。
B.Ensure that each connection object is left open after it
has finished executing.
确保在完成执行后的每个连接对象保持为打开状态。
C.Increase the Max Pool Size value inside the connection
string.
增加连接字符串的最大值。.
D.Increase the Min Pool Size value inside the connection
string.
增加连接字符串的最小值。
E.Increase the Connection Lifetime value inside the
connection string.
增加连接字符串的连接生命周期。
F.Increase the value of the ConnectionTimeout property
of the SqlConnection object.
增加 SqlConnection 对象的 ConnectionTimeout 属性的
值。
Answer: ACF
Section: (none)
Explanation/Reference:
QUESTION 11
You develop a Web control. The Web control consists of
labels and associated text boxes. You need to ensure that
the Web control has both toolbox and visual designer
support. What should you do?
您定义了一个 Web 控件。Web 控件包含标签和文本框。
您需要确保 Web 控件能被工具箱和可视化设计器的支持。
你应该做什么?
A.Add a Web Control Library project to your solution.
Define a class that inherits from CompositeControl.
把Web 控件库项目添加到解决方案中。定义一个类继承
CompositeControl
B.Add a Windows Control Library project to your solution.
Define a class that inherits from UserControl.
将一个 Windows 控件库项目添加到解决方案中。定义一
个类继承UserControl.。
C.Add a Web User Control to your project. Define a class
that inherits from UserControl.
将一个Web 用户自定义控件添加到项目中。定义一个类
继承UserControl.。
D.Add a Mobile Web User Control to your project. Define
a class that inherits from MobileUserControl.
将一个 Web 用户自定义控件添加到项目中。定义一个类
继承MobileUserControl。
Answer: A
Section: (none)
Explanation/Reference:
QUESTION 12
You create a control named ContosoUI for a Web
application. You need to add the control to the toolbox of
Microsoft Visual Studio .NET. Which two actions should
you perform?
(Each correct answer presents part of the solution.
Choose two.)
你为一个web应用程序创建了一个名为ContosoUI的控件,
您需要将该控件添加到Microsoft Visual Studio.net中的工具
箱中
(每个正确答案都是解决方案的一部分。选择两项。)
A.Create the ContosoUI control as a Web Control Library.
创建 ContosoUI 控件作为 Web 控件库。
修改为:以Web控件库的方式创建这个名字为ContosoUI
的用户控件.
B.Create the ContosoUI control as a Web user control.
创建 ContosoUI 控件作为 Web 用户控件。
C.Within the Visual Studio .NET toolbox, browse to and
select ContosoUI.ascx.
在 Visual Studio.net 工具箱中内浏览并选择
ContosoUI.ascx。
D.Within the Visual Studio .NET toolbox, browse to and
select ContosoUI.dll.
在 Visual Studio.net 工具箱中内浏览并选择
ContosoUI.dll。
Answer: AD
Section: (none)
Explanation/Reference:
QUESTION 13
You create a Web Form with several UI elements on it.
During a code review, you realize that some of the UI
elements can be grouped into user controls. You need to
create a Web control to group the UI elements that do not
require server-side processing. Doing so will enable you to
programmatically add or remove the UI elements from the
page. You want to maintain the UI elements' style
properties. What should you do?
您在Web 窗体上创建几个用户界面元素。在代码评审时,
你意识到一些用户界面元素可以组合为用户控件。您需要
创建一个 Web 控件来组合而不需要服务器端处理的用户界
面元素。这样做将使您能够以编程方式添加或从页中移除
的 UI 元素。您要保持用户界面元素的样式属性。你应该做
什么?
A.Use System.Web.UI.TemplateControl to group the UI
elements.
使用 System.Web.UI.TemplateControl 去组合用户界面
元素
B.Use System.Web.UI.HtmlControls.HtmlControl to group
the UI elements.
使用 System.Web.UI.HtmlControls.HtmlControl 去分组
UI 的元素。
C.Use System.Web.UI.LiteralControl to group the UI
elements.
使用 System.Web.UI.LiteralControl 去分组UI 的元素。
D.Use System.Web.UI.WebControls.Literal to group the
UI elements.
使用 System.Web.UI.WebControls.Literal 去分组的 UI
元素。
Answer: C
Section: (none)
Explanation/Reference:
QUESTION 14
You are developing a Web application to display products.
Products are displayed on different pages on your Web
site. You want to create a user control to manage the
display of products. You need a default visual
implementation of the UI of the user control. In addition,
you need to provide developers with the flexibility to
change the layout and controls of the UI. Which three
actions should you perform? (Each correct answer
presents part of the solution. Choose three.)
您正在开发一个 Web 应用程序中显示的产品。产品将显示
在您的 Web 站点的不同页面。您想创建一个用户控件来管
理产品的显示。您需要用户控件的用户界面默认实现视
觉。在另外需要为开发人员提供灵活地更改布局和用户界
面的控件。您应执行的三个操作?(每个正确答案提供解
决方案的一部分。选择三。)
A.Apply the TemplateContainerAttribute to a property of
type ITemplate. Pass the type of the template's naming
container as the argument to the attribute.
适用于 ITemplate 类型的属
性,TemplateContainerAttribute。将该模板的命名容器
的类型作为参数传递给该属性。
B.Apply the TemplateContainerAttribute to the user
control's class declaration.
适用于该用户控件的类声明的
TemplateContainerAttribute
C.Implement a property of type INamingContainer in the
user control's code-behind class.
在该用户控件的代码隐藏类中实现 INamingContainer 类
型的属性...
D.Implement a property of type ITemplate in the user
control's code-behind class.
在该用户控件的代码隐藏类中实现 ITemplate 类型的属
性
E.Define a new class that inherits from the ITemplate
interface. Implement the InstantiateIn method of the
ITemplate interface.
定义一个新的类,从 ITemplate 接口继承。实现
ITemplate 接口的 InstantiateIn 方法。
Answer: ADE
Section: (none)
Explanation/Reference:
QUESTION 15
You create a Web Form that contains connected Web
Parts. You write the following declaration in your Web
Form.
您创建一个 Web 窗体,其中包含连接的 Web 部件。您在
您的 Web 窗体中编写下面的声明。
<asp:WebPartConnection ID="WebPartConnection1"
ProviderID="customerPart"
ConsumerID="ordersPart" />
You need to ensure that your Web Part connection is
valid. Which two actions should you perform?
(Each correct answer presents part of the solution.
Choose two.)
您需要确保您的 Web 部件连接有效。您应执行这两个操
作?
(每个正确答案提供解决方案的一部分。选择两。)
剩余60页未读,继续阅读
two2xiao
- 粉丝: 2
- 资源: 35
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- 27页智慧街道信息化建设综合解决方案.pptx
- 计算机二级Ms-Office选择题汇总.doc
- 单链表的插入和删除实验报告 (2).docx
- 单链表的插入和删除实验报告.pdf
- 物联网智能终端项目设备管理方案.pdf
- 如何打造品牌的模式.doc
- 样式控制与页面布局.pdf
- 武汉理工Java实验报告(二).docx
- 2021线上新品消费趋势报告.pdf
- 第3章 Matlab中的矩阵及其运算.docx
- 基于Web的人力资源管理系统的必要性和可行性.doc
- 基于一阶倒立摆的matlab仿真实验.doc
- 速运公司物流管理模式研究教材
- 大数据与管理.pptx
- 单片机课程设计之步进电机.doc
- 大数据与数据挖掘.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0