CRT-450 Exam Questions

Total 392 Questions

Last Updated Exam : 30-Jun-2025

Topic 2 : Exam Pool B

What is an accurate statement about variable scope? (Choose 3)


A. Parallel blocks can use the same variable name.


B. A variable can be defined at any point in a block.


C. Sub-blocks cannot reuse a parent block's variable name.


D. Sub-blocks can reuse a parent block's variable name if it's value is null.


E. A static variable can restrict the scope to the current block of its value is null.





A.
  Parallel blocks can use the same variable name.

B.
  A variable can be defined at any point in a block.

C.
  Sub-blocks cannot reuse a parent block's variable name.

What is a benefit of the Lightning Component framework?Choose 3 answers


A. It uses client-side Apex controllers for logic.


B. It uses a traditional publish-subscribe model.


C. It uses an event-driven architecture


D. It uses an MVC architectural design pattern.


E. It uses server-side JavaScript controller for logic





B.
  It uses a traditional publish-subscribe model.

C.
  It uses an event-driven architecture

D.
  It uses an MVC architectural design pattern.

Which scenario is invalid for execution by unit tests?


A. Executing methods for negative test scenarios


B. Loading the standard Pricebook ID using a system method


C. Loading test data in place of user input for Flows.


D. Executing methods as different users.





C.
  Loading test data in place of user input for Flows.

When would a developer use a custom controller instead of a controller extension? Choose 2 answers:


A. When a Visualforce page needs to replace the functionality of a standard controller.


B. When a Visualforce page does not reference a single primary object.


C. When a Visualforce page should not enforce permissions or field-level security.


D. When a Visualforce page needs to add new actions to a standard controller.





B.
  When a Visualforce page does not reference a single primary object.

C.
  When a Visualforce page should not enforce permissions or field-level security.

developer in a Salesforce org with 100 Accounts executes the following code using the Developer console:Account myAccount = new Account(Name = 'MyAccount');Insert myAccount;For (Integer x = 0; x < 150; x++) {Account newAccount = new Account (Name='MyAccount' + x);try {Insert newAccount;} catch (Exception ex) {System.debug (ex) ;}}insert new Account (Name='myAccount');How many accounts are in the org after this code is run?


A. 101


B. 100


C. 102


D. 252





B.
  100

A developer creates an Apex helper class to handle complex trigger logic. How can the helper class warn users when the trigger exceeds DML governor limits?


A. By using PageReference.setRedirect() to redirect the user to a custom Visualforce page before the number of DML statements is exceeded.


B. By using Messaging.sendEmail() to continue toe transaction and send an alert to the user after the number of DML statements is exceeded.


C. By using AmexMessage.Messages() to display an error message after the number of DML statements is exceeded.


D. By using Limits.getDMLRows() and then displaying an error message before the number of DML statements is exceeded.





D.
  By using Limits.getDMLRows() and then displaying an error message before the number of DML statements is exceeded.

A developer creates a Workflow Rule declaratively that updates a field on an object. An Apex update trigger exists for that object. What happens when a user updates a record?


A. No changes are made to the data.


B. Both the Apex Trigger and Workflow Rule are fired only once.


C. The Workflow Rule is fired more than once.


D. The Apex Trigger is fired more than once.





D.
  The Apex Trigger is fired more than once.

What is a correct pattern to follow when programming in Apex on a Multi-tenant platform?


A. Apex code is created in a separate environment from schema to reduce deployment errors.


B. DML is performed on one record at a time to avoid possible data concurrency issues.


C. Queries select the fewest fields and records possible to avoid exceeding governor limits.


D. Apex classes use the ''with sharing" keyword to prevent access from other server tenants.





C.
  Queries select the fewest fields and records possible to avoid exceeding governor limits.

When can a developer use a custom Visualforce page in a Force.com application? (Choose 2)


A. To generate a PDF document with application data


B. To create components for dashboards and layouts


C. To deploy components between two organizations


D. To modify the page layout settings for a custom object





A.
  To generate a PDF document with application data

B.
  To create components for dashboards and layouts

A developer writes a before insert trigger.How can the developer access the incoming records in the trigger body?


A. By accessing the Trigger.new context variable.


B. By accessing the Trigger.newRecords context variable.


C. By accessing the Trigger.newMap context variable.


D. By accessing the Tripper.newList context variable.





A.
  By accessing the Trigger.new context variable.


Page 11 out of 40 Pages
Previous