Pass4itsure > Salesforce > Salesforce Developer > DEX-450 > DEX-450 Online Practice Questions and Answers

DEX-450 Online Practice Questions and Answers

Questions 4

Why would a developer consider using a custom controller over a controller extension?

A. To increase the SOQL query governor limits.

B. To implement all of the logic for a page and bypass default Salesforce functionality

C. To leverage built-in functionality of a standard controller

D. To enforce user sharing settings and permissions

Buy Now
Questions 5

Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)

A. tag

B. Inline CSS

C. tag

D. tag

E. A static resource

Buy Now
Questions 6

A company would like to send an offer letter to a candidate, have the candidate sign it electronically, and then send the letter back.What can a developer do to accomplish this?

A. Create a visual workflow that will capture the candidate's signature electronically

B. Develop a Process Builder that will send the offer letter and allow the candidate to sign it electronically.

C. Install a managed package that will allow the candidate to sign documents electronically

D. Create an assignment rule that will assign the offer letter to the candidate

Buy Now
Questions 7

A visualforce page uses the contact standard controller. How can a developer display the name from the parent account record on the page?

A. Use SOQL syntax to find the related accounts name field

B. Use the {!contact.account.name} merge field syntax

C. Use an additional standard controller for accounts

D. Use additional apex logic within the controller to query for the name field

Buy Now
Questions 8

What is a characteristic of the Lightning Component Framework? Choose 2 answers:

A. It has an event-driven architecture.

B. It works with existing Visualforce pages.

C. It includes responsive components.

D. It uses XML as its data format.

Buy Now
Questions 9

Which statement would a developer use when creating test data for products and pricebooks?

A. Id pricebookId = Test.getStandardPricebookId();

B. Pricebook pb = new Pricebook();

C. IsTest(SeeAllData = false);

D. List objList = Test.loadData(Account.sObjectType, 'myResource');

Buy Now
Questions 10

A developer needs to have records with specific field values in order to test a new Apex class. What should the developer do to ensure the data is available to the test?

A. Use Test.loadData() and reference a CSV file.

B. Use SOQL to query the org for the required data.

C. Use Test.loadData() and reference a static resource.

D. Use Anonymous Apex to create the required data.

Buy Now
Questions 11

An Account trigger updates all related Contacts and Cases each time an Account is saved using the

following two DML statements:

update allContacts; update allCases;

What is the result if the Case update exceeds the governor limit for maximum number of DML records?

A. The Account save succeeds, Contacts are updated, but Cases are not.

B. The Account save fails and no Contacts or Cases are updated

C. The Account save is retried using a smaller trigger batch size.

D. The Account save succeeds and no Contacts or Cases are updated

Buy Now
Questions 12

A visualforce interface is created for Case Management that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The visualforce page should include which attribute(s) to correctly implement controller functionality?

A. StandardController = "case" and extensions =" myControllerExtension"

B. Extensions=" myControllerExtension"

C. Controller=" myControllerExtension"

D. Controller = "case" and extensions =" myControllerExtension"

Buy Now
Questions 13

A custom exception "RecordNotFoundException" is defined by the following code of block.public class RecordNotFoundException extends Exception()which statement can a developer use to throw a custom exception?choose 2 answers

A. Throw new RecordNotFoundException("problem occured");

B. Throw new RecordNotFoundException();

C. throw RecordNotFoundException("problem occured");

D. Throw RecordNotFoundException();

Buy Now
Exam Code: DEX-450
Exam Name: Programmatic Development using Apex and Visualforce in Lightning
Last Update: Apr 19, 2024
Questions: 456
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$45.99

VCE

$49.99

PDF + VCE

$59.99