CRT-450 Practice Test Questions

387 Questions


Topic 2 : Exam Pool B

A Visual force page displays two fields named Phone Number and Email.User1 has access to Phone Number, but not to Email.User2 has access to Email, but not Phone NumberA developer needs to ensure that User1 can only see Phone Number, and User2 can only see Email.Which method can the developer use to achieve this?


A.

Schema isUpdateable() method.


B.

Schema isAccessible() method.


C.

Schema isReadable() method.


D.

Schema isCreateable() method.





B.
  

Schema isAccessible() method.



What is a valid source and destination pair that can send or receive change sets? (Choose 2)


A.

Developer Edition to Sandbox


B.

Sandbox to Production


C.

Sandbox to Sandbox


D.

Developer Edition to Production





B.
  

Sandbox to Production



C.
  

Sandbox to Sandbox



What is the accurate statement about with sharing keyword? choose 2 answers


A.

Inner class do not inherit the sharing setting from the container class


B.

Both inner and outer class can be declared as with sharing


C.

Either inner class or outer classes can be declared as with sharing but not both


D.

Inner class inherit the sharing setting from the container class





A.
  

Inner class do not inherit the sharing setting from the container class



B.
  

Both inner and outer class can be declared as with sharing



What would a developer do to update a picklist field on related Opportunity records when a modification to the associated Account record is detected?


A.

Create a process with Process Builder


B.

Create a workflow rule with a field update.


C.

Create a Lightning Component.


D.

Create a Visualforce page.





A.
  

Create a process with Process Builder



Which statement about the Lookup Relationship between a Custom Object and a Standard Object is correct?


A.

The Lookup Relationship on the Custom Object can prevent the deletion of the Standard Object.


B.

The Lookup Relationship cannot be marked as required on the page layout for the Custom Object.


C.

The Custom Object will be deleted when the referenced Standard Object is deleted.


D.

The Custom Object inherits security from the referenced Standard Objects





C.
  

The Custom Object will be deleted when the referenced Standard Object is deleted.



What should a developer working in a sandbox use to exercise a new test Class before the developer deploys that test production?Choose 2 answers


A.

The REST API and ApexTestRun method


B.

The Apex Test Execution page in Salesforce Setup.


C.

The Test menu in the Developer Console.


D.

The Run Tests page in Salesforce Setup.





B.
  

The Apex Test Execution page in Salesforce Setup.



C.
  

The Test menu in the Developer Console.



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.




Page 8 out of 33 Pages
Previous