CRT-450 Exam Questions

Total 387 Questions

Last Updated Exam : 22-Oct-2024

Topic 2 : Exam Pool B

What is the value of x after the code segment executes?String x = 'A';Integer i = 10;if ( i < 15 ) {i = 15;x =
'B';} else if ( i < 20 ) {x = 'C';} else {x = 'D'; }


A.

D


B.

A


C.

B


D.

C





C.
  

B



A developer has the following trigger that fires after insert and creates a child Case whenever a new Case is created. List<Case> childCases = new List<Case>();for (Case parent : Trigger.new){Case child = new Case (ParentId = parent.Id, Subject = parent.Subject);childCases.add(child);}insert childCases; What happens after the code block executes?


A.

Multiple child cases are created for each parent case in Trigger.new.


B.

Child case is created for each parent case in Trigger.new.


C.

The trigger enters an infinite loop and eventually fails.


D.

The trigger fails if the Subject field on the parent is blank.





B.
  

Child case is created for each parent case in Trigger.new.



In which two org types can a developer create new Apex Classes? Choose 2 answers


A.

Developer Edition


B.

Sandbox


C.

Enterprise Edition


D.

Unlimited





A.
  

Developer Edition



B.
  

Sandbox



A developer wrote a workflow email alert on case creation so that an email is sent to the case owner manager when a case is created. When will the email be sent?


A.

After Committing to database.


B.

Before Trigger execution.


C.

After Trigger execution.


D.

Before Committing to database.





A.
  

After Committing to database.



A developer needs to confirm that an Account trigger is working correctly without changing the organization’s data.What would the developer do to test the Account trigger?


A.

Use the Test menu on the developer Console to run all test classes for the account trigger.


B.

Use the New button on the Salesforce Accounts Tab to create a new Account record.


C.

Use the Open Execute Anonymous feature on the Developer Console to run an ‘insert Account’ DML
statement.


D.

Use Deply from the Force.com IDE to deploy an ‘insert Account’ Apex class.





A.
  

Use the Test menu on the developer Console to run all test classes for the account trigger.



What is a capability of the Force.com IDE? Choose 2 answers


A.

Roll back deployments.


B.

Run Apex tests.


C.

Download debug logs.


D.

Edit metadata components.





B.
  

Run Apex tests.



D.
  

Edit metadata components.



What is a capability of a StandardSetController?Choose 2 answers


A.

It allows pages to perform mass updates of records


B.

It allows pages to perform pagination with large record sets


C.

It enforces field-level security when reading large record sets


D.

It extends the functionality of a standard or custom controller





A.
  

It allows pages to perform mass updates of records



B.
  

It allows pages to perform pagination with large record sets



Which data structure is returned to a developer when performing a SOSL search?


A.

A list of lists of sObjects.


B.

A map of sObject types to a list of sObjects


C.

A map of sObject types to a list oflists of sobjects


D.

A list of sObjects.





A.
  

A list of lists of sObjects.



What is an important consideration when developing in a multi-tenant environment?


A.

Governor limits prevent tenants from impacting performance in multiple orgs on the same instance.


B.

Unique domain names take the place of namespaces for code developed for multiple orgs on multiple
instances.


C.

Polyglot persistence provides support for a global, multilingual user base in multiple orgs on multiple
instances.


D.

Org-wide data security determines whether other tenants can see data in multiple orgs on the same
instance.





A.
  

Governor limits prevent tenants from impacting performance in multiple orgs on the same instance.



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?


A.

Nothing. The task is automatically displayed on the Account page.


B.

Nothing. The Task cannot be related to an Account and a Contact.


C.

Create a Workflow rule to relate the Task to the Contact's Account.


D.

Create an Account formula field that displays the Task information.





A.
  

Nothing. The task is automatically displayed on the Account page.




Page 10 out of 39 Pages
Previous