CRT-450 Exam Questions

Total 387 Questions

Last Updated Exam : 22-Oct-2024

Topic 2 : Exam Pool B

A developer needs to create records for the object Property__c. The developer creates the following code
block:List propertiesToCreate = helperClass.createProperties();try { // line 3 } catch (Exception exp ) {
//exception handling }Which line of code would the developer insert at line 3 to ensure that at least some records are created, even if a few records have errors and fail to be created?


A.

Database.insert(propertiesToCreate, false);
insert propertiesToCreate;


B.

Database.insert(propertiesToCreate, System.ALLOW_PARTIAL);


C.

Database.insert(propertiesToCreate);





A.
  

Database.insert(propertiesToCreate, false);
insert propertiesToCreate;



Which requirement needs to be implemented by using standard workflow instead of Process Builder? Choose 2 answers


A.

Create activities at multiple intervals.


B.

Send an outbound message without Apex code.


C.

Copy an account address to its contacts.


D.

Submit a contract for approval.





B.
  

Send an outbound message without Apex code.



C.
  

Copy an account address to its contacts.



What is the preferred way to reference web content such as images, style sheets, JavaScript, and other libraries that is used in Visualforce pages?


A.

By accessing the content from Chatter Files.


B.

By uploading the content in the Documents tab.


C.

By accessing the content from a third -party CON.


D.

By uploading the content as a Static Resource.





D.
  

By uploading the content as a Static Resource.



What are two testing consideration when deploying code from a sandbox to production? Choose 2 answers


A.

75% of test must execute without failure


B.

100% of test must execute without failure


C.

Apex code requires 75% coverage


D.

Apex code requires 100% coverage





B.
  

100% of test must execute without failure



C.
  

Apex code requires 75% coverage



What is a valid Apex statement?


A.

Map conMap = (SELECT Name FROM Contact);


B.

Account[] acctList = new List{new Account()}


C.

Integer w, x, y = 123, z = 'abc',


D.

Private static constant Double rate = 775;





B.
  

Account[] acctList = new List{new Account()}



Developer needs to automatically populate the Reports To field in a Contact record based on the values of the related Account and Department fields in the Contact record. Which type of trigger would the developer create? Choose 2 answers


A.

Before update


B.

After insert


C.

Before insert


D.

After update





A.
  

Before update



C.
  

Before insert



Which type of code represents the Controller in MVC architecture on the Force.com platform? (Choose 2)


A.

JavaScript that is used to make a menu item display itself.


B.

A static resource that contains CSS and images.


C.

Custom Apex and JavaScript coda that is used to manipulate data.


D.

StandardController system methods that are referenced by Visualforce.





C.
  

Custom Apex and JavaScript coda that is used to manipulate data.



D.
  

StandardController system methods that are referenced by Visualforce.



A developer creates an Apex class that includes private methods. What can the developer do to ensure that the private methods can be accessed by the test class?


A.

Add the TestVisible attribute to the Apex class


B.

Add the SeeAllData attribute to the test methods.


C.

Add the TestVisible attribute to the apex methods.


D.

Add the SeeAllData attribute to the test class





C.
  

Add the TestVisible attribute to the apex methods.



How can a developer determine, from the DescribeSObjectResult, if the current user will be able to create records for an object in Apex?


A.

By using the isInsertable() method.


B.

By using the isCreatable() method.


C.

By using the hasAccess() method.


D.

By using the canCreate() method.





B.
  

By using the isCreatable() method.



A visualforce interface is created for Case Management that includes both standard and custom functionality defined in an Apex class called myControllerExtension. The visualforce page should include which <apex:page> attribute(s) to correctly implement controller functionality?


A.

StandardController = "case" and extensions =" myControllerExtension"


B.

Extensions=" myControllerExtension"


C.

Controller=" myControllerExtension"


D.

Controller = "case" and extensions =" myControllerExtension"





A.
  

StandardController = "case" and extensions =" myControllerExtension"




Page 20 out of 39 Pages
Previous