Latest DEX-450 Practice Tests with Actual Questions

Get Complete pool of questions with Premium PDF and Test Engine

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?

  1. As a String with each value separated by a comma

  2. As a Set with each value as an element in the set

  3. As a String with each value separated by a semicolon

  4. As a List with each value as an element in the list Previous




Answer: C



Question: 89


What is a benefit of using an after insert trigger over using a before insert trigger?

  1. An after insert trigger allows a developer to bypass validation rules when updating fields on the new record.

  2. An after insert trigger allows a developer to insert other objects that reference the new record.

  3. An after insert trigger allows a developer to make a callout to an external service.

  4. An after insert trigger allows a developer to modify fields in the new record without a query.




Answer: B



Question: 90


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

  1. To increase the SOQL query governor limits.

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

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

  4. To enforce user sharing settings and permissions




Answer: B



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?

  1. The API name is not changed and there are no other impacts.

  2. The API name of the field and the reference in the test class is changed.

  3. The API name of the field is changed, and a warning is issued to update the class.

  4. The API name of the field and the reference in the test class is updated.




Answer: C



Question: 92


Which set of roll-up types are available when creating a roll-up summary field?

  1. COUNT, SUM, MIN, MAX

  2. AVERAGE, SUM, MIN, MAX

  3. SUM, MIN, MAX

  4. AVRAGE, COUNT, SUM, MIN, MAX




Answer: A



Question: 93


Which two number expressions evaluate correctly? (Choose two.)

  1. Double d = 3.14159;

  2. Integer I = 3.14159;

  3. Decimal d = 3.14159; D. Long l = 3.14159;




Answer: A,C



Question: 94


How should a developer prevent a recursive trigger?

  1. Use a “one trigger per object” pattern.

  2. Use a static Boolean variable.

  3. Use a trigger handler.

  4. Use a private Boolean variable.




Answer: D



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?

  1. Create one Visualforce Page for use by both profiles.

  2. Use a new Support Manager permission set.

  3. Create a separate Visualforce Page for each profile.

  4. Use a custom controller that has the with sharing keywords.




Answer: D



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?

  1. By using the isInsertable() method.

  2. By using the isCreatable() method.

  3. By using the hasAccess() method.

  4. By using the canCreate() method.




Answer: B



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?

  1. Developers must dictate the order of trigger execution.

  2. Trigger execution order is based on creation date and time.

  3. Unit tests must specify the trigger being tested.

  4. Trigger execution order is not guaranteed for the same sObject.




Answer: D



Question: 98


Which two statements are true about using the @testSetup annotation in an Apex test class? (Choose two.)

  1. The @testSetup annotation cannot be used when the @isTest(SeeAllData=True) annotation is used.

  2. Test data is inserted once for all test methods in a class.

  3. Records created in the @testSetup method cannot be updates in individual test methods.

  4. The @testSetup method is automatically executed before each test method in the test class is executed.




Answer: D



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’?

  1. A contact initialized to null.

  2. An error that no rows are found.

  3. An empty List of Contacts.

  4. A Contact with empty values.




Answer: B



Question: 100


Which SOQL query successfully returns the Accounts grouped by name?

  1. SELECT Type, Max(CreatedDate) FROM Account GROUP BY Name

  2. SELECT Name, Max(CreatedDate) FROM Account GROUP BY Name

  3. SELECT Id, Type, Max(CreatedDate) FROM Account GROUP BY Name

  4. SELECT Type, Name, Max(CreatedDate) FROM Account GROUP BY Name LIMIT 5




Answer: B