1.In order to capture a user??s birth date, you define a composite control. The
following class declaration is used by you:
public class DataOfBoth composite control(
)
You must make sure that templates are supported by the Web control. Which code
segments should be used? (choose more than one)
To answer, move the appropriate code segments from the list of code segments to the
answer area.
Drag and drop question. Drag the items to the proper locations.
Correct Answers:
70-297 70-431 70-4332.You are employed as an application developer in a company which is named Cer-tech.
You have a working knowledge of Visual Studio 2005 and a sound knowledge of the new
features of ASP.NET 2.0. Now you are in charge of the company network and provide
technical support for your company. The Cer-tech.com network consists of a single
Active Directory domain named Cer-tech.com. To meet the business needs, a Web site is
created, which has many predefined roles and associated users to keep security. In
order to administer these roles and user accounts, what action should you perform?
A: You should use the Web Site Administration Tool.
B: You should use the Code Access Administration tool.
C: You should use the
Microsoft .NET Framework Configuration tool.
D: You should use the Code Access Security Policy tool.
E: You should use the ASP.NET IIS Registration tool.
Correct Answers: A
3.You work as a Web developer at Cer-tech.com. Cer-tech.com uses the
Microsoft Visual
Studio .NET 2005 as their application development platform. The Cer-tech.com network
contains a Web server named Server03. Server03 hosts the Cer-tech.com intranet that
consists of several Web sites. You are in the process of redesigning the Web sites to
make their pages and controls consistent in design. You want to implement the style
changes to all the Web sites on Server03 without having to edit the individual pages
on every Web site. What should you do? (Choose all that apply.)
A:You need to assign a theme by setting the <%@ Page Theme="..." %> directive to the
name of the application theme.
B:You need to assign a theme by specifying the <pages theme="..." /> section in the
Web.config file.
C:You need to place a theme in the App_Themes directory. This should be done under the
application root directory.
D:You need to place a theme under an ASP.NETClientFiles folder under the ASP.NET
installation directory.
Correct Answers: B, C
70-450 70-536 70-6464.You work as a Web application developer at Cer-tech.com. Cer-tech.com uses
Microsoft Visual Studio .NET 2005 as its Web application development platform. Rory Allen is the
lead Web application developer at Cer-tech.com. You are a member of Rory Allen's team.
You develop a Web Form with a number of UI elements on it. After reviewing your code,
Rory Allen suggests that certain UI elements that do not require server-side
processing should be grouped into user controls. This will also allow you to
programmatically add or remove the UI elements from the page.
You need to create a Web control to group the UI elements that do not require server-
side processing but you want to retain the UI elements' style properties.
What should you do? (Choose all that apply)
A:You need to group the UI elements using System.Web.UI.WebControls.Literal.
B:You need to group the UI elements using System.Web.UI.TemplateControl.
C:You need to group the UI elements using System.Web.UI.HtmlControls.HtmlControl.
D:You need to group the UI elements using System.Web.UI.LiteralControl.
Correct Answers: D
5.You work as a
Microsoft ASP.NET developer at Cer-tech.com. Cer-tech.com uses the
Microsoft Visual Studio .NET 2005 as their application development platform. You use a
Microsoft Windows XP Professional client computer named Computer01 as your development
computer. Internet Information Services (IIS) is installed on Computer01. You have
developed a custom control named ProductsGrid and a custom control named DropDownGrid
that will be used in the redevelopment of Cer-tech.com's e-Commerce Web application.
Both customs control are contained in an assembly named controls.dll. You need to add
the two custom controls to the Visual Studio toolbox. However, when you attempt to add
the custom controls to the Visual Studio toolbox, you can select the assembly that
contains in the Choose Toolbox Item dialog box, only the DropDownGrid control appears
in the select list. You need to add an attribute to the ProductsGrid control's class
definition to that it is listed in the Choose Toolbox Item dialog box. What code
segment should you use?
A: <ToolboxBitmap(GetType(ProductsGrid))>
B: <ToolboxItem(true)>
C: <ToolboxItemFilter("")>
D: <ToolboxData("<{0}:ProductsGrid></{0}:ProductsGrid>")>
Correct Answers: B
70-649 MB6-820 VCP-310 6.You are employed as an application developer in a company which is named Cer-tech.
You have a working knowledge of Visual Studio 2005 and a sound knowledge of the new
features of ASP.NET 2.0. Now you are in charge of the company network and provide
technical support for your company. The Cer-tech.com network consists of a single
Active Directory domain named Cer-tech.com. For a Web application, a control named
ContosoUI is created by you. Now the control should be added to the toolbox of
Microsoft Visual Studio .NET. What should you do to achieve this? (choose more than
one)
A:The ContosoUI control should be created as a Web user control.
B:The ContosoUI control should be created as a Web Control Library.
C:You should browse to and choose ContosoUI.dll within the Visual Studio .NET toolbox.
D:You should browse to and choose ContosoUI.ascx within the Visual Studio .NET
toolbox.
Correct Answers: B, C
7.You are employed as an application developer in a company which is named Cer-tech.
You have a working knowledge of Visual Studio 2005 and a sound knowledge of the new
features of ASP.NET 2.0. Now you are in charge of the company network and provide
technical support for your company. The Cer-tech.com network consists of a single
Active Directory domain named Cer-tech.com. You create a Web application which
displays data by using a GridView control. Tables are dragged and dropped from the
Data Connections tree in Server Explorer to build the Web Forms for your Web
application. Now the Add Connection dialog box should be used to add a connection to
your data. The exhibit below shows the Add Connection dialog box. (Click the Exhibit
button.)
7.You use the .NET Data Provider to create the data source objects. Now you are asked
to configure that .NET Data Provide when you add the connection to your data.
What action should you perform to achieve this goal?
A: After clicking the Advanced button, you should change the Data Source property to
the target provider.
B: After clicking the connection and the Properties, you should change the Application
Name property to the target provider.
C: After clicking the Change button, you should change the data provider for the
selected data source.
D: After right-clicking the connection and clicking Properties, you should modify the
Provider property of the data connection.
E: After clicking the Advanced button, you should change the Application Name property
to the target provider.
Correct Answers: C
8.You work as a Web application developer at Cer-tech.com. Cer-tech.com uses
Microsoft Visual Studio .NET 2005 as its Web application development platform. Rory Allen is the
lead Web application developer at Cer-tech.com. You are a member of Rory Allen's team.
You develop a Web Form with a number of UI elements on it. After reviewing your code,
Rory Allen suggests that certain UI elements that do not require server-side
processing should be grouped into user controls. This will also allow you to
programmatically add or remove the UI elements from the page.
You need to create a Web control to group the UI elements that do not require server-
side processing but you want to retain the UI elements' style properties.
What should you do? (Choose all that apply)
A: You need to group the UI elements using System.Web.UI.WebControls.Literal.
B: You need to group the UI elements using System.Web.UI.TemplateControl.
C: You need to group the UI elements using System.Web.UI.HtmlControls.HtmlControl.
D: You need to group the UI elements using System.Web.UI.LiteralControl.
Correct Answers: D
9.You work as a Microsoft ASP.NET developer at Cer-tech.com. Cer-tech.com uses the
Microsoft Visual Studio .NET 2005 as their application development platform. You use a
Microsoft Windows XP Professional client computer named Computer01 as your development
computer. Internet Information Services (IIS) is installed on Computer01. You have
been instructed to develop a Web application that will support mobile devices. You
need to create a project for the Web application in Visual Studio .NET 2005. You must
be able to test and debug the Web application by using Microsoft Device Emulator 1.0.
What should you do?
A: Create an ASP.NET Web Site project and choose File System as the location for the
project.
B: Create an ASP.NET Web Site project and choose HTTP as the location for the project.
C: Create a Smart Device Application project and add mobile ASP.NET pages to the
project.
D: Create a Smart Device Console Application project and add mobile ASP.NET pages to
the project.
Correct Answers: A
10.You are employed as an application developer in a company which is named Cer-tech.
You have a working knowledge of Visual Studio 2005 and a sound knowledge of the new
features of ASP.NET 2.0. Now you are in charge of the company network and provide
technical support for your company. The Cer-tech.com network consists of a single
Active Directory domain named Cer-tech.com. To meet the business needs, a Web site is
created by you. This Web site stores users' active themes in user profile objects.
When the user logs on to the Web site, you have to apply their preferred themes. What
action should you perform?
A: In the PreLoad event handler, The Theme property of the Page object based on the
user profile.
B: The Theme property of the Page object has to be set based on the user profile in
the OnLoad event handler.
C: The Theme property of the Page object has to be set based on the user profile in
the PreInit event handler.
D: The Theme property of the Page object has to be set based on the user profile in
the InitComplete event handler.
Correct Answers: C