70-547VB MCPD Braindump
ExamSoon 70-547VB Exams
Microsoft
O rder : 70-547VB Exam
Practice Exam: 70-547VB
Exam Number/Code: 70-547VB
Exam Name:
Questions and Answers: 71 Q&As
Free 70-547VB Braindumps
Exam : Microsoft 70-547(VB)
Title : PRO:Design and Develop Web-Basd Apps by Using MS.NET Frmwk
1. 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
2. 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