Salesforce DEX-450 Online Practice
Questions and Exam Preparation
DEX-450 Exam Details
Exam Code
:DEX-450
Exam Name
:Programmatic Development using Apex and Visualforce in Lightning
Certification
:Salesforce Certifications
Vendor
:Salesforce
Total Questions
:456 Q&As
Last Updated
:Jul 10, 2026
Salesforce DEX-450 Online Questions &
Answers
Question 81:
Which option would a developer use to display the Accounts created in the current week and the number of related Contacts using a debug statement in Apex?
A. For(Account acc: [SELECT Id, Name,(SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = THIS_WEEK]) { List cons = acc.Contacts; System.debug(acc.Name + ` has ' + cons.size() + `Contacts'; } B. For(Account acc: [SELECT Id, Name, (SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = CURRENT_WEEK]){ List cons = acc.Contacts; System.debug(acc.Name + ` has ` + cons.size() + `Contacts'); } C. For(Account acc:[SELECT Id, Name, Account.Contacts FROM Account WHERE CreatedDate = CURRENT_WEEK]) { List cons = acc.Account.Contacts; System.debug(acc.Name + ` has ` + cons.size() + `Contacts'); } D. For(Account acc: [SELECT Id, Name, Account.Contacts FROM Account WHERE CreatedDate = THIS_WEEK]){ List cons = acc.Account.Contacts; System.debug(acc.Name + ` has ` + cons.size() + `Contacts' }
A. For(Account acc: [SELECT Id, Name,(SELECT Id, Name FROM Contacts) FROM Account WHERE CreatedDate = THIS_WEEK]) { List cons = acc.Contacts; System.debug(acc.Name + ` has ' + cons.size() + `Contacts'; }
Question 82:
A developer runs the following anonymous code block:
List acc = [SELECT Id FROM Account LIMIT 10];Delete acc;Database.emptyRecycleBin(acc);system.debug(Limits.getDMLStatements()+ `, `
+Limits.getLimitDMLStatements());
What is the result?
A. 11, 150 B. 150, 2 C. 150, 11 D. 2, 150
D. 2, 150
Question 83:
Which type of code represents the Model in the MVC architecture on the Force.com platform?
A. A Controller Extension method that uses SOQL to query for a list of Account records B. Custom JavaScript that processes a list of Account records. C. A list of Account records returned from a Controller Extension method D. A Controller Extension method that saves a list of Account records
C. A list of Account records returned from a Controller Extension method
Question 84:
Which three statements are true regarding cross-object formulas? Choose 3 answers
A. Cross-object formulas can reference fields from master-detail or lookup relantionships B. Cross-object formulas can reference fields from objects that are up to 10 relantionship away C. Cross-object formulas can expose data the user does not have access to in a record D. Cross-object formulas can reference child fields to perform an average E. Cross-object formulas can be referenced in roll-up summary field
A. Cross-object formulas can reference fields from master-detail or lookup relantionships B. Cross-object formulas can reference fields from objects that are up to 10 relantionship away C. Cross-object formulas can expose data the user does not have access to in a record
Question 85:
A developer needs to create a custom Visualforce button for the Opportunity object page layout that will cause a web service to be called and redirect the user to a new page when clicked. Which three attributes need to be defined in the tag of the Visualforce page to enable this functionality? Choose three answers.
A. StandardController B. Extensions C. Action D. Controller
A. StandardController B. Extensions C. Action
Question 86:
A developer needs to provide a way to mass edit,update, and delete records from a list view in which two ways can this be accomlpished? choose 2 answers
A. Download an unmanaged package from the appexchange that provides customizable mass edit, update and delete functionality B. Configure the user interface and enable both inline editing enhanced lists C. Download a managed package from the appexchange that provides customizable enhanced list views and buttons D. Create a new visualforce page and apex controller for the list view that provides mass edit,update and delete functionality
C. Download a managed package from the appexchange that provides customizable enhanced list views and buttons D. Create a new visualforce page and apex controller for the list view that provides mass edit,update and delete functionality
Question 87:
Which type of code represents the model in the MVC architecture on the force.com platform?
A. A controller extension method that saves a list of account records B. A list of account records returned from a controller extension method C. Custom javascript that processes a list of accountrecords D. A controller extension method that uses soql to query for a list of account records
B. A list of account records returned from a controller extension method
Question 88:
Which two practices should be used for processing records in a trigger? Choose 2 answers
A. Use @future methods to handle DML operations. B. Use a Map to reduce the number of SOQL calls C. Use (callout=true) to update an external system D. Use a Set to ensure unique values in a query filter
B. Use a Map to reduce the number of SOQL calls D. Use a Set to ensure unique values in a query filter
Question 89:
A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case.Status field are on a custom Visualforce page. Which action can the developer perform to get the record types and picklist values in the controller? (Choose 2)
A. Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues(). B. Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos(). C. Use SOQL to query Case records in the org to get all the RecordType values available for Case. D. Use SOQL to query case records in the org to get all values for the Status picklist field.
A. Use Schema.PicklistEntry returned by Case.Status.getDescribe().getPicklistValues(). B. Use Schema.RecordTypeInfo returned by Case.sObjectType.getDescribe().getRecordTypeInfos().
Question 90:
Which is a valid apex assignment?
A. Integer x=5 * 1,0 B. Integer = 5,0 C. Double x = 5 D. Float x = 5.0
Nowadays, the certification exams become more and more important and required by more and more
enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare
for the exam in a short time with less efforts? How to get a ideal result and how to find the
most reliable resources? Here on Vcedump.com, you will find all the answers.
Vcedump.com provide not only Salesforce exam questions,
answers and explanations but also complete assistance on your exam preparation and certification
application. If you are confused on your DEX-450 exam preparations
and Salesforce certification application, do not hesitate to visit our
Vcedump.com to find your solutions here.