What are three characteristics of static methods?
What are three characteristics of static methods? Choose 3 answers. A. Initialized only when a class is loaded B. A static variable is available outside of the scope of an Apex transaction C. Allowed only in outer classes D. Allowed only in inner classes E. Excluded from the view state for a Visualforce page Reference: […]
In which two ways can the developer retrieve the available fields if the variable myObject represents the name
A developer needs to display all of the available fields for an object. In which two ways can the developer retrieve the available fields if the variable myObject represents the name of the object? Choose 2 answers. A. Use myObject.sObjectType.getDescribe ().fieldSet () to return a set of fields. B. Use SObjectType.myObject.fields.getMap() to return a map […]
Which two statements are true about using the @testSetup annotation in an Apex test class?
Which two statements are true about using the @testSetup annotation in an Apex test class? Choose 2 answers. A. Records created in the @testgroup method cannot be updated in individual test methods B. The @testSetup method is automatically executed before each test method in the test class is executed. C. The @testSetup annotation cannot be […]
What should the developer do to deploy to production?
A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page. What should the developer do to deploy to production? A. Create a test class that provides coverage of the custom controller. B. Create a test page that provides coverage of the […]
What are three ways for a developer to execute tests in an org? Choose 3 answers.
What are three ways for a developer to execute tests in an org? Choose 3 answers. A. Setup Menu B. Developer Console C. Tooling API D. Bulk API E. Metadata API
Which two exceptions may occur when it executes?
A developer executes the following query in Apex to retrieve a list of contacts for each account: Which two exceptions may occur when it executes? Choose two answers A. SOQL query limit exception due to the number of queries B. CPU limit exception due to the complexity of the query C. SOQL query row limit […]
How should a developer create a new custom exception class?
How should a developer create a new custom exception class? A. CustomException ex = new (CustomException) Exception (); B. public class CustomException extends Exception {} C. (Exception) CustomException ex = new Exception (); D. public class CustomException implements Exception {}
Which approach should be used to provide test data for a test class?
Which approach should be used to provide test data for a test class? A. Use a test data factory class to create test data. B. Query for existing records in the database. C. Access data in @TestVisible class variables. D. Execute anonymous code blocks that create data.
What is the requirement?
A developer wants to override a button using Visualforce on an object. What is the requirement? A. The action attribute must be set to a controller method. B. The standardController attribute must be set to the object. C. The object record must be instantiated in a controller or extension. D. The controller or extension must […]
For which three items can a trace flag be configured? Choose 3 answers.
For which three items can a trace flag be configured? Choose 3 answers. A. Apex Class B. Process Builder C. Apex Trigger D. Visualforce E. User