MCPD(70536)真题精选.docx
- 文档编号:8863917
- 上传时间:2023-05-15
- 格式:DOCX
- 页数:42
- 大小:19.51KB
MCPD(70536)真题精选.docx
《MCPD(70536)真题精选.docx》由会员分享,可在线阅读,更多相关《MCPD(70536)真题精选.docx(42页珍藏版)》请在冰点文库上搜索。
MCPD(70-536)真题精选
[单项选择题]
1、YouworkastheapplicationdeveloperatCertkiller.com.Certkiller.comusesVisual
Studio.NET2005asitsapplicationdevelopment
platform.YouhaverecentlyfinisheddevelopmentofaclassnamedTestRewardandpackagetheclassina.NET
2.0assemblynamed
TestObj.dll.Afteryoushiptheassemblyanditisusedbyclientapplications,youdecidetomovetheTestRewardclassfrom
TestObj.dllassemblytothe
TestRewardObj.dll
Assembly.Youaretoensurewhenyoushiptheupdated
TestObj.dlland
TestRewardObj.dllassembliesthattheclientapplicationscontinuetoworkanddonotrequire
recompiling.Whatshouldyoudo?
()
A.TheTypeForwardedToattributeshouldbeused
B.The
TypeConvertor.ConvertTomethodshouldbeused
C.TheInternalsVisibleToattributeshouldbeused
D.TheType
Convertor.ConvertFrommethodshouldbeused
参考答案:
A
[单项选择题]
2、YouworkasanapplicationdeveloperatCertkiller.com.Youarecurrentlyintheprocessofreviewinganapplicationthatwascreatedbyafellow
developer.TheapplicationthatyouarereviewingincludesadeclarationforacollectionnamedEmployeeList,whichstoresEmployee
objects.Thedeclarationisshownbelow:
publicclassEmployeeList:
Enumerator,IEnumerable{//Classimplementation}YourequiretheabilitytoiteratethroughtheEmployeeListwithminimumdevelopment
effort.Whatshouldyoudo?
()
A.Utilizetheswitchstatement
B.Utilizethedowhilestatement
C.Utilizetheforeachstatement
D.Utilizetheifstatement
参考答案:
C
[多项选择题]
3、YouworkasanapplicationdeveloperatCertkiller.com.Certkiller.comhasinstructedyoutocreateaclassnamed
MetricFormula.ThisclasswillbeusedtocompareMetricUnitandEnglishUnit
objects.TheMetricFormulaiscurrentlydefinedasfollows(Linenumbersareusedforreferencepurposesonly):
1.publicclassMetricFormula2.{
3.
4.}YouneedtoensurethattheMetricFormulaclasscanbeusedtocomparetherequired
objects.Whatshouldyoudo?
()
A.Addthefollowingcodeonline1:
:
IComparable{
B.Addthefollowingcodeonline1:
:
IComparer{
C.Addthefollowingcodeonline3:
publicintCompare(objectx,objecty){//implementationcode}
D.Addthefollowingcodeonline3:
publicintCompareTo(objectobj){//implementationcode}
参考答案:
B,C
[单项选择题]
4、YouworkasanapplicationdeveloperatCertkiller.com.Certkiller.comwantsyoutodevelopanapplicationthathandlespassesforCertkiller.com’sparking
lot.Theapplicationhastostoreandretrievevehicleinformationusingavehicleidentificationnumber(VIN).Youneedtousethecorrectcodetoensuretype-
safety.Whatshouldyoudo?
()
[单项选择题]
5、YouworkasanapplicationdeveloperatCertkiller.com.YouhavebeengiventheresponsibilityofcreatingaclassnamedCalcSalarythatwilldeterminethesalariesofCertkiller.com’s
staff.TheCalcSalaryclassincludesmethodstoincrementanddecrementstaff
salaries.ThefollowingcodeisincludedintheCalcSalaryclass:
publicclassCalcSalary{//forpromotionspublicstaticboolIncrementSalary(EmployeeEmp,doubleAmount){if(
Emp.Status==
QuarterlyReview.AboveGoals)
Emp.Salary+=Amount;
returntrue;
}elsereturnfalse;
}//fordemotionspublicstaticboolDecrementSalary(EmployeeEmp,doubleAmount){if(
Emp.Status==
QuarterlyReview.AboveGoals)
Emp.Salary-=Amount;
returntrue;
}elsereturnfalse;
}}YouwouldliketoinvoketheIncrementSalaryandDecrementSalarymethodsdynamicallyatruntimefromthesalesmanagerapplication,anddecidetocreateadelegatenamedSalaryDelegatetoinvoke
them.YouneedtoensurethatyouusetheappropriatecodetodeclaretheSalaryDelegate
delegate.Whatisthecorrectlineofcode?
()
A.publicdelegateboolSalary(EmployeeEmp,doubleAmount);
B.publicboolSalary(EmployeeEmp,doubleAmount);
C.publiceventboolSalary(EmployeeEmp,doubleAmount);
D.publicdelegatevoidSalary(EmployeeEmp,doubleAmount);
参考答案:
A
[单项选择题]
6、YouworkasanapplicationdeveloperatCertkiller.com.Certkiller.comhasaskedyoutodevelopanapplicationallowsadministratorstocontrolWindowsservicesdynamicallywithoutusingtheServices
MMC.Youstartbycreatingaclassnamed
LocalServiceController.YouneedtoaddthecorrectcodetotheLocalServiceControllerclasstoensurethatadministratorsareabletostartlocalWindows
services.Whatcodeshouldyouuse?
()
[单项选择题]
7、YouworkasanapplicationdeveloperatCertkiller.com.Youarecurrentlyintheprocessofdevelopingabusinesslogiccomponentthatrequireslong
calculations.Youhaveidentifiednumeroustaskswithinthisapplicationthatcanbedone
asynchronously.Younoticethatthesetasksaremutuallydependentandrequirecomplexsynchronizationtechniquessothatitcanmanage
efficiently.YoudecidetouseMicrosoft.NET
2.0totakeadvantageofitsnewthreadmanagement
features.Youneedtocreateandstarttheapplication
threads.Whatshouldyoudo?
()
A.A
B.B
C.C
D.D
参考答案:
C
[单项选择题]
8、YouworkasanapplicationdeveloperatCertkiller.com.YouhavebeenaskedbyyousuperiorsatCertkiller.comtocreateachildapplication
domain.Thenewchildapplicationdomainhastospecifyadifferentassemblypaththanthatoftheparentapplication
domain.YouneedtoensurethatyoursolutionmeetsCertkiller.com’s
requirements.Whatshouldyoudo?
()
A.A
B.B
C.C
D.D
参考答案:
B
[单项选择题]
9、YouworkasanapplicationdeveloperatCertkiller.com.Youarerequiredtodynamicallyloadassembliesintoacustomchildapplication
domain.Youneedtoensurethattheassembliesloadedintothechildapplicationdomainhavethesamepermissionsastheapplicationsthatareaccessedacrossthelocal
intranet.Whatshouldyoudo?
()
A.A
B.B
C.C
D.D
参考答案:
A
[单项选择题]
10、YouworkasanapplicationdeveloperatCertkiller.com.Youhaverecentlycompletedcreatinganapplicationthatusesanapplicationconfiguration
file.ThisconfigurationfilecontainsasectionnamedEmployeeSection,whichcontainsEmployee
elements.YouarerequiredtoviewthecontentsoftheEmployeeSection
element.YouneedtoensurethattheEmployeeSectionelementoutputsitscontentstothe
console.Whatshouldyoudo?
()
A.A
B.B
C.C
D.D
参考答案:
D
[单项选择题]
11、YouworkasanapplicationdeveloperatCertkiller.com.Youhaverecentlycreatedanddeployedanapplicationusingthe.NET
1.1CLRtoallCertkiller.com
users.AfteraCertkiller.comadministratorupdatesallusercomputerswiththe.NET
2.0CLR,yourunpreliminarytestsandfindthattheapplicationyoucreatedusingthe.NET
1.1CLRisnotcompatiblewiththe.NET
2.0
CLR.Youneedtoensurethattheapplicationcanberunwiththe.NET
1.1
CLR.Whatshouldyoudo?
()
A.A
B.B
C.CD.D
参考答案:
C
[单项选择题]
12、YouuseReflectiontoobtaininformationaboutamethodnamed
MyMethod.YouneedtoascertainwhetherMyMethodisaccessibletoaderived
class.Whatshouldyoudo?
()
A.CalltheIsAssemblypropertyoftheMethodInfo
class.
B.CalltheIsVirtualpropertyoftheMethodInfo
class.
C.CalltheIsStaticpropertyoftheMethodInfo
class.
D.CalltheIsFamilypropertyoftheMethodInfo
class.
参考答案:
D
[单项选择题]
13、YouarecreatinganassemblynamedAssembly1.Assembly1containsapublic
method.TheglobalcachecontainsasecondassemblynamedAssembly2.YoumustensurethatthepublicmethodisonlycalledfromAssembly2.Whichpermissionclassshouldyouuse?
()
A.GacIdentityPermission
B.PublisherIdentityPermission
C.DataProtectionPermission
D.StrongNameIdentityPermission
参考答案:
D
[单项选择题]
14、您正在开发.NET框架
2.0Windows窗体应用程序将使用的几个
C用作担保品的工作站上的几个国家的雇员。
应用程序需要完全支持自定义的基于用户的首选项的用户界面像语言的货币、日期和时间格式。
您要编写代码,将比较两名雇员,存储在名为employee1和employee2的变量的名称。
您是需要确保正确的比较,同时照顾的选择的区域设置。
你应该做什么?
()
A.应使用
String.Compare(Fileemployee1,Fileemployee2,true,
CultureInfo.CurrentCulture)
B.应使用
String.Compare(Fileemployee1,Fileemployee2,true,
CultureInfo.InvariantCulture)
C.应使用
String.Compare(Fileemployee1,Fileemployee2,true,
CultureInfo.InstalledUICulture)
D.应使用
String.Compare(Fileemployee1,Fileemployee2,true,
CultureInfo.CurrentUICulture)
参考答案:
A[单项选择题]
15、您正在开发.NETFramework
2.0应用程序,用于处理中
JPG、GIF、PNG格式的图形文件。
你被要求选择适当的数据类型来存储图形文件,而您的解决方案必须使用最少的代码。
你应该做什么?
()
A.应使用Icon类
B.应使用Metafile类
C.应使用Image类
D.应使用Bitmap
类
参考答案:
D
[多项选择题]
16、Youaredevelopinganapplicationtocreateanewfileonthelocalfile
system.Youneedtodefinespecificsecuritysettingsforthe
file.Youmustdenythefileinheritanceofanydefaultsecuritysettingsduring
creation.Whatshouldyoudo?
()
A.CreatethefilebyusinganewFileStreamobjectbypassingtheFileSecurityobjectasaparametertotheFileStream
constructor.
B.CreateanewFileSecurity
object.
C.ApplythepermissionsbyusingtheFile
class.
D.CreateanewFileSystemAccessRuleobjectforeachpermissionthatyouneed,andaddeachruletotheFileSecurity
object.
E.CreateanewFileSystemAuditRuleobjectandaddittotheFileSecurity
object.
参考答案:
A,B,D
[单项选择题]
17、YouworkasanapplicationdeveloperatCertkiller.com.Youarerequiredtolaunchthe
App.exeprocess,andspecify
sample.txtastheinput
file.
App.exewillthenusethecontentsof
sample.txttoestablishtheenvironment’scurrent
settings.Youneedtoensurethatthecodeyouusemeetsthese
requirements.Whatshouldyoudo?
()
A.A
B.B
C.C
D.D
参考答案:
D
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- MCPD 70536 精选