Go Back on CRT-450 Exam
Available in 1, 3, 6 and 12 Months Free Updates Plans
PDF: $15 $60

Test Engine: $20 $80

PDF + Engine: $25 $99

CRT-450 Practice Test


Page 19 out of 78 Pages

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.




Page 19 out of 78 Pages
Previous