CRT-450 Practice Test Questions

392 Questions


Topic 2 : Exam Pool B

A developer creates an Apex Trigger with the following code block:List customers = new List();For (Order__c o: trigger.new){Account a = [SELECT Id, Is_Customer__c FROM Account WHERE Id = :o.Customer__c];a.Is_Customer__c = true;customers.add(a);}Database.update(customers, false);The developer tests the code using Apex Data Loader and successfully loads 10 Orders. Then, the developer loads 150 Orders.How many Orders are successfully loaded when the developer attempts to load the 150 Orders?


A. 0


B. 1


C. 150


D. 100





A.
  0

When loading data into an operation, what can a developer do to match records to update existing records? (Choose 2)


A. Match an auto-generated Number field to a column in the imported file.


B. Match an external Id Text field to a column in the imported file.


C. Match the Name field to a column in the imported file.


D. Match the Id field to a column in the imported file.





B.
  Match an external Id Text field to a column in the imported file.

D.
  Match the Id field to a column in the imported file.

A developer needs to know if all tests currently pass in a Salesforce environment. Which feature can the developer use? (Choose 2)


A. ANT Migration Tool


B. Workbench Metadata Retrieval


C. Salesforce UI Apex Test Execution


D. Developer Console





C.
  Salesforce UI Apex Test Execution

D.
  Developer Console

What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?


A. The StandardSetController to support related lists for pagination.


B. The Opportunity StandardController for pre -built functionality.


C. A callback constructor to reference the StandardController.


D. A constructor that initializes a private Opportunity variable.





B.
  The Opportunity StandardController for pre -built functionality.

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. A contact initialized to null.


B. An error that no rows are found.


C. An empty List of Contacts.


D. A Contact with empty values





B.
  An error that no rows are found.

What is a characteristic of the Lightning Component Framework? Choose 2 answers:


A. It has an event-driven architecture.


B. It works with existing Visualforce pages.


C. It includes responsive components.


D. It uses XML as its data format.





A.
  It has an event-driven architecture.

C.
  It includes responsive components.

A company wants a recruiting app that models candidates and interviews; displays the total number of interviews on each candidate record; and defines security on interview records that is independent from the security on candidate records. What would a developer do to accomplish this task? Choose 2 answers


A. Create a roll -up summary field on the Candidate object that counts Interview records.


B. Create a master -detail relationship between the Candidate and Interview objects.


C. Create a lookup relationship between the Candidate and Interview objects.


D. Create a trigger on the Interview object that updates a field on the Candidate object





C.
  Create a lookup relationship between the Candidate and Interview objects.

D.
  Create a trigger on the Interview object that updates a field on the Candidate object

Which type of information is provided by the Checkpoints tab in the Developer Console? (Choose 2)


A. Namespace


B. Time


C. Exception


D. Debug Statement





A.
  Namespace

B.
  Time

Where can debug log filter settings be set?Choose 2 answers


A. The Filters link by the monitored user's name within the web UI.


B. The Show More link on the debug log's record.


C. On the monitored user's name.


D. The Log Filters tab on a class or trigger detail page.





A.
  The Filters link by the monitored user's name within the web UI.

D.
  The Log Filters tab on a class or trigger detail page.

A developer executes the following code in the Developer Console: List fList = new List ();For(integer i= 1; I <= 200; i++){fList.add(new Account ( Name = ‘Universal Account ‘ + i));}Insert fList;List sList = new List();For (integer I = 201; I 20000; i ++){sList.add(new Account (Name = ‘Universal Account ‘ + i));}Insert sList;How many accounts are created in the Salesforce organization ?


A. 20000


B. 0


C. 200


D. 1000





B.
  0

The initial value for a number field on a record is 1. A user updated the value of the number field to 10. This action invokes a workflow field update, which changes the value of the number field to 11. After the workflow field update, an update trigger fires.What is the value of the number field of the object that is obtained from Trigger.old?


A. Null


B. 11


C. 1


D. 10





C.
  1

When creating a record with a Quick Action, what is the easiest way to post a feed item?


A. By selecting create feed item on the quick action.


B. By adding a trigger on the new record.


C. By adding a workflow rule on the new record.


D. By selecting create case feed on the new record.





A.
  By selecting create feed item on the quick action.


Page 12 out of 33 Pages
Previous