CRT-450 Exam Questions

Total 392 Questions

Last Updated Exam : 30-Jun-2025

Topic 2 : Exam Pool B

Given the code block: Integer x; For(x=0;x<10; x+=2) { If(x==8) break; If(x==10) break; } System.debug(x); Which value will the system debug statement display?


A. 2


B. 10


C. 8


D. 4





E.
  

A developer creates a custom controller and custom Visualforce page by using the following code block:public class myController {public String myString;public String getMyString() {return 'getmyString';}public String getStringMethod1() {return myString;}public String getStringMethod2() {if (myString == null)myString = 'Method2';return myString;}}{!myString}, {!StringMethod1}, {!StringMethod2}, {!myString}What does the user see when accessing the custom page?


A. GetMyString , , Method2 , getMystring


B. , , Method2 , getMyString


C. , , Method2,


D. GetMyString , , ,





A.
  GetMyString , , Method2 , getMystring

Why would a developer use Test. startTest( ) and Test.stopTest( )?


A. To avoid Apex code coverage requirements for the code between these lines


B. To start and stop anonymous block execution when executing anonymous Apex code


C. To indicate test code so that it does not Impact Apex line count governor limits.


D. To create an additional set of governor limits during the execution of a single test class.





D.
  To create an additional set of governor limits during the execution of a single test class.

In which order does SalesForce execute events upon saving a record?


A. Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit


B. Validation Rules; Before Triggers; After Triggers; Workflow Rules; Assignment Rules; Commit


C. Before Triggers; Validation Rules; After Triggers; Workflow Rules; Assignment Rules; Commit


D. Validation Rules; Before Triggers; After Triggers; Assignment Rules; Workflow Rules; Commit





A.
  Before Triggers; Validation Rules; After Triggers; Assignment Rules; Workflow Rules; Commit

What is true for a partial sandbox that is not true for a full sandbox? Choose 2 answers:


A. More frequent refreshes.


B. Only Includes necessary metadata.


C. Use of change sets.


D. Limited to 5 GB of data.





A.
  More frequent refreshes.

D.
  Limited to 5 GB of data.

What is the result of the following code block ?
Integer x = 1;Integer Y = 0;While(x < 10){Y++;}


A. An error occurs


B. Y = 9


C. Y = 10


D. X = 0





A.
  An error occurs

What features are available when writing apex test classes?(Choose 2 Answers)


A. The ability to select error types to ignore in the developer console.


B. The ability to write assertions to test after a @future method.


C. The ability to set and modify the CreatedDate field in apex tests.


D. The ability to set breakpoints to freeze the execution at a given point.


E. The ability to select testing data using csv files stored in the system.





C.
  The ability to set and modify the CreatedDate field in apex tests.

E.
  The ability to select testing data using csv files stored in the system.

A candidate may apply to multiple jobs at the company Universal Containers by submtting a single application per job posting. Once an application is submitted for a job posting, that application cannot be modified to be resubmitted to a different job posting.What can the administrator do to associate an application with each jobposting in the schema for the organization?


A. Create a master-detail relationship in the Job Postings custom object to the Applications custom object.


B. Create a master-detail relationship in the Application custom object to the Job Postings custom object.


C. Create a lookup relationship on both objects to a junction object called Job Posting Applications.


D. Create a lookup relationship in the Applications custom object to the Job Postings custom object





A.
  Create a master-detail relationship in the Job Postings custom object to the Applications custom object.

Which data type or collection of data types can SOQL statements populate or evaluate to? (Choose 3)


A. A single sObject


B. An integer


C. A string


D. A list of sObjects


E. A Boolean





A.
  A single sObject

B.
  An integer

D.
  A list of sObjects

How can a developer avoid exceeding governor limits when using Apex Triggers? (Choose 2)


A. By using a helper class that can be invoked from multiple triggers


B. By using Maps to hold data from query results


C. By using the Database class to handle DML transactions


D. By performing DML transactions on a list of sObjects.





B.
  By using Maps to hold data from query results

D.
  By performing DML transactions on a list of sObjects.


Page 8 out of 40 Pages
Previous