DEV-501 Exam - Certified Force.com Advanced Developer

certleader.com

Proper study guides for DEV-501 Certified Force.com Advanced Developer certified begins with preparation products which designed to deliver the by making you pass the DEV-501 test at your first time. Try the free right now.

Free demo questions for Salesforce DEV-501 Exam Dumps Below:

NEW QUESTION 1
A developer can use optional catch statements for any exception type in a try-catch block. However, the general exception type, 'Exception', must only be used by the last catch() block.
EXAMPLE:
try{
// Some risky code.
}
catch(SomeExceptionType e){
// Handle one exception type.
}
catch(SomeOtherExceptionType e){
// Handle another exception type.
}
catch(Exception e){
// This must be the last catch block.
}
~|~
(Select all that apply)

  • A. Make calls to methods using both valid and invalid inputs.
  • B. In the case of conditional logic (including ternary operators), execute each branch of code logic.
  • C. Only test code using the System Administrator profile.
  • D. Focus solely on test coverage percentage score.
  • E. Complete successfully without throwing any exceptions, unless those errors are expected and caught in a try...catch block.
  • F. None of these

Answer: ABE

NEW QUESTION 2
In the Universal Containers recruiting app, there is a master-detail relationship between the Job Application and Review objects. Job Application is the master object.
If a Job Application record is deleted, what will happen to any associated Review records?

  • A. The Review record is also deleted
  • B. The owner of the Review record changes
  • C. No change to the Review record
  • D. An error message is displayed

Answer: A

NEW QUESTION 3
Which field is available as part of the translation workbench for a validation rule?

  • A. Formula
  • B. Description
  • C. Error Message
  • D. Rule Criteria

Answer: C

NEW QUESTION 4
In a recruiting application, a Position custom object is related to a Salary custom object. Sensitive information, such as current salary, is stored on the Salary object. All users should be able to at least view position information. However, only select individuals should be able to read salary records.
How should a developer accomplish this?

  • A. Create a lookup relationship between Position and Salary; set organization-wide defaults to Public Read-Only for Position and Private for Salary
  • B. Create a master-detail relationship between Position and Salary; set organization-wide defaults to Private for Position and Salary
  • C. Create a master-detail relationship between Position and Salary; set organization-wide defaults to Public Read only for Position and Private for Salary
  • D. Create a lookup relationship between Position and Salary; set organization-wide defaults to Private for Position and Salary

Answer: A

NEW QUESTION 5
is a placeholder for content that is rendered in a specific part of the parent component, such as the header or footer of an <apex:dataTable>.

  • A. <apex:labelSet>
  • B. <apex:customName>
  • C. <c:facet>
  • D. <apex:facet>
  • E. <c:labelSet>
  • F. None of these

Answer: D

NEW QUESTION 6
How does the Email service process inbound emails? (No Answer)

  • A. Apex classes
  • B. Exceptions
  • C. FALSE
  • D. catch

Answer: A

NEW QUESTION 7
Which trigger context variable is not saved in the after trigger and causes an exception to be thrown?

  • A. Trigger.new
  • B. addError
  • C. Primitive
  • D. TRUE

Answer: A

NEW QUESTION 8
What can the Force.com IDE be used to create? (No Answer)

  • A. Apex code, Visualforce pages, and controllers
  • B. Standalone, database class methods
  • C. Record level access
  • D. Apex, Visualforce, and APIs

Answer: A

NEW QUESTION 9
This Apex class allows developers to reference an instantiation of a page.

  • A. ExistingPage Class
  • B. VisualforcePage Class
  • C. PageReference Class
  • D. URLReference Class
  • E. PageURLReference Class
  • F. None of the above

Answer: C

NEW QUESTION 10
Which exception type should be checked for when catching exceptions thrown when governor limits are exceeded?

  • A. StackOverflowException
  • B. LimitException
  • C. GovernorException
  • D. PlatformLimitException
  • E. InvalidLimitException
  • F. None of these

Answer: F

NEW QUESTION 11
In a recruiting application, a master-detail relationship has been defined between two custom objects. Job Applications (master) and Reviews (detail).
Which statement is TRUE? Choose 2 answers

  • A. Review records will inherit ownership from the associated job application.
  • B. Deleting a job application record will delete associated review records.
  • C. The master-detail relationship between Job Applications and Reviews is defined on the Job Application object.
  • D. Review records may exist without an associated job application.

Answer: AB

NEW QUESTION 12
A button that is rendered as an HTML input element with the type attribute set to submit, reset, or image, depending on the <apex:commandButton> tag's specified values. The button executes an action defined by a controller, and then either refreshes the current page, or navigates to a different page based on the PageReference variable that is returned by the action.
An <apex:commandButton> component must always be a child of an <apex:form> component.
See also: <apex:commandLink>

  • A. apex:commandButton
  • B. apex:flash
  • C. apex:emailPublisher
  • D. apex:actionRegion

Answer: A

NEW QUESTION 13
Which of the following are collection data types?
✑ String
✑ Map
✑ List
✑ Date
✑ Set
✑ Number

  • A. For loops
  • B. FALSE
  • C. Primitive
  • D. Map, List, Set

Answer: D

NEW QUESTION 14
Which of the following code will u use to instantiate a map called numbers that has integers as keys and strings as values?
✑ Map<SLrng, :nLeger> numbers = new Map<String, Integer>;
✑ Map<ThLeyer, SLring> numbers = new Map<Integer, String>;
✑ Map<nLeger> numbers = new Map<String>;
✑ Map<Slring> numbers = new Map<Integer>;

  • A. Map<Integer, String> numbers = new Map<Integer, String>;
  • B. Code contained in a trigger
  • C. Failure response settings
  • D. Manual sharing, apex sharing

Answer: A

NEW QUESTION 15
The System.runAs() functionality can be used to test and verify proper data sharing and data access. However, System.runAs() does NOT validate CRUD or Field Level Security permissions.

  • A. True
  • B. False

Answer: B

NEW QUESTION 16
Developers can use Visualforce pages to: (Select all that apply)

  • A. Override standard buttons
  • B. Override tab overview pages
  • C. Define custom tabs
  • D. Embed components in detail page layouts
  • E. Create dashboard components or custom help pages
  • F. Create custom Console components.
  • G. None of these

Answer: ABCDEF

NEW QUESTION 17
What three classes along with the Messaging.InboundEmailHandler are used to handle inbound email messages in Salesforce? (No Answer)

  • A. Apex code, Visualforce pages, and controllers
  • B. Messaging.InboundEmail, Messaging.InboundEmailResult, Messaging.InboundEnvelope
  • C. Messaging.InboundEmailHandler
  • D. Make calls to methods using both valid and invalid inputs.

Answer: B

NEW QUESTION 18
What two forms of dml operations can be used in apex?

  • A. SOQL statements
  • B. Traditional for loops
  • C. Standalone, database class methods
  • D. Failure response settings

Answer: C

NEW QUESTION 19
The of a Visualforce page is composed of all the data that's necessary to maintain the state of the controller during server requests (like sending or receiving data).

  • A. Page Memory
  • B. State Settings
  • C. Cookie Collection
  • D. View State
  • E. Page Header
  • F. None of these

Answer: D

NEW QUESTION 20
Which keywords should u specify to define a constant?
✑ static and exception
✑ static and final
✑ static and private
✑ exception and final(No Answer)

  • A. Setup menu
  • B. Multi-tenant
  • C. static and final
  • D. SOQL statements

Answer: C

Recommend!! Get the Full DEV-501 dumps in VCE and PDF From Certleader, Welcome to Download: https://www.certleader.com/DEV-501-dumps.html (New 239 Q&As Version)