Exit demo DEX-450 Programmatic Development using Apex and Visualforce in Lightning PDF format · free preview

SalesForce DEX-450 - Questions & Answers

Free preview · every answer includes a full explanation

Product page: https://prepkeys.com/dex-450.html

Question 1
Multiple choice

What are two benefits of the Lightning Component framework? (Choose two.)

A.

It simplifies complexity when building pages, but not applications.

B.

It provides an event-driven architecture for better decoupling between components.

C.

It promotes faster development using out-of-box components that are suitable for desktop and mobile devices.

D.

It allows faster PDF generation with Lightning components.

Question 2
Single choice

A Visualforce page is required for displaying and editing Case records that includes both standard and custom functionality defined in an Apex class called myControllerExtension.

The Visualforce page should include which <apex:page> attribute(s) to correctly implement controller functionality?

A.

controller="Case" and extensions="myControllerExtension"

B.

extensions="myControllerExtension"

C.

controller="myControllerExtension"

D.

standardController="Case" and extensions="myControllerExtension"

Question 3
Multiple choice

A Platform Developer needs to write an Apex method that will only perform an action if a record is assigned to a specific Record Type.

Which two options allow the developer to dynamically determine the ID of the required Record Type by its name? (Choose two.)

A.

Make an outbound web services call to the SOAP API.

B.

Hardcode the ID as a constant in an Apex class.

C.

Use the getRecordTypeInfosByName() method in the DescribeSObjectResult class.

D.

Execute a SOQL query on the RecordType object.

Question 4
Multiple choice

What are three characteristics of static methods? (Choose three.)

A.

Initialized only when a class is loaded

B.

A static variable outside of the scope of an Apex transaction

C.

Allowed only in outer classes

D.

Allowed only in inner classes

E.

Excluded from the view state for a Visualforce page

Question 5
Multiple choice

A platform developer at Universal Containers needs to create a custom button for the Account object that, when clicked, will perform a series of calculations and redirect the user to a custom Visualforce page.

Which three attributes need to be defined with values in the <apex:page> tag to accomplish this? (Choose
three.)

A.

action

B.

renderAs

C.

standardController

D.

readOnly

E.

extensions

Question 6
Multiple choice

Given:

Map<ID, Account> accountMap = new Map>ID, Account> ([SELECT Id, Name FROM Account]);

What are three valid Apex loop structures for iterating through items in the collection? (Choose three.)

A.

for (ID accountID : accountMap.keySet()) {...}

B.

for (Account accountRecord : accountMap.values()) {...}

C.

for (Integer i=0; I < accountMap.size(); i++) {...}

D.

for (ID accountID : accountMap) {...}

E.

for (Account accountRecord : accountMap.keySet()) {...}

Question 7
Single choice

A method is passed a list of generic sObjects as a parameter.

What should the developer do to determine which object type (Account, Lead, or Contact, for example) to cast each sObject?

A.

Use the first three characters of the sObject ID to determine the sObject type.

B.

Use the getSObjectType method on each generic sObject to retrieve the sObject token.

C.

Use the getSObjectName method on the sObject class to get the sObject name.

D.

Use a try-catch construct to cast the sObject into one of the three sObject types.

Question 8
Multiple choice

Which three declarative fields are correctly mapped to variable types in Apex? (Choose three.)

A.

Number maps to Decimal.

B.

Number maps to Integer.

C.

TextArea maps to List of type String.

D.

Date/Time maps to Dateline.

E.

Checkbox maps to Boolean.

Question 9
Single choice

A developer wrote a unit test to confirm that a custom exception works properly in a custom controller, but the test failed due to an exception being thrown.

Which step should the developer take to resolve the issue and properly test the exception?

A.

Use try/catch within the unit test to catch the exception.

B.

Use the finally bloc within the unit test to populate the exception.

C.

Use the database methods with all or none set to FALSE.

D.

Use Test.isRunningTest() within the custom controller.

Question 10
Single choice

What should a developer use to implement an automatic Approval Process submission for Cases?

A.

An Assignment Rule

B.

Scheduled Apex

C.

Process Builder

D.

A Workflow Rule

Showing 10 of 456 questions · Unlock the full set