Exam Code : DEX-450
Exam Name : Programmatic Development using Apex and Visualforce in Lightning Experience
Vendor Name :
"SalesForce"
DEX-450 Dumps DEX-450 Braindumps
DEX-450 Real Questions DEX-450 Practice Test DEX-450 Actual Questions
killexams.com SalesForce DEX-450
Programmatic Development using Apex and Visualforce in Lightning Experience
https://killexams.com/pass4sure/exam-detail/DEX-450
Question: 88
In a single record, a user selects multiple values from a multi-select picklist. How are the selected values represented in Apex?
As a String with each value separated by a comma
As a Set with each value as an element in the set
As a String with each value separated by a semicolon
As a List with each value as an element in the list Previous
Question: 89
What is a benefit of using an after insert trigger over using a before insert trigger?
An after insert trigger allows a developer to bypass validation rules when updating fields on the new record.
An after insert trigger allows a developer to insert other objects that reference the new record.
An after insert trigger allows a developer to make a callout to an external service.
An after insert trigger allows a developer to modify fields in the new record without a query.
Question: 90
Why would a developer consider using a custom controller over a controller extension?
To increase the SOQL query governor limits.
To implement all of the logic for a page and bypass default Salesforce functionality
To leverage built-in functionality of a standard controller
To enforce user sharing settings and permissions
Question: 91
Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class.
What is the end result?
The API name is not changed and there are no other impacts.
The API name of the field and the reference in the test class is changed.
The API name of the field is changed, and a warning is issued to update the class.
The API name of the field and the reference in the test class is updated.
Question: 92
Which set of roll-up types are available when creating a roll-up summary field?
COUNT, SUM, MIN, MAX
AVERAGE, SUM, MIN, MAX
SUM, MIN, MAX
AVRAGE, COUNT, SUM, MIN, MAX
Question: 93
Which two number expressions evaluate correctly? (Choose two.)
Double d = 3.14159;
Integer I = 3.14159;
Decimal d = 3.14159; D. Long l = 3.14159;
Question: 94
How should a developer prevent a recursive trigger?
Use a “one trigger per object” pattern.
Use a static Boolean variable.
Use a trigger handler.
Use a private Boolean variable.
Question: 95
A developer needs to create a Visualforce page that displays Case data. The page will be used by both support reps and support managers. The Support Rep profile does not allow visibility of the Customer_Satisfaction c field, but the Support Manager profile does.
How can the developer create the page to enforce Field Level Security and keep future maintenance to a minimum?
Create one Visualforce Page for use by both profiles.
Use a new Support Manager permission set.
Create a separate Visualforce Page for each profile.
Use a custom controller that has the with sharing keywords.
Question: 96
How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex?
By using the isInsertable() method.
By using the isCreatable() method.
By using the hasAccess() method.
By using the canCreate() method.
Question: 97
A newly hired developer discovers that there are multiple triggers on the case object. What should the developer consider when working with triggers?
Developers must dictate the order of trigger execution.
Trigger execution order is based on creation date and time.
Unit tests must specify the trigger being tested.
Trigger execution order is not guaranteed for the same sObject.
Question: 98
Which two statements are true about using the @testSetup annotation in an Apex test class? (Choose two.)
The @testSetup annotation cannot be used when the @isTest(SeeAllData=True) annotation is used.
Test data is inserted once for all test methods in a class.
Records created in the @testSetup method cannot be updates in individual test methods.
The @testSetup method is automatically executed before each test method in the test class is executed.
Question: 99
A developer has the following query: Contact c = [SELECT id, firstname, lastname, email FROM Contact WHERE lastname = ‘Smith’];
What does the query return if there is no Contact with the last name ‘Smith’?
A contact initialized to null.
An error that no rows are found.
An empty List of Contacts.
A Contact with empty values.
Question: 100
Which SOQL query successfully returns the Accounts grouped by name?
SELECT Type, Max(CreatedDate) FROM Account GROUP BY Name
SELECT Name, Max(CreatedDate) FROM Account GROUP BY Name
SELECT Id, Type, Max(CreatedDate) FROM Account GROUP BY Name
SELECT Type, Name, Max(CreatedDate) FROM Account GROUP BY Name LIMIT 5