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

DEX-450 Online Practice Questions and Answers

Questions 4

Which option should a developer use to create 500 Accounts and make sure that duplicates are not created for existing Account Sites?

A. Data Import Wizard

B. Salesforce-to-Salesforce

C. Sandbox template

D. Data Loader

Buy Now
Questions 5

What should a developer working in a sandbox use to exercise a new test Class before the developer deploys that test production?Choose 2 answers

A. The REST API and ApexTestRun method

B. The Apex Test Execution page in Salesforce Setup.

C. The Test menu in the Developer Console.

D. The Run Tests page in Salesforce Setup.

Buy Now
Questions 6

Which Apex collection is used to ensure that all values are unique?

A. A Set

B. An Enum

C. A List

D. An sObject

Buy Now
Questions 7

How should the developer overcome this problem? While writing a test class that covers an OpportunityLineItem trigger, a Developer is unable to create a standard Pricebook since one already exist in the org.

A. Use @IsTest(SeeAllData=true) and delete the existing standard Pricebook.

B. Use @TestVisible to allow the test method to see the standard Pricebook.

C. Use Test.getStandardPricebbokId()to get the standard Pricebook ID.

D. Use Test.loaddata() and a Static Resource to load a standard Pricebook

Buy Now
Questions 8

A company wants to create an employee rating program that allows employees to rate each other. An employee's average rating must be displayed on the employee record. Employees must be able to create rating records, but are not allowed to create employee records. Which two actions should a developer take to accomplish this task? choose 2 answers

A. Create a master-detail relanstionship between the rating and employee object

B. Create a trigger on the rating object that updates a field on the employee object

C. Create a roll-up sumary field on the employee and use avg to calculate the average rating score

D. Create a lookup realntionship beteween the rating and employee object

Buy Now
Questions 9

A developer uses a Test Setup method to create an Account named 'Test'. The first test method deletes the Account record. What must be done in the second test method to use the Account?

A. Use SELECT Id from Account where Name='Test'

B. Restore the Account using an undeleted statement

C. The Account cannot be used in the second test method

D. Call the Test Setup method at the start of the test

Buy Now
Questions 10

In which two org types can a developer create new Apex Classes? Choose 2 answers

A. Developer Edition

B. Sandbox

C. Enterprise Edition

D. Unlimited

Buy Now
Questions 11

A developer creates a new Visualforce page and Apex extension, and writes test classes that exercise 95% coverage of the new Apex extension.Change set deployment to production fails with the test coverage warning: "Average test coverage across all Apex classes and triggers is 74%, at least 75% test coverage is required."

What can the developer do to successfully deploy the new Visualforce page and extension?

A. Create test classes to exercise the Visualforce page markup.

B. Select "Disable Parallel Apex Testing" to run all the tests.

C. Add test methods to existing test classes from previous deployments.

D. Select "Fast Deployment'' to bypass running all the tests.

Buy Now
Questions 12

On a Visualforce page with a custom controller, how should a developer retrieve a record by using an ID that is passed on the URL?

A. Use the constructor method for the controller.

B. Use the $Action.View method in the Visualforce page.

C. Create a new PageReference object with the Id.

D. Use the tag in the Visualforce page.

Buy Now
Questions 13

Which statement should a developer avoid using inside procedural loops? (Choose 2)

A. System.debug('Amount of CPU time (in ms) used so far: ' + Limits.getCpuTime() );

B. List contacts = [SELECT Id, Salutation, FirstName, LastName, Email FROM Contact WHERE AccountId = :a.Id];

C. If(o.accountId == a.id)

D. Update contactList;

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

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99