PRO:Design and Develop Web-Basd Apps by Using MS.NET Frmwk
Index >> Microsoft >> MCTS >> "70-547(VB)"Exam
VUE/Prometric Code:70-547(VB)
Questions and Answers:80 Q&As
Price:$ 89
Updated:2008-12-01
| PRO:Design and Develop Web-Basd Apps by Using MS.NET Frmwk | |||
| Test | Q&A | Updated | Price |
| 70-547(VB) | 80 Q&A | 2008-12-01 | $ 89 |
please download in PDF format Demo:
killtest 70-547(VB) Exam Features
High quality and Value for the 70-547(VB) Exam.
Killtest Practice Exams for PRO:Design and Develop Web-Basd Apps by Using MS.NET Frmwk 70-547(VB) are written to the highest standards of technical accuracy, using only certified subject matter experts and published authors for development.
100% Guarantee to Pass Your MCTS exam and get your MCTS Certification.
We guarantee your success in the first attempt. If you do not pass the 70-547(VB) (PRO:Design and Develop Web-Basd Apps by Using MS.NET Frmwk) on your first attempt we will give you a FULL REFUND of your purchasing fee AND send you another same value product for free.
killtest 70-547(VB) Downloadable.
Printable Exams (in PDF format) Our Exam 70-547(VB) Preparation Material provides you everything you will need to take your MCTS exam. The MCTS Certification details are researched and produced by Professional Certification Experts who are constantly using industry experience to produce precise, and logical. You may get MCTS exam questions from different web sites or books, but logic is the key. Our Product will help you not only pass in the first MCTS exam try, but also save your valuable time .
- Comprehensive questions with complete details about 70-547(VB) exam.
- 70-547(VB) exam questions accompanied by exhibits.
- Verified Answers Researched by Industry Experts and almost 100% correct.
- Drag and Drop questions as experienced in the Real MCTS exam.
- 70-547(VB) exam questions updated on regular basis.
- Like actual MCTS Certification exams, 70-547(VB) exam preparation is in multiple-choice questions (MCQs).
- Tested by many real MCTS exams before publishing.
- Try free MCTS exam demo before you decide to buy it in http://www.Killtest.com.
High quality and Value for the 70-547(VB) Exam:100% Guarantee to Pass Your MCTS exam and get your MCTS Certification.
http://www.Killtest.com The safer.easier way to get MCTS Certification.
We offer Demo version of Q&A, Q&A are as follows (not to provide picture):
70-547(VB):please download 70-547(VB) in PDF format Demo 
1. You create Web-based applications. You are creating an Internet banking application. The application will be used by bank account holders.
You are creating a method to withdraw money from an account. The method must change the account balance according to one of the following rules:
You are translating the specification given here into pseudo code. You start by writing the following code.
You need to insert the correct pseudo code.
Which code segment should you insert?
A. If amount < balance then balance - = amount
If amount < balance + 500 then balance = balance - (amount + 35)
If amount > balance + 500 then throw exception
B. If amount <= balance then balance - = amount
If amount <= balance + 500 then balance = balance - (amount + 35)
If amount > balance + 500 then throw exception
C. If amount < balance then balance - = amount
Else If amount < balance + 500 then balance = balance - (amount + 35)
Else throw exception
D. If amount <= balance then balance - = amount
Else If amount <= balance + 500 then balance = balance - (amount + 35)
Else throw exception
Answer: D
2. You create Web-based client applications. You deploy an application on the company extranet. The sales team requires notification when an order total exceeds the company’s approval levels.
The application requires you to send an e-mail to the sales manager to receive approval for any order over $100,000. You must meet the following constraints to achieve this requirement:
The design team plans to use the SimpleMailWebEventProvider class of the health monitoring APIs to send the e-mail.
You need to evaluate whether the design meets the requirement.
What should you recommend?
A. The design meets the requirement.
B. The design does not meet the requirement. Though there is a built-in event handler to process all errors, you need to write a custom provider to send e-mail to the sales manager.
C. The design does not meet the requirement. You need to write a custom event handler to respond to an application specific trigger. You can use a built-in provider to send e-mail to the sales manager.
D. The design does not meet the requirement. You need to write a custom event handler to respond to an application specific trigger. You need a custom provider to write e-mail to the sales manager.
Answer: C
3. You create Web-based client applications. You create a component named Orders for a company named Northwind Traders.
This component is used to retrieve and update data in the Orders table of the company’s database. The schema of the Orders table is as shown in the following Exhibit. (Click the Exhibit button.)
The Orders component permits the client application to perform the following tasks:
An instance of the Order class represents a single order that is identified by the OrderID parameter. An instance of the Order class permits the client application to perform the following tasks:
You need to create the design for the component.
What should you do?
To answer, drag the appropriate members to the correct locations in the member type column.
Answer:
4. You create Web-based client applications. You create a class library that is named Fabrikam.dll. Ten applications will use Fabrikam.dll.
Fabrikam.dll contains two classes that are named Order and OrderDetail. The class library must meet the following requirements:
You need to design the interface for the OrderDetail class.
Which code segment should you choose?
A. public sealed class OrderDetail {
internal OrderDetail(){
…
}
}
B. internal sealed class OrderDetail {
internal OrderDetail() {
…
}
}
C. public sealed class OrderDetail {
public OrderDetail() {
…
}
}
D. public sealed class OrderDetail {
private OrderDetail() {
…
}
}
Answer: A
5. You create Web-based client applications. You are creating a class named Product. The Product class will be used by a Web-based application to retrieve and modify product information.
When you create an instance of the Product class, you retrieve the current information from the Products table. The Product class contains a static member named CreateNewProduct. The CreateNewProduct method is used to add a new product to the database and return the primary key. The Products table contains the following fields:
You need to create the constructor for the Product class.
Which code segment should you use?
A. public Product(int ProductID, string ProductName, string Description, int CategoryID, decimal CurrentPrice) {
…}
B. public Product(int ProductID, string ProductName) {
…
}
C. public Product() {
…
}
D. public Product(int ProductID)?{
…
}
Answer: D
6. You create components for Web-based client applications. You are creating a BankAccount class.
The BankAccount class contains an AccountNumber property and a CreateAccount method. The CreateAccount method is used to create a new account. The method generates a unique random value for the actNumber field.
You need to ensure that the BankAccount class is extendable, and that it serves as the base class for other derived classes. You also need to ensure that each derived class can have its own guidelines to generate account numbers in the CreateAccount method.
Which code segment should you use?
A. Public Class BankAccount
Protected actNumber As Long
Public ReadOnly Property AccountNumber() As Long
Get
Return actNumber
End Get
End Property
Public Overridable Function CreateAccount() As BankAccount
…
End Function
End Class
B. Public Class BankAccount
Private actNumber As Long
Public ReadOnly Property AccountNumber() As Long
Get
Return actNumber
End Get
End Property
Public Overridable Function CreateAccount() As BankAccount
…
End Function
End Class
C. Public Class BankAccount
Protected actNumber As Long
Public ReadOnly Property AccountNumber() As Long
Get
Return actNumber
End Get
End Property
Public Function CreateAccount() As BankAccount
…
End Function
End Class
D. Public Class BankAccount
Private actNumber As Long
Public ReadOnly Property AccountNumber() As Long
Get
Return actNumber
End Get
End Property
Public Function CreateAccount() As BankAccount
…
End Function
End Class
Answer: A
7. You create Web-based client applications. You are creating a class library that will be used by an e-commerce Web-based application. The library has an abstract class that is named Product. The Product class serves as a base class for the other classes and provides a default ProductID property.
Each class other than the base class represents a type of product that is sold by your company. There is a ProductID property and a GetProductDetails procedure for each product type.
You need to ensure that the application meets the following requirements:
What should you include in the Product class?
A. a MustOverride ProductID property and an overridable GetProductDetails procedure
B. an overridable ProductID property and an overridable GetProductDetails procedure
C. an overridable ProductID property and a MustOverride GetProductDetails procedure
D. a MustOverride ProductID property and a MustOverride GetProductDetails procedure
Answer: C
8. You create Web-based applications. You create a loan application form.
The loan application form is used to calculate the monthly payment of loans. The monthly payment is based on the loan amount, rate, and number of months. The form contains four text boxes and a button. There are no other controls in the form. The application event handler has the following lines of code. (Line numbers are included for reference only.)
You must prevent exceptions whenever possible to meet the application requirements.
You need to evaluate the current exception handling mechanism.
What should you conclude?
A. The current exception handling mechanism meets the requirements. Nothing needs to be changed.
B. The current exception handling mechanism does not meet the requirements. A required field validator and a range validator control must be added to validate each text box before the button is clicked.
C. The current exception handling mechanism does not meet the requirements. A required field validator control must be added to validate each text box before the button is clicked.
D. The current exception handling mechanism does not meet the requirements. A regular expression validator control must be added to validate each text box before the button is clicked.
Answer: B
9. You create Web-based client applications. You are reviewing a Web application page that populates the list of all employees for your company.
The following code segment loads the list of employees from a database.
You analyze the code segment. You find that the database connection fails to close properly when the GetEmployees method throws an exception.
You need to recommend a change in the code segment to ensure that every possible code path closes the database connection.
Which code segment should you recommend?
A. ' Create the connection and open it
Using conn As DbConnection = factory.CreateConnection()
conn.ConnectionString = connString.ConnectionString
conn.Open()
' Get the employees. The connection to the database
' is given as parameter
lstEmployees = GetEmployees(conn)
End Using
B. ' Create the connection and open it
Dim conn As DbConnection = factory.CreateConnection()
conn.ConnectionString = connString.ConnectionString
conn.Open()
' Get the employees. The connection to the database is
' given as parameter
lstEmployees = GetEmployees(conn)
If lstEmployees Is Nothing Then
conn.Dispose()
Else
conn.Close()
End If
C. Dim coll As HandleCollector = _
New HandleCollector("Connections", 0, 5)
' Create the connection and open it
Dim conn As DbConnection = factory.CreateConnection()
conn.ConnectionString = connString.ConnectionString
conn.Open()
coll.Add()
' Get the employees. The connection to the database is
' given as parameter
lstEmployees = GetEmployees(conn)
' Close the connection to the employee data store
conn.Close()
coll.Remove()
D. Using factory As Idisposable = _
TryCast(DbProviderFactories.GetFactory(
"System.Data.SqlClient"), Idisposable)
Dim conn As DbConnection = factory.CreateConnection()
conn.ConnectionString = connString.ConnectionString
conn.Open()
' Get the employees. The connection to the database
' is given as parameter
lstEmployees = GetEmployees(conn)
End Using
Answer: A
10. You create Web-based client applications. You are reviewing a Web application page that populates a list of all employees of your company.
You analyze code and find that the Web application page does not prevent exceptions from traveling to the browser.
You need to ensure that the Web application page intercepts exceptions and presents an error message to the browser.
What change should you suggest?
A. Add the following code segment to the Web.config file.
<system.web>
<compilation debug="true"/>
</system.web>
B. Add the following code segment to the page.
Protected Sub Page_Error(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles Me.Error
Response.Redirect("error.aspx")
End Sub
C. Add the following code segment to the Web.config file.
<system.web>
<customErrors mode="Off"/>
</system.web>
D. Change the Load event handler to the following code segment.
Protected Sub Page_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles Me.Load
Try
LoadEmployees()
Catch
Response.Redirect("error.aspx")
End Try
End Sub
Answer: B
11. You create Web-based client applications. You create a Web site that will be used to simulate different types of loans. You are writing a method to calculate the payment on a simple loan.
You write the following lines of code for the method. (Comments are included for reference only.)
You write the following code for the unit test.
You enable coverage testing for this unit test.
You need to identify the coverage of your test.
Which lines are covered by the test?
A. Lines commented A, B, and C
B. Lines commented A and C
C. Lines commented A, B, C, D, E, and F
D. Lines commented A, B, C, E, and F
Answer: B
12. You create Web-based applications. You are creating an Internet banking application.
You write the following lines of code to represent a method in your application. (Line numbers are included for reference only.)
You use the Microsoft Visual Studio 2005 test feature to automatically generate the following unit test. (Line numbers are included for reference only.)
You need to change the test method to return a conclusive result.
Which line of code should replace the code on line 09 of the unit test?
A. Assert.AreEqual (400M, target.Balance);
B. Assert.IsTrue (target.Balance != 400M);
C. Debug.Assert (target.Balance == 400M,”passed”);
D. Debug.Assert (target.Balance == 400M,”failed”);
Answer: A
13. You create Web-based applications. You are creating an Internet banking application.
You write the following lines of code to represent a method in your application. (Line numbers are included for reference only.)
You use the Microsoft Visual Studio 2005 test feature to automatically generate the following unit test. (Line numbers are included for reference only.)
You need to change the test method to return a conclusive result.
Which line of code should replace the code on line 07 of the unit test?
A. Assert.AreEqual(400D, target.Balance)
B. Assert.IsTrue(target.Balance <> 400D)
C. Debug.Assert(target.Balance = 400D, "passed")
D. Debug.Assert(target.Balance = 400D, "failed")
Answer: A
14. You create Web-based client applications. You are creating an application that must access different databases depending on whether the application is in demonstration, production, or test mode. The mode is stored in an environment variable.
The configuration file contains the following settings.
You need to ensure that changing the mode will not require you to change the configuration file.
Which code segment should you use?
A. public string GetConnectionString() {
#if PROD
return WebConfigurationManager.ConnectionStrings["ProdDB"].ConnectionString;
#elseif DEMO
return WebConfigurationManager.ConnectionStrings["DemoDB"].ConnectionString;
#else
return WebConfigurationManager.ConnectionStrings["TestDB"].ConnectionString;
#endif
}
B. public string GetConnectionString() {
return WebConfigurationManager.ConnectionStrings[
Environment.GetEnvironmentVariable("WebAppModeDB")].ConnectionString;
}
C. public string GetConnectionString() {
return ConfigurationSettings.AppSettings[Environment.GetEnvironmentVariable("WebAppModeDB")];
}
D. public string GetConnectionString() {
#if PROD
return ConfigurationSettings.AppSettings["ProdDB"];
#elseif DEMO
return ConfigurationSettings.AppSettings["DemoDB"];
#else
return ConfigurationSettings.AppSettings["TestDB"];
#endif
}
E. public string GetConnectionString() {
return WebConfigurationManager.ConnectionStrings["Database"].
ConnectionString;
}
Answer: B
15. You create Web-based client applications. You are creating an application that must access different databases depending on whether the application is in demonstration, production, or test mode. The mode is stored in an environment variable.
The configuration file contains the following settings.
You need to ensure that changing the mode will not require you to change the configuration file.
Which code segment should you use?
A. Public Function GetConnectionString() As String
#If PROD Then
Return WebConfigurationManager. _
ConnectionStrings("ProdDB").ConnectionString
#ElseIf DEMO Then
Return WebConfigurationManager. _
ConnectionStrings("DemoDB").ConnectionString
#Else
Return WebConfigurationManager. _
ConnectionStrings("TestDB").ConnectionString
#End If
End Function
B. Public Function GetConnectionStringB() As String
Return WebConfigurationManager.ConnectionStrings( _
Environment.GetEnvironmentVariable("WebAppModeDB")) _
.ConnectionString()
End Function
C. Public Function GetConnectionString() As String
Return ConfigurationSettings.AppSettings( _
Environment.GetEnvironmentVariable("WebAppModeDB"))
End Function
D. Public Function GetConnectionString() As String
#If PROD Then
Return ConfigurationSettings.AppSettings("ProdDB")
#ElseIf DEMO Then
Return ConfigurationSettings.AppSettings("DemoDB")
#Else
Return ConfigurationSettings.AppSettings("TestDB")
#End If
End Function
E. Public Function GetConnectionString() As String
Return WebConfigurationManager. _
ConnectionStrings("Database").ConnectionString()
End Function
Answer: B
16. You create Web-based client applications.
You are evaluating the design of an e-commerce Web site. The Web site processes credit card information. The Web site has a shopping cart and expects a high volume of traffic, especially during peak shopping times.
The design specifications for the application must meet the following criteria:
You need to evaluate the design of the application and recommend whether it is technically feasible and complete.
What should you conclude?
A. The design is technically feasible, but it is not complete. The application must be configured to use cookieless sessions. Each server on the farm must use a unique certificate.
B. The design is technically feasible and complete.
C. The design is technically feasible, but it is not complete. The servers must have their affinity set to a single host (sticky sessions).
D. The design is not technically feasible. The application cannot be hosted on a Web farm.
Answer: C
17. You create Web-based client applications. You are designing a new Web site for your company. You need to evaluate the design concept for the main page, default.aspx.
The default.aspx page contains static information, except for one data grid that displays information about the company’s products. The data grid will retrieve the data from a component. The component will retrieve the data from a stored procedure. The page has the appropriate permissions to the Microsoft SQL Server database.
The application design must achieve the following goals without altering the data component:
You decide to use a sqlCacheDependency attribute to ensure that the default.aspx page always displays the latest data in the grid.
You need to ascertain whether the use of the sqlCacheDependency attribute meets the requirements of this application.
Which rationale should you choose?
A. The use of the sqlCacheDependency attribute is not feasible. The sqlCacheDependency attribute must be used in the component and not on the page.
B. The use of the sqlCacheDependency attribute is not feasible. The sqlCacheDependency attribute cannot be used with a stored procedure.
C. The use of the sqlCacheDependency attribute is feasible. The sqlCacheDependency attribute can be used by including a sqlDependency attribute in the @OutputCache directive of the page.
D. The use of the sqlCacheDependency attribute is feasible. The sqlCacheDependency attribute can be linked to the data component that is used on the page.
Answer: C
18. You create Web-based client applications. You are designing an extranet site for a company of trading partners.
You decide to use the following technologies:
Before implementation, these technologies must be validated. You propose the following approach to perform the validation:
You need to evaluate whether the approach validates the proposed technology successfully.
What should you conclude?
A. The approach validates the use of the proposed technology for the application.
B. The approach does not validate the use of the proposed technology for the application. The company and the partner need to create test applications. The test applications need to read data in the proposed XML schema to establish the validation.
C. The approach does not validate the use of the proposed technology for the application. The company and the partner need to coordinate their Active Directory tree into a shared Active Directory forest.
D. The approach does not validate the use of the proposed technology for the application. You must either use an existing publicly documented XML schema or register the shared XML schema by using an authentication site.
Answer: B
19. You create Web-based client applications.
Your company has an existing ASP.NET application that is currently deployed on a single server. The application manages state by using session variables and ViewState. The number of users for the application has significantly increased.
You need to configure the application to accommodate the significantly increased traffic and to recover transparently from hardware failure.
Which three actions should you perform? (Each correct answer presents part of the solution. Choose three.)
A. Implement network load balancing.
B. Use matching machine keys in the Machine.config files.
C. Use cookieless sessions.
D. Implement sticky sessions.
E. Configure Microsoft SQL Server as the location for state storage.
F. Configure SSL.
Answer: A AND B AND E
20. You create Web-based client applications. You are creating an Internet banking application. Bank account holders will use this application.
The application uses a set of Web services to retrieve account information. One of these Web services is used to retrieve a list of transactions. This Web service returns the list as an XML document.
The application must meet the following requirements:
·Data from the XML document has to be retrieved, formatted, and displayed in the user interface.
·Any changes to the way the data is formatted and to the amount of data displayed should not require the code to be recompiled.
The current design of the application specifies that the XML document will be accessed through an XMLDocument object, and Xpath expressions will be used to extract portions of the document to populate controls on a Web form.
You need to evaluate the current design of the application and make recommendation for changes, if required.
What should you recommend?
A. The current design meets the requirements.
B. The current design does not meet the requirements. Use an XSLT file to transform the XML document and display the result on a Web form by using an XML control.
C. The current design does not meet the requirements. Use a cascading style sheet (CSS) file to format the output of the current Web form.
D. The current design does not meet the requirements. Generate a Dataset object from the XML document and bind the dataset to a DataGrid control on a Web form.
E. The current design does not meet the above requirements. Generate a DataTable object from the XML document and bind the DataTable object to a DataGrid control on a Web form.
Answer: B
21. You create Web-based client applications.
You are designing a database that must meet the following requirements:
You decide to create a one-to-many link from the People table to the Companies table.
You need to evaluate whether the database is designed effectively and make a recommendation, if required.
What should you recommend?
A. The database is not correctly designed according to the requirements. You must create a many-to-many link between the People table and the Companies table by using an intersection table.
B. The database is not correctly designed according to the requirements. You must create a many-to-many link directly between the People table and the Companies table.
C. The database is not correctly designed according to the requirements. You must create a one-to-many link from the People table to the Companies table. Create another one-to-many link from the Companies table to the People table. Add columns to the People table and the Companies table to accommodate multiple child rows.
D. The database is correctly designed according to the requirements. No changes are required.
Answer: A
22. You create Web-based client applications.
You are evaluating an application. The application displays data that is stored in XML files. The data changes periodically.
The development team implements a complex caching solution to improve the performance of the application. However, the caching solution is identified as causing the performance of the application to drop to an unacceptable level. The caching solution also results in significant data latency.
The application requirements state that the data that is displayed in the application must be close to real time.
You need to ensure that the application design meets the requirements. You also need to ensure that least amount of code is used.
Which rationale should you choose?
A. The application is not performing optimally. Discard the current caching solution in favor of ASP.NET page caching.
B. The application is not performing optimally. Discard the current caching solution in favor of ASP.NET data caching. Configure a cache dependency to monitor the source file.
C. The application is not performing optimally. Compile the current caching solution into its own assembly and add it to the global assembly cache.
D. The application is performing optimally. A custom caching solution is the recommended approach.
Answer: B
23. You create Web-based client applications. All Web-based applications are created by using ASP.NET. Larger applications are hosted on Web server farms. The larger applications appear to intermittently lose session state information for users.
You need to correct the problem.
What should you do?
A. Add additional servers to the Web farm to accommodate load. Configure the entire Web farm to reside in the same domain. Configure IIS on each server to have domain-level administrative permissions.
B. Modify the Web.config file and set the mode attribute of the sessionState element to InProc. Restart IIS on each associated Web server.
C. Modify the Web.config file and set the mode attribute of the sessionState element to StateServer. Start the state service on each associated Web server.
D. Modify the Web.config file and set the mode attribute of the sessionState element to None. Configure IIS on each Web server to make state information available to all servers in the Web farm.
Answer: C
24. You create Web-based client applications. You administer a large ASP.NET Web application that is hosted by using IIS.
The application must meet the following requirements:
You need to make recommendations for a security plan that meets the application requirements.
What should you recommend?
A. Configure IIS to use Basic authentication.
B. Configure IIS to use Integrated Windows authentication.
C. Set the mode attribute of the authorization element in the Web.config file for the application to Windows. A custom logon form should be created in the application and the classes in the System.Web.Security namespace must be used to manage the authentication process.
D. Set the mode attribute of the authentication element in the Web.config file for the application to Forms. A custom logon form should be created in the application and the classes in the System.Web.Security namespace must be used to manage the authentication process.
Answer: D
25. You create Web-based client applications.
You review an application that manages the medical information of patients. The information is confidential and needs to be stored by using the most secure method available.
The application encrypts patient data and stores it in database tables. The application stores a document or image that is related to a patient in the following manner:
The application locates and retrieves the physical document or image based on the name that is returned from the database when the data for a patient is queried.
You need to evaluate whether the current application design uses the most secure method available to store information and provide an appropriate recommendation.
What should you recommend?
A. The current method of storage is the most secure one available.
B. The current method of storage is not the most secure one available. Documents and images must be stored in the database.
C. The current method of storage is not the most secure one available. Patient data, documents, and images must be serialized and stored in XML.
D. The current method of storage is not the most secure one available. Patient data, documents, and images must be stored on a removable drive for quick removal in case of a security breach.
Answer: B
26. You create Web-based client applications. You create an application that will be used by customers to browse the product catalog of an Internet-based store and buy products.
The application must meet the following requirements:
You need to choose appropriate technologies to meet these requirements.
Which two technologies should you choose? (Each correct answer presents part of the solution. Choose two.)
A. SSL
B. Editor parts
C. Catalog parts
D. User profiles
E. Themes
Answer: D AND E
27. You create Web-based client applications. You create an application that is used as a portal.
The portal uses a set of custom controls that expose different functionalities.
The set of custom controls includes one control each for the following three tasks:
The portal must permit users to select the controls that they need to display on the basis of a predefined list.
The design team proposes the following steps to meet the requirement:
You need to evaluate whether the solution meets the requirements.
What should you conclude?
A. The requirements are met. There is no need to change the application design.
B. The requirements are not met. An editor part zone is necessary.
C. The requirements are not met. The Web part controls must be added to the catalog part.
D. The requirements are not met. The Web part controls must be added to the Web part page.
Answer: C
28. You create Web-based client applications.
You are creating a component. The component implements a document explorer for navigating the document tree and selecting documents for editing. The component will be used as a user interface element in your application as well as in other developers’ applications.
You need to include the component easily on any page of your application or in any other developer’s application. You also need to permit other developers to use your component in the visual designer.
How should you create the component?
A. Create the component as an .aspx page that has embedded code blocks to draw the document tree and handle events. Instruct other developers to access your component by using ASP.NET #include statements.
B. Create an ASP.NET master page that includes your component as a document explorer in the left navigation bar. Instruct other developers to create their pages as content pages that are associated to your master page.
C. Create an ASP.NET user control to present the document explorer. Instruct other developers to include the source code for your user control in their projects.
D. Create an ASP.NET Server control to present the document explorer. Instruct other developers to reference your server control from their projects.
Answer: D
29. You create Web-based client applications.
You are creating a content management system (CMS). You intend to sell CMS to your customers. It is important that customers customize the appearance and behavior of the CMS installation because the system will be used for external Web sites. However, your customers are not programmers. The customers will not be able to modify complicated source code to customize the appearance and behavior of their Web sites.
You need to create the system in such a way that customers can modify the appearance and behavior of their Web sites by editing the minimum number of files, ideally one or two.
Which strategy should you use?
A. By using ASP.NET Server Controls and class inheritance, create a template system that permits controls to inherit the appearance and behavior of their inherited class. Permit users to modify the root classes of the hierarchy to rearrange completely the appearance and behavior of their Web sites.
B. Create a set of ASP.NET master pages and associate every page in your system by using a specific master page. Permit users to modify these master pages to rearrange completely the appearance and behavior of their Web sites.
C. Configure your system to output completely compliant XHTML and use cascading style sheets (CSS) to create the visual layout of the pages. Permit users to modify the CSS files to rearrange completely the appearance and behavior of their Web sites.
D. Create the root pages by using ASP.NET #include directives to pull in the relevant sub-pages. Permit users to modify these root pages as desired to rearrange completely the appearance and behavior of their Web sites.
Answer: B
30. You create Web-based client applications. You are creating an ASP.NET intranet site. The site permits individual departments to post content without involving the Central Information Technology resources. The site also permits Central Information Technology to maintain control over the intranet as a whole.
Each department wants complete control over the appearance and behavior of their departmental content. However, Information Technology directives require every page on the intranet to maintain a consistent appearance and behavior.
You need to develop the Web page on the intranet site so that it meets the requirements.
What should you do?
A. Create a single ASP.NET master page and individual department master pages. The pages must refer to the master page. Permit each department to modify its master page as desired as long as it references the company master page.
B. Create a set of common .aspx files that contain the common style sheets and the header, navigation bar, and footer content that are to be referenced from departmental home pages by using ASP.NET #include directives.
C. Create a base class that inherits from System.Web.UI.Page and design this page to control the common user interface elements.
D. Create the home pages for all departments as ASP.NET server controls. Reference each control from the main project and load the appropriate server control when a department’s home page is loaded.
Answer: A


