Free DEX-450 Exam Braindumps
Programmatic Development using Apex and Visualforce in Lightning Experience Questions 106–110 (page: 23)

Updated On: 10-Feb-2026

A developer wants to list all of the Tasks for each Account on the Account detail page. When a task is created for a Contact, what does the developer need to do to display the Task on the related Account record?

  1. Nothing. The task is automatically displayed on the Account page.
  2. Nothing. The Task cannot be related to an Account and a Contact.
  3. Create a Workflow rule to relate the Task to the Contact's Account.
  4. Create an Account formula field that displays the Task information.

Answer(s): A



What is the minimum log level needed to see user-generated debug statements?

  1. DEBUG
  2. FINE
  3. INFO
  4. WARN

Answer(s): A



A developer has the following code:
try {
List nameList;
Account a;
String s = a.Name;nameList.add(s);
} catch (ListException le )
{
System.debug(' List Exception ');
}
catch (NullPointerException npe)
{
System.debug('NullPointer Exception ');
}
catch (Exception e) {
System.debug(' Generic Exception ');
}

What message will be logged?

  1. List Exception
  2. NullPointer Exception
  3. Generic Exception
  4. No message is logged

Answer(s): B



What is a good practice for a developer to follow when writing a trigger? (Choose 2)

  1. Using @future methods to perform DML operations.
  2. Using the Map data structure to hold query results by ID.
  3. Using the Set data structure to ensure distinct records.
  4. Using synchronous callouts to call external systems.

Answer(s): B,C



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

  1. System.debug('Amount of CPU time (in ms) used so far: ' + Limits.getCpuTime() );
  2. List contacts = [SELECT Id, Salutation, FirstName, LastName, Email FROM Contact WHERE AccountId = :a.Id];
  3. If(o.accountId == a.id)
  4. Update contactList;

Answer(s): B,D



Viewing page 23 of 93
Viewing questions 111 - 115 out of 456 questions


Post your Comments and Discuss Salesforce DEX-450 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!