PlatformDev1 PDF

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 16

1 More NextBlog dsanghavi5@gmail.

com Dashboard SignOut

BI/BO/HANA

Monday,14March2016 BlogArchive

2016(1)
March(1)
1.WhywouldadeveloperuseTest.startTest()andTest.stopTest() <![ifgtemso9]>Normal0false
A.ToavoidApexcodecoveragerequirementsforthecodebetweentheselines fa...
B.Tostartandstopanonymousblockexecutionwhenexecutinganonymous
Apexcode
AboutMe
C.ToindicatetestcodesothatitdoesnotImpactApexlinecountgovernorlimits.
D.Tocreateanadditionalsetofgovernorlimitsduringtheexecutionof Arshi
asingletestclass. Viewmycompleteprofile
2.WhatmusttheControllerforaVisualforcepageutilizetooverridetheStandard
Opportunityviewbutton?
A.TheStandardSetControllertosupportrelatedlistsforpagination.
B.theOpportunityStandardControllerforprebuiltfunctionality.
C.AcallbackconstructortoreferencetheStandardController.
D.AconstructorthatintrializesaprivateOpportunityvariable.
3.AdeveloperusesabeforeinserttriggeronLeadobjecttofetchtheTerritory_C
object,wheretheTerritory_c.PostalCode_cmatchestheLead.Postalcode.Thecode
failswhenthedeveloperusestheApexLoadertoinsert10000Leadrecords.The
developerhasthefollowingcodeblock:
01for(Lead1:Trigger.new)
02if(1.Posta1Codenull){
03List<Territoryc>terrList[SELECTIdFROMTerritorycWHERE
PostalCodec=:1.PostalCode
04if(terrList.size()>0){
051.TerritorycterrList[0].Id
06
07}
08}
Whichlineofcodeiscausingthecodeblocktofail?
A.03:ASOQLqueryislocatedinsideoftheforloopcode.
B.01:Trigger:newisnotvalidinabeforeinsertTrigger.
C.02:ANullPointerexceptionisthrownifPostalCodeisnull.
D.05:TheLeadinabeforeinserttriggercannotbeupdated.

4.whatwouldadeveloperdotoupdateapicklistfieldonrelatedOpportunity
recordswhenamodificationtotheassociatedAccountrecordisdetected?
A.CreateaprocesswithProcessBuilder.
B.Createaworkflowrulewithafieldupdate.
C.CreateaLightningComponent.
D.CreateaVisualforcepage.
5.Whichrequirementneedstobeimplementedbyusingstandardworkflowinstead
ofProcessBuilder?
Choose2answers
A.Createactivitiesatmultipleintervals.
B.SendanoutboundmessagewithoutApexcode.
C.Copyanaccountaddresstoitscontacts.
D.Submitacontractforapproval.
6.AnorghasdifferentApexClassesthatprovideAccountrelatedfunctionality.
Afteranewvalidationruleisaddedtotheobject,manyofthetestmethodsfail.
Whatcanbedonetoresolvethefailuresandreducethenumberofcodechanges
neededforfuturevalidationrules?
Choose2answers
A.CreateamethodthatcreatesvalidAccountrecords,andcallthis
methodfromwithintestmethods.
B.CreateamethodthatloadsvalidAccountrecordsfromaStatic
Resource,andcallthismethodwithintestmethods
C.CreateamethodthatperformsacalloutforavalidAccountrecord,andcallthis
methodfromwithintestmethods.
DCreateamethodthatqueriesforvalidAccountrecords,andcallthismethodfrom
withintestmethods.
7.WhichcomponentisavailabletodeployusingMetadataAPI?
Choose2answers
A.CaseLayout
B.AccountLayout
C.CaseFeedLayout
D.ConsoleLayout
8.Inthecodebelow,whattypedoesbooleaninheritfrom?
Booleanb=true
A.Enum
B.Object
C.String
D.Class
9whatisthepreferredwaytoreferencewebcontentsuchasimages,stylesheets,
JavaScript,andotherlibrariesthatisusedinVisualforcepages?
A.ByaccessingthecontentfromChatterFiles.
B.ByuploadingthecontentintheDocumentstab.
C.ByaccessingthecontentfromathirdpartyCON.
D.ByuploadingthecontentasaStaticResource.
10AcompanyhasacustomobjectnamedWarehouse.EachWarehouserecordhas
adistinctrecordowner,andisrelatedtoaparentAccountinSalesforce.
WhichkindofrelationshipwouldadeveloperusetorelatetheAccounttothe
Warehouse?
A.OnetoMany
B.Lookup
C.MasterDetail
D.ParentChild
11.AdevelopercreatesaWorkflowRuledeclarativelythatupdatesafieldonan
object.AnApexupdatetriggerexistsfortheobject.
Whathappenswhenauserupdatesarecord?
A.Nochangesaremadetothedata.
B.BoththeApexTriggerandWorkflowRulearefiredonlyonce.
C.TheWorkflowRuleisfiredmorethanonce.
D.TheApexTriggerisfiredmorethanonce.
12.WhatIstrueofapartialsandboxthatIsnottrueofafullsandbox?
Choose2answers
A.Morefrequentrefreshes.
B.OnlyIncludesnecessarymetadata.
C.Useofchangesets.
D.Limitedto5GBofdata.
13.InwhichorderdoesSalesforceexecuteeventsuponsavingarecord?
A.BeforeTriggersValidationRulesAfterTriggersAssignmentRulesWorkflow
RulesCommit
B.ValidationRulesBeforeTriggersAfterTriggersWorkflowRulesAssignment
RulesCommit
C.BeforeTriggersValidationRulesilterTriggersWorkflowRulesAssignment
RulesCommit
D.ValidationRulesBeforeTriggersAfterTriggersAssignment
RulesWorkflowRulesCommit
14whenloadingdataintoanorganization,whatcanadeveloperdotomatch
recordstoupdateexistingrecords?
Choose2answers
A.MatchanexternalIdTextfieldtoacolumnintheimportedfile.
B.MatchtheIdfieldtoacolumnintheImportedfile.
C.MatchtheNamefieldtoacolumnintheimportedfile.
D.MatchanautogeneratedNumberfieldtoacolumnintheimportedfile.
15.Inanorganizationthathasenabledmultiplecurrencies,adeveloperneedsto
aggregatethesumoftheEstimated_Value_ccurrencyfieldfromthe
CampaignMemberobjectusingarollupsummaryfieldcalled
Total_Estimated_Value_conCampaign.
HowisthecurrencyoftheTotal_Estimated_ValUecrollupsummaryfield
determined?
a)ThevaluesinCampaignmember.Estimated_Value_careconverted
intothecurrencyoftheCampaignrecord,andthesumIsdisplayed
usingthecurrencyontheCampaignrecord.
bThevaluesinCampaignMember.Estimated_Valuecareconvertedintothe
currencyonthemajorityoftheCampaignMemberrecordsandthesumIs
displayedusingthatcurrency.
c.Thevaluesincampaignmember.Estimated_Value_caresummedupandthe
resultingTotal_Estimated_ValueCfieldisdisplayedasanumericfieldonthe
Campaignrecord.
D.ThevaluesInCampaignMember_EstImated_Value_careconvertedintothe
currencyofthecurrentuser,andthesumisdisplayedusingthecurrencyonthe
Campaignrecord.
16AcandidatemayapplytomultiplejobsatthecompanyUniversalContainersby
submittingasingleapplicationperjobposting,thatapplicationcannotbe
modifiedtoberesubmittedtoadifferentjobposting.
Whatcantheadministratordotoassociateanapplicationwitheachjobpostingin
theschemafortheorganization?
A.CreatealookuprelationshiponbothobjectstoajunctionobjectcalledJob
PostingApplications.
B.CreateamasterdetailrelationshipintheJobPostingscustomobjecttothe
Applicationscustomobject.
C.CreateamasterdetailrelationshipintheApplicationcustomobject
totheJobPostingscustomobject.
D.CreatealookuprelationshipintheApplicationscustomobjecttotheJob
Postingscustomobject.
17.WhatisacharacteristicoftheLightningComponentFramework
Choose2answers
A.Ithasaneventdrivenarchitecture.
B.ItworkswithexistingVisualforcepages.
C.Itincludesresponsivecomponents.
D.ItusesXMLasitsdataformat.
18.whatisacapabilityofcrossobjectformulafields?
Choose3answers
A.Formulafieldscanreferencefieldsfrommasterdetailorlookup
parentrelationships.
B.Formulafieldscanexposedatatheuserdoesnothaveaccesstoina
record.
C.Formulafieldscanbeusedinthreerollupsummariesperobject.
D.Formulafieldscanreferencefieldsinacollectofrecordsfromachild
relationship.
E.Formulafieldscanreferencefieldsfromobjectsthatareupto10
relationshipsaway.
19.Adeveloperhasablockofcodethatomitsanystatementsthatindicatewhether
thecodeblockshouldexecutewithorwithoutsharing.
Whatwillautomaticallyobeytheorganizationwidedefaultsandsharingsettings
fortheuserwhoexecutesthecodeintheSalesforceorganization?
A.ApexTriggers
B.HTTPCallouts
C.ApexControllers
D.AnonymousBlocks
20.AdevelopercreatedanApextriggerusingtheDeveloperConsoleandnowwants
todebugcode.
HowcanthedeveloperaccomplishthisintheDeveloperConsole?
A.SelecttheOverrideLogTriggerscheckboxforthetrigger
B.AddtheusernameintheLogInspector.
C.OpentheProgresstabintheDeveloperConsole:.
D.OpenthelogstabintheDeveloperConsole.
21.WhichdatastructureisreturnedtoadeveloperwhenperformingaSOSL
search?
A.AlistoflistsofsObjects.
B.AmapofsObjecttypestoalistofsObjects
C.AmapofsObjecttypestoalistoflistsofsobjects
D.alistofsObjects.
22HowcanadeveloperavoidexceedinggovernorlimitswhenusinganApex
Trigger?
choose2answers
A.Byusingahelperclassthatcanbeinvokedfrommultipletriggers.
B.ByusingtheDatabaseclasstohandleDMLtransactions.
C.ByusingMapstoholddatafromqueryresults.
D.ByperformingDMLtransactionsonlistsofSObjects.
23.whatisacorrectpatterntofollowwhenprogramminginApexonaMulti
tenantplatform?
A.Apexcodeiscreatedinaseparateenvironmentfromschematoreduce
deploymenterrors.
B.DMLisperformedononerecordatatimetoavoidpossibledataconcurrency
issues.
C.Queriesselectthefewestfieldsandrecordspossibletoavoid
exceedinggovernorlimits.
D.Apexclassesusethe''withsharing"keywordtopreventaccessfromotherserver
tenants.
24.WhatshouldadeveloperworkinginasandboxusetoexerciseanewtestClass
beforethedeveloperdeploysthattestproduction?
Choose2answers
A.TheRESTAPIandApexTestRunmethod
B.TheApexTestExecutionpageinSalesforceSetup.
C.TheTestmenuintheDeveloperConsole.
D.TheRunTestspageinSalesforceSetup.
25.AcompanythatusesaCustomobjecttotrackcandidateswouldliketosend
candidateinformationautomaticallytoathirdpartyhumanresourcesystemwhen
acandidateishired.
Whatcanadeveloperdotoaccomplishthistask?
A.Createanescalationruletothehiringmanager.
B.Createanautoresponseruletothecandidate.
C.CreateaProcessBuilderwithanoutboundmessageaction.
D.Createaworkflowrulewithanoutboundmessageaction.
26.whatistheaccuratestatementaboutwithsharingkeyword?
choose2answers
A)Innerclassdonotinheritthesharingsettingfromthecontainerclass
B)Bothinnerandouterclasscanbedeclaredaswithsharing
C)Eitherinnerclassorouterclassescanbedeclaredaswithsharingbutnotboth
D)Innerclassinheritthesharingsettingfromtheconatinerclass
27.Howcanadeveloperreferto,orinstantiate,aPageReferenceinApex?
Choose2answers
A.ByusingaPageReferencewithapartialorfullURL.
B.ByusingthePageobjectandaVisualforcepagename.
C.ByusingtheApexPages.Page()methodwithaVisualforcepage
name.
D.ByusingthePageReference.Page()methodwithapartialorfullURL.

28.Whichstandardfieldneedstobepopulatedwhenadeveloperinsertsnew
Contactrecordsprogrammatically?
A.Accountld
B.Name
C.LastName
D.FirstName
29Whatistheminimumloglevelneededtoseeusergenerateddebugstatements?
A.DEBUG
B.FINE
C.INFO
D.WARN
30.AdevelopercreatesanewVisualforcepageandApexextension,andwritestest
classesthatexercise95%coverageofthenewApexextension.
Changesetdeploymenttoproductionfailswiththetestcoveragewarning:"Average
testcoverageacrossallApexclassesandtriggersis74%,atleast75%testcoverage
isrequired."
WhatcanthedeveloperdotosuccessfullydeploythenewVisualforcepageand
extension?
A.CreatetestclassestoexercisetheVisualforcepagemarkup.
B.Select"DisableParallelApexTesting"torunallthetests.
C.Addtestmethodstoexistingtestclassesfrompreviousdeployments.
D.Select"FastDeployment''tobypassrunningallthetests.
31.developerneedstoautomaticallypopulatetheReportsTofieldinaContact
recordbasedonthevaluesoftherelatedAccountandDepartmentfieldsinthe
Contactrecord.
Whichtypeoftriggerwouldthedevelopercreate?
Choose2answers
Abeforeupdate
B.afterinsert
C.beforeinsert
D.afterupdate
32.AdeveloperIscreatinganapplicationtotrackenginesandtheirpartsAn
individualpartcanbeusedindifferenttypesofengines.
Whatdatamodelshouldbeusedtotrackthedataandtopreventorphanrecords'
A.Createajunctionobjecttorelatemanyenginestomanypartsthough
amasterdetailrelationship.
B.Createamasterdetailrelationshiptorepresenttheonetomanymodelof
enginestoparts
C.Createalookuprelationshiptorepresenthoweachpartrelatestotheparent
engineobject.
D.Createajunctionobjecttorelatemanyenginestomanypartsthroughalookup
relationship.
33.TowhichprimitivedatatypeinApexisacurrencyfieldautomicallyassigned?
A)Integer
B)Decimal
C)Double
D)currency
34.WhichresourcecanbeincludedinaLightningComponentbundle?
Choose2answers
A.Apexclass
B.AdobeFlash
C.Javascript
D.Documentation
35.Acustomexception"RecordNotFoundException"isdefinedbythefollowing
codeofblock?
publicclassRecordNotFoundExceptionextendsException()
whichstatementcanadeveloperusetothrowanexception?
choose2answers
A.thrownewRecordNotFoundException("problemoccured")
B.thrownewRecordNotFoundException()
C.throwRecordNotFoundException("problemoccured")
D.throwRecordNotFoundException()
36.WhencreatingunittestsinApex,whichstatementisaccurate?
A.Unittestswithmultiplemethodsresultinailmethodsfailingeverytimeone
methodfails.
B.Increasedtestcoveragerequireslargetestclasseswithmanylinesofcodeinone
method.
C.Triggersdonotrequireanyunittestsinordertodeploythemfromsandboxto
production.
D.SystemAssertstatementsthatdonotIncreasecodecoverage
contributeimportantfeedbackinunittests

37.publicStringgetStringMethodl(){
returnmyString
publicStringgetStringMethod2()(
if(myString==null)
myString='Method2'
returnmyString
<apexpagecontroller="myController">
{'myString),(!StringMethodll,(IStringMethod2),((myString)
</apex:page>
Whatdoestheuserseewhenaccessingthecustompage?
A.getMyString,
B.Method2,
C.Method2,getMyString
D.getMyStringMethod2,getMyString
38.WhatisavalidApexstatement?
A.MapconMap=(SELECTNameFROMContact)
B.Account[)acctList=newList<Account{newAccount()},
C.Integerw,x,y=123,z='abc',
DprivatestaticconstantDoublerate=775
39.AdeveloperhasasinglecustomcontrollerclassthatworkswithaVisualforce
WizardtosupportcreatingandeditingmultiplesObjects.Thewizardacceptsdata
fromuserinputsacrossmultipleVisualforcepagesandfromaparameteronthe
initialURL
Whichstatementisunnecessaryinsidetheunittestforthecustomcontroller?
A.publicExtendedController(ApexPages.StandardControllercntrl){)
B.ApexPages.currentPage().getParameters()put(input','TestValue).
C.Test.setCurrentPage(pageRef),
D.StringnextPage=controller.save().getUrl()
40.AdeveloperwantstodisplayalloftheavailablerecordtypesforaCaseobject.
ThedeveloperalsowantstodisplaythepicklistvaluesfortheCase.Statusfield.The
CaseobjectandtheCaseStatusfieldareonacustomvisualforcepage
Whichactioncanthedeveloperperformtogettherecordtypesandpicklistvalues
inthecontroller?
Choose2answers
A.UseSchema.PIcklistEntryreturnedbyCaseStatus
getDescribe().getPicklistValues().
B.UseSchema.RecordTypeinforeturnedbyCase.SObjectType
getDescribe().getRecordTypelnfos()
C.UseSOQLtoqueryCaserecordsintheorgtogetalltheRecordType
valuesavailableforCase.
D.UseSOQLtoqueryCaserecordsintheorgtogetallvaluefortheStatuspicklist
field.
41.AnSobjectnamedApplication_chasalookuprelationsniptoanothersOblect
namedPositionc.BothApplication_candPosition_chaveapicklistfieldnamed
Statusc.
WhentheStatus_cfieldonPositioncIsupdated,theStatus_cfieldon
Application_cneedstobepopulatedautomaticallywiththesamevalue,and
executeaworkflowruleonApplication_c.
Howcanadeveloperaccomplishthis?
A.BychangingApplicationc.Statuscintoarollupsummaryfield.
B.BychangingApplicationc.StatuscIntoaformulafield.
C.ByusinganApextriggerwithaDMLoperation.
D.Byconfiguringacrossobjectfieldupdatewithaworkflow.
42.Adeveloperwroteaworkflowemailalertoncasecreationsothatanemailis
senttothecaseownermanagerwhenacaseiscreated?
Whenwilltheemailbesent?
A.BeforeTriggerexecution
B.AfterCommittingtodatabase.
C.BeforeCommittingtodatabase
D.AfterTriggerexecution.
43.whichcoderepresentstheControllerinMVCarchitectureontheForce.com
platform
Choose2answers
A.javaScriptthatisusedtomakeamenuitemdisplayitself.
B.StandardControllersystemmethodsthatarereferencedby
Visualforce.
C.CustomApexandJavaScriptcodethatisusedtomanipulatedata.
D.AstaticresourcethatcontainsCSSandimages.
44AdeveloperneedstoprovideaVisualforcepagethatletsusersenterProduct
specificdetailsduringaSalescycle.
Howcanthisbeaccomplished?
Choose2answers
provideProductdataentry.
A.DownloadaManagedPackagefromtheAppExchangethatprovidesacustom
Visualforcepagetomodify.
B.CreateanewVisualforcepageandanApexcontrollertoprovide
Productdataentry.
C.CopythestandardpageandthenmakeaVisualforcepageforproductdataentry
D.DownloadanUnmanagedPackagefromtheAppExchangethat
providesacustomVisualforcepagetomodify.
45.Adeveloperwritesabeforeinserttrigger.
HOWcanthedeveloperaccesstheincomingrecordsinthetriggerbody?
A.ByaccessingtheTrigger.newcontextvariable.
B.ByaccessingtheTrigger.newRecordscontextvariable.
C.ByaccessingtheTrigger.newMapcontextvariable.
D.ByaccessingtheTripper.newListcontextvariable.
46.AdeveloperinaSalesforceorgwith100Accountsexecutesthefollowingcode
usingtheDeveloperconsole:
AccountmyAccount=newAccount(Name='MyAccount')
InsertmyAccount
For(Integerx=0x<250x++)
AccountnewAccount=newAccount(Name='MyAccount'+x)
try(
InsertnewAccount
catch(Exceptionex)1
SystemDebug(ex)
insertnewAccount(Naame='myAccount')
Howmanyaccountsareintheorgafterthiscodeisrun?
A.101
B.100
C.102
D.252
47.TheReview_cobjecthavealookuprelationshiptothejob_Application_c
object.Thejob_Application_cobjecthasamasterdetailrelationshipuptothe
position_cobject.Therelationshipisbasedontheautopopulateddefaults?
WhatistherecommendedwaytodisplayfielddatafromtherelatedReview_C
recordsaVisualforcepageforasinglePosition_crecord?
A.UtilizetheStandardControllerforPosition_candcrossobjectFormulaFields
ontheJob_ApplicationcobjecttodisplayReview_cdata.
B.UtilizetheStandardControllerforPosition_candaControllerExtensionto
queryforReview_Cdata.
c)UtilizetheStandardControllerforPosition_candexpressionsyntaxinthePage
todisplayrelatedReview_cthroughmeJob_Applicacion_cinject.
D.UtilizetheStandardControllerforPosition_candcrossobject
FormulaFieldsontheReview_cobjecttodisplayReview_cdata.
48.WhatisacapabilityoftheForce.comIDE?
Choose2answers
A.Rollbackdeployments.
B.RunApextests.
C.Downloaddebuglogs.
D.Editmetadatacomponents.
49.Whichcodesegmentcanbeusedtocontrolwhenthedowork()methodis
called?
A)for(triggerIsRunningt:triiger.new)
{
dowork()
}
B)if(trigger.Isrunning)
dowork()
C)
for(trigger.IsInsertt:triiger.new)
{
dowork()
}
D)if(trigger.IsInsert)
dowork()
50.Whenwouldadeveloperuseacustomcontrollerinsteadofacontroller
extension?
Choose2answers
A.WhenaVisualforcepageneedstoreplacethefunctionalityofa
standardcontroller.
B.WhenaVisualforcepagedoesnotreferenceasingleprimaryobject.
C.WhenaVisualforcepageshouldnotenforcepermissionsorfield
levelsecurity.
D.WhenaVisualforcepageneedstoaddnewactionstoastandardcontroller.
51.whatisavalidstatementaboutApexclassesandinterfaces?
Choose2answers
A.Thedefaultmodifierforaclassisprivate.
B.Exceptionclassesmustendwiththewordexception.
C.Aclasscanhavemultiplelevelsofinnerclasses.
D.Thedefaultmodifierforaninterfaceisprivate.
52Adeveloperhasthefollowingtriggerthatfiresafterinsertandcreatesachild
CasewheneveranewCaseiscreated.
List<Case>childCases=newList<Case>()
for(Caseparent:Trigger.new)
Casechild=newCase(Parentid=parent.id,Subject=parentSubject)
childCases.add(child)
insertchildCases
Whathappensafterthecodeblockexecutes?
A.MultiplechildcasesarecreatedforeachparentcaseinTrigger.new.
B.childcaseiscreatedforeachparentcaseinTrigger.new.
C.Thetriggerentersaninfiniteloopandeventuallyfails.
D.ThetriggerfailsiftheSubjectfieldontheparentisblank.
53.ADeveloperwantstocreateacustomobjecttotrackCustomerInvoices.
HowshouldInvoicesandAccountsberelatedtoensurethatallInvoicesarevisible
toeveryonewithaccesstoAccount?
A.TheAccountshouldhaveaLookuprelationshiptotheInvoice.
B.TheInvoiceshouldhaveaMasterDetailrelationshiptotheAccount.
C.TheAccountshouldhaveaMasterDetailrelationshiptotheInvoice.
D.TheInvoiceshouldhaveaLookuprelationshiptotheAccount.
54.Whatisavalidsourceanddestinationpairthatcansendorreceivechange
sets?
Choose2answers
A.Sandboxtoproduction.
B.Developereditiontosandbox.
C.Developereditiontoproduction.
D.Sandboxtosandbox.
55.AdeveloperneedstocreaterecordsfortheobJectProperty_c.Thedeveloper
createsthefollowingcodeblock:
01List<Propertyc>propertiesToCreate=helperClass.createProperties()
02try{
03
04}catch(Exceptionexp){
05//Exceptionhandling
06
Whichlineofcodewouldthedeveloperinsertatline03toensurethatatleast
somerecordsarecreated,evenifarecordshaveerrorsandfailtobecreated?
A.Database.insert(propertiesToCreate,System.ALLOW_PARTIAL)
B.insertpropertiesToCreate,
C.Database.insert(propertiesToCreate,false)
D.Database.insert(propertiesToCreate),
56.Whenthenumberofrecordsinarecordsetisunknown,whichcontrol
statementshouldadeveloperusetoimplementsetofcodethatexecutesforevery
recordintherecordset,withoutperforminga.size()or.length()methodcall?
A.For(init_stmt,exit_conditionincrement_stmt){}
B.Do{)While(Condition)
C.For(variable:list_or_set){
D.While(Condition){...}
57.WhatistheresultwhenaVisualforcepagecallsanApexcontroller,whichcalls
anotherApexclass,withthenresult!Multipleinhittingagovernorlimit?
A.Anychangesuptotheerroraresaved.
B.Anychangesuptotheerrorarerolledback.
C.Allchangesbeforeasavepointaresaved.
D.AllchangesaresavedinthefirstApexclass.
58.Adeveloperhasthefollowingcodeblock:
publicclassPaymentTax{
publicstaticdecimalSalesTax=0.0875
triggerOpportunityLineItemTriggeronOpportunityLineItem(beforeinsert,before
update){
PaymentTaxPayTax=newPaymentTax()
decimalProductTax=ProductCost*XXXXXXXXXXX
TocalculatetheproductTax,whichcodesegmentwouldadeveloperinsertatthe
XXXXXXXXXXXtomakethevaluetheclassvariableSalesTaxaccessiblewithin
thetrigger?
A.SalesTax
B.PayTax.SalesTax
C.PaymentTax.SalesTax
D.OpportunityLineItemTngger.SalesTax
59.OnaVisualforcepagewithacustomcontroller,howshouldadeveloperretrieve
arecordbyusinganIDparameterthatispassedontheURL?
A.Usetheconstructormethodforthecontroller.
B.Usethe$Action.ViewmethodintheVisualforcepage.
C.CreateanewPageReferenceobjectwiththeId.
D.Usethe<apex:detail>tagintheVisualforcepage.
60.Adeveloperwroteaworkflowemailalertoncasecreationsothatanemailis
senttothecaseownermanagerwhenacaseiscreated.
Whenwilltheemailbesent?
A.AfterCommittingtodatabase.
B.BeforeCommittingtodatabase.Calculator
C.BeforeTriggerexecution.
D.AfterTriggerexecution.
61.AdevelopercreatesanApexhelperclasstohandlecomplextriggerlogic.
HowcanthehelperclasswarnuserswhenthetriggerexceedsDMLgovernorlimits?
A.ByusingApexMessage.Message()todisplayanerrormessageafterthenumber
ofDMLstatementsisexce
B.ByusingMessaging.SendEmail()tocontinuethetransactionandsendanalert
totheuserafterthenumberumLstatementsisexceed
c)ByusingPageReference.setRedirect()toredirecttheusertoacustom
VisualforcepagebeforethenumberDMLstatementsisexceeded.
D)ByusingLimits.getDMLRows()andthendisplayinganerror
messagebeforethenumberofDMLstatementsexceeded.

62.Whichusercaneditarecordafterithasbeenlockedforapproval?
Choose2answers
AAnadministrator.
B.Anyuserwhoapprovedtherecordpreviously.
C.Auserwhoisassignedasthecurrentapprover.
D.Anyuserwithahigherroleinthehierarchy.

63.WhichtypeofinformationisprovidedbytheCheckpointstabintheDeveloper
Console?
Choose2answers
A.Exception
B.DebugStatement
C.Namespace
D.Time

64.WhatistheproperprocessforanApexUnitTest?
A.QueryfortestdatapsingSeeAllData=true.Callthemethodbeingtested.Verify
thattheresultsarecorrect
B.Createdatafortesting.ExecuterunAllTests().Verifythattheresultsarecorrect.
C.Createdatafortesting.Callthemethodbeingtested.Verifythatthe
resultsarecorrect.
D.QueryfortestdatausingSeeAllData=true.ExecuterunAllTests().Verifythatthe
resultsarecorrect.

65.Whichdeclarativemethodhelpsensurequalitydata?
Choose3answers
A.Exceptionhandling
B.Workflowalerts
C.validationrules
D.Lookupfilters
E.Pagelayouts

66.Whatisanaccurateconstructorforacustomcontrollernamed"MyController"?
A.publicMyController(){
account=newAccount()
B.publicMyController(SObjectobj){
account=(Account)obj
)
C.publicMyController(List<SObject>objects){
accounts=(List<Account>)objects
D.publicMyController(ApexPages.StandardControllerstdController){
account=(Account)stdController.getRecord()
}

67.Acompanywantsarecruitingappthatmodelscandidatesandinterviews
displaysthetotalnumberofinterviewseachcandidaterecordanddefinessecurity
oninterviewrecordsthatisindependentfromthesecurityoncandidaterecords.
Whatwouldadeveloperdotoaccomplishthistask?
Choose2answers
A.CreatearollupsummaryfieldontheCandidateobjectthatcountsInterview
records.
B.CreateamasterdetailrelationshipbetweentheCandidateandInterviewobjects.
C.CreatealookuprelationshipbetweentheCandidateandInterview
objects.
D.CreateatriggerontheInterviewobjectthatupdatesafieldonthe
Candidateobject.

68.Whatisagoodpracticeforadevelopertofollowwhenwritingatrigger?
Choose2answers
A.usingtheMapdatastructuretoholdqueryresultsbyID.
B.Using@futuremethodstoperformDMLoperations.
C.Usingthesetdatastructuretoensuredistinctrecords.
D.Usingsynchronouscalloutstocallexternalsystems

69.WhichcodeblockreturnstheListViewofanAccountobjectusingthefollowing
debugstatement?
system.debug(controller.getListViewOptions())
A.ApexPages.StandardSetControllercontroller=new
ApexPages.StandardSetController([SELECTIdFROMAccountLIMIT1])
B.ApexPages.StandardControllercontroller=new
ApexPages.StandardController(Database.getQueryLocator('selectIdfromAccount
Limit1')
C.ApexPages.StandardControllercontroller=new
ApexPagesStandardController([SELECTIdFROMAccountLIMIT1))
D.ApexPages.StandardSetControllercontroller=new
ApexPages.StandardSetController(Database.getQueryLocator('selectId
fromAccountLimit1')

70.WhichdatatypeorcollectionofdatatypescanSOQLstatementspopulateor
evaluateto?
Choose3answers
A.ABoolean
B.Aninteger
C.AlistofsObjects
D.AsinglesObject
E.Astring

71.Whichactioncanadeveloperperforminabeforeupdatetrigger?
Choose2answers
A.UpdatetheoriginalobjectusinganupdateDMLoperation.
B.DeletetheoriginalobjectusingadeleteDMLoperation.
C.ChangefieldvaluesusingtheTrigger,.newcontextvariable.
D.Displayacustomerrormessageintheapplicationinterface.

72.Wherecandebuglogfiltersettingsbeset?
Choose2answers
A.TheFilterslinkbythemonitoreduser'snamewithinthewebUi.
B.TheShowMorelinkonthedebuglog'srecord.
C.Onthemonitoreduser'sname.
D.TheLogFilterstabonaclassortriggerdetailpage.

73.Whatisthevalueofxafterthecodesegmentexecutes?
Stringx='A'
Integeri=10
if(i<15){
i=15
x='B'
else
if<20){
x='C'
else{
x='D'
}
A.B
B.C
C.D
D.A

74.WhencanadeveloperuseacustomVisualforcepageinaForce.com
application?
Choose2answers
A.Tocreatecomponentsfordashboardsandlayouts.
B.Todeploycomponentsbetweentwoorganizations.
C.TogenerateaPDFdocumentwithapplicationdata.
D.Tomodifythepagelayoutsettingsforacustomobject.

75.WhichstatementabouttheLookupRelationshipbetweenaCustomObjectand
aStandardObjectiscorrect?
A.TheLookupRelationshipontheCustomObjectcanpreventthedeletionofthe
StandardObject.
B.TheLookupRelationshipcat:Thatbemarkedasrequiredonthepagelayoutfor
theCustomObject.
C.TheCustomObjectwillbedeletedwhenthereferencedStandard
Objectisdeleted.
D.TheCustomObjectinheritssecurityfromthereferencedStandardObjects

76.Areviewerisrequiredtoenterareasoninthecommentsfieldonlywhena
candidateisrecommendedtobehired.
Whichactioncanadevelopertaketoenforcethisrequirement?
A.Createarequiredcommentsfield.
B.Createaformulafield.
C.Createavalidationrule.
D.CreatearequiredVisualforcecomponent.

77.TheSalesManagementteamhiresanewintern.Theinternisnotallowedto
viewOpportunities,butneedstoseetheMostRecentClosedDateofallchild
OpportunitieswhenviewinganAccountrecord.
Whatwouldadeveloperdotomeetthisrequirement?
A.CreateaWorkflowRuleontheOpportunityobjectthatupdatesafieldonthe
parentAccount.
B.CreateaformulafieldontheAccountobjectthatperformsaMAXonthe
OpportunityCloseDatefield.
C.CreatearollupsummaryfieldontheAccountobjectthatperformsa
MAXontheOpportunityCloseDatefield
D.CreateatriggerontheAccountobjectthatqueriestheCloseDateofthemost
recentOpportunities.

78.Onwhichobjectcananadministratorcreatearollupsummaryfield?
A.Anyobjectthatisonthemastersideofamasterdetailrelationship.
B.Anyobjectthatisontheparentsideofalookuprelationship.
C.Anyobjectthatisonthedetailsideofamasterdetailrelationship.
D.Anyobjectthatisonthechildsideofalookuprelationship.

79.AVisualforcepagehasastandardcontrollerforanobjectthathasalookup
relationshiptoaparentobject.
Howcanadeveloperdisplaydataffromtheparentrecordonthepage?
A.ByusingSOQLontheVisualforcepagetoqueryfordatafromthe
parentrecord.
B.Byusingmergefieldsyntaxtoretrievedatafromtheparentrecord.
C.Byaddingasecondstandardcontrollertothepagefortheparentrecord.
D.Byusingarollupformulafieldonthechildrecordtoincludedatafromthe
parentrecord.

80.AdeveloperneedstocreateaVisualforcepagethatwilloverridestandard
Accounteditbutton.Thepagewillbeusedtovalidatetheaccount'saddressusinga
SOQLquery.Thepagewillalsoallowtheusertomakeeditstotheaddress.
WherewouldthedeveloperwritetheAccountaddressverificationlogic?
A.InaControllerExtension.
B.InaCustomController.
C.InaStandardController.
D.InaStandardExtension.

81.AdeveloperwantstolistalloftheTasksforeachAccountontheAccountdetail
page.WhenaTaskiscreatedforaContact,whatdoesthedeveloperneedtodoto
displaytheTaskontherelatedAcrecord?
A.CreateanAccountformulafieldthatdisplaystheTaskinformation.
B.Nothing.TheTaskisautomaticallydisplayedontheAccountpage.
C.CreateaWorkflowRuletorelatetheTasktotheContact'sAccount.
D.Nothing.TheTaskcannotberelatedtoanAccountandaContact.

82.WhatisacapabilityofaStandardSetController?
Choose2answers
A.Itextendsthefunctionalityofastandardorcustomcontroller
B.Itallowspagestoperformmassupdatesofrecords.
C.Itallowspagestoperformpaginationwithlargerecordsets.
D.Itenforcesfieldlevelsecuritywhenreadinglargerecordsets.

83.Adeveloperhasthefollowingcode.
try
{
List<String>nameList
Accounta
Strings=a.Name
nameList.add(s)
}
catch(ListExceptionle)
{
System.debug('ListException')
}
catch(NullPointerExceptionnpe)
{
System.debug('NullPointerException')
}
catch(Exceptione)
{
System.debug('GenericException')
}
Whatmessagewouldbelogged?
A.Nomessageislogged
B.GenericException
C.ListException
D.NullPointerException

84.Whichstatementaboutchangesetdeploymentsisaccurate?
Choose3answers
A.Theycanbeusedonlybetweenrelatedorganizations.
B.Theyrequireadeploymentconnection.
C.Theyuseanallornonedeploymentmodel.
DTheycanbeusedtotransferContactrecords.
E.Theycanbeusedtodeploycustomsettingsdata.

85.

86.HowwouldadeveloperuseSchemaBuildertodeleteacustomfieldfromthe
Accountobjectthatwasrequiredforprototypingbutisnolongerneeded?
A.RemoveallthereferencesInthecodeandthenthefieldwillberemovedfrom
SchemaBuilder.
B.Removeallreferencesfromthecodeandthendeletethecustomfield
fromSchemaBuilder.
C.MarkthefieldfordeletioninSchemaBuilderandthendeleteitfromthe
declarativeUI.
D.DeletethefieldfromSchemaBuilderandthenallreferencesinthecodewillbe
removed.

87.Whatisanaccuratestatementaboutvariablescope?
Choose3answers
A.Subblockscannotreuseaparentblock'svariablename.
B.Avariablecanbedefinedatanypointinablock.
C.Parallelblockscanusethesamevariablename.
D.Subblockscanreuseaparentblock'svariablenameifitsvalueisnull.
E.Astaticvariablecanrestrictthescopetothecurrentblockifitsvalue
isnull.

88.Whenthevalueofafieldinanaccountrecordisupdated,whichmethodwill
updatethevalueofcustomfieldrelatedopportunities?
Choose2answers
A.AnApextriggerontheAccountobject.
B.AProcessBuilderontheAccountobject.
C.AcrossobjectformulafieldontheAccountobject.
D.AWorkflowRuleontheAccountobject.

89.AdevelopercreatesanApexclassthatincludesprivatemethods.
Whatcanthedeveloperdotoensurethattheprivatemethodscanbeaccessedby
thetestclass?
A.AddtheTestVisibleattributetotheApexclass.
B.AddtheSeeAllDataattributetothetestmethods.
C.AddtheSeeAllDataattributetothetestclass.
D.AddtheTestVisibleattributetotheApexmethods.

90.Whichscenarioisinvalidforexecutionbyunittests,
A.Executingmethodsfornegativetestscenanos.
B.Executingmethodsasdifferentusers.
C.LoadingtestdatainplaceofuserinputforFlows.
D.LoadthestandardPricebookIDusingasystemmethod.

91.Adeveloperrunsthefollowinganonymouscodeblock:
List<Account>acc=[SELECTIdFROMAccountLIMIT10]
Deleteacc
Database.emptyRecycleBin(acc)
system.debug(Limits.getDMLStatements()+1,1
+Limits.getLimitDMLStatements())
Whatistheresult?
A.11,150
B.150,2
C.150,11
D.2,150

92.WherecancustomrollupsummaryfieldsbecreatedusingStandardObject
relationships?
Choose3answers
A.OnAccountusingCaserecords.
B.OnAccountusingOpportunityrecords.
C.OnOpportunityusingOpportunityProductrecords.
D.OnQuoteusingOrderrecords.
E.OnCampaignusingCampaignMemberrecords.

93.Adeveloperhasthfollowingquery
Contactc=[SELECTid,firstname,lastname,emailFROMContactWHERE
lastname='Smith']
WhatdoesthequeryreturnifthereisnoContactwiththelastname"Smith"?
A.AContactwithemptyvalues.
B.AContactinitializedtonull.
C.AnemptyListofContacts.
D.Anerrorthatnorowsarefound.

94.Whatisanimportantconsiderationwheninamultitenantenvironment?
A.Polyglotpersistanceprovidessupportforaglobal,multilingualuser
baseinmultipleorgsonmultipleinstances
B.Governorlimitspreventtenantsfromimpactingperformanceinmultipleorgs
onthesameinstance
C.Uniquedomainnamestakestheplaceofnamespaceforcodedevelopedfor
multipleorgsformultipleinstances
D.Orgwidedatasecuritydetermineswhetherothertenantscanseedatainmultiple
orgsonthesameinst

95.IntheLightingComponentframework,whichresourcecanbeusedtofire
events?
Choose2answers
A.Visualforcecontrolleroptions
B.Thirdpartywebservicecode
C.ThirdpartyJavascriptcode
D.Javascriptcontrolleractions

96.Whatisthecapabilityofformulafields?
Choose3answers
A.DisplaythepreviousvalueforthefieldusingthePRIORVALUEfunction.
B.Returnanddisplayafieldvaluefromanotherobjectusinga
VLOOKUPfunction.
C.DeterminewhichofthreedifferentimagestodisplayusingIF
function.
D.GeneratethelinkusingtheHYPERLINKfunctionusingaspecificrecordina
legacysystem.
E.DetermineifadatetimefieldhaspassedusingtheNOWfunction.

97.Inasinglerecord,auserselectsmultiplevaluesfromamultiselectpicklist.
HowaretheselectedvaluesrepresentedinApex?
A.AsaStringwitheachvalueseperatedbyacomma.
B.AsaList<String>witheachvalueasaelementinthelist.
C.AsaStringwitheachvalueseperatedbysemicolon.
D.AsaSet<String>witheachvalueasaelementintheset.

98.WhatisthecapabilityofForce.comIDE?
Choose2answers
A.Editmetadatacomponents
B.RunApextests
C.Rundebuglogs
D.Rollbackdeployments

99.AHierarchyCustomSettingstoresaspecificURLforeachprofileinSalesforce.
WhichstatementcanadeveloperusetoretrievethecorrectURLforthecurrent
user'sprofileanddisplaythisVisualforcePage?
A.{$Setup.Url_Settings_c.Instance[Profile.Id].URL__c}
B.{!$Setup.Url_Settings_c.URL__c}
C.{!$Setup.Url_Settings_c[Profile.Id,URL__c}
D.{!$Setup.Url_Settings_c[$Profile.Id,URL__c}
100.AdeveloperwritesaSOQLquerytofindchildrecordsforaspecificparent
Howmanyspecificlevelscanbereturnedinasinglequery?
A.3
B.5
C.1
D.7

101.Adeveloperneedstoknowifalltestscurrentlypassinsalesforceenvironment
Whichfeaturecanthedeveloperuse?
Choose2answers
A.DeveloperConsole.
B.ANTMigrationTool
C.SalesforceUIApexTestExecution
D.WorkbenchMetadataRetrieval

102.Whichstatementshouldadeveloperavoidusinginsideproceduralloops?
Choose2answers
A.System.debug('AmountofCPUtime(inms)usedsofar:'+
Limits.getCpuTime())
B.updatecontactList
C.List<Contact>contacts=[selectid,salutation,firstname,lastname,
emailfromContactwhereaccount=a.id
D.if(o.accountid==aid)

103.whichstatementwouldadeveloperusewhencreatingtestdataforproducts
andpricebooks?
A.ListobjList=Test.loadData(Account.sObjectType,'myResource')
B.Pricebookpb=newPricebook()
C.IdpricebookId=Test.getStandardPricebookId()
D.IsTest(SeeAllData=false)

104.Howcanadeveloperdetermine,fromthedescribeSObjectResult,ifthecurrent
userwillbeabletocreaterecordanobjectinapex?
AByusingthehasAccess()Method.
B.ByusingtheisCreatable()method.
c.ByusingtheisInsertable()method.
D.ByusingthecanCreate()method.

105.WhatisavalidstatementaboutApexclassesandinterfaces?
Choose2answers
A.Exceptionclassesmustendwiththewordexception.
B.Aclasscanhavemultiplelevelsofinnerclasses.
C.Thedefaultmodifierforaclassisprivate.
D.Thedefaultmodifierforaninterfaceisprivate.

106.ThesalesmanagementteamrequiresthattheLeadSourcefieldoftheLead
recordbepopulatedwhenaLeadisconverted.
WhatwouldadeveloperusetoensurethatauserpopulatestheLeadSourcefield
priortoconvertingaLead?
A.Processbuilder
B.Validationrule
C.Formulafield
D.Workflowrule

107.AdevelopercreatedanApextriggerusingtheDeveloperConsoleandnow
wantstodebugcode.
HowcanthedeveloperaccomplishthisintheDeveloperConsole?
A.OpentheLogstabintheDeveloperConsole.
B.SelecttheOverrideLogTriggerscheckboxforthetrigger.
C.AddtheusernameintheLogInspector.
D.OpentheProgresstabintheDeveloperConsole.
PostedbyArshiat23:23

+1 Recommend this on Google

5comments:

anand 6April2016at07:48
HIArish,

allanswersarenotright!
Reply

Replies

Rahul 13May2016at19:15
HiAnandWhichanswersarewrong

PriyankaSingh 8June2016at03:27
yes
iagree..2B

PriyankaSingh 8June2016at03:27
yes
iagree..2B

Reply

Rahul 13May2016at19:14
Thiscommenthasbeenremovedbytheauthor.
Reply

Enteryourcomment...

Commentas: DarshitSanghavi(Google) Signout


Publish Preview Notifyme

Home

Subscribeto:PostComments(Atom)

Simpletemplate.Templateimagesbyluoman.PoweredbyBlogger.

You might also like