Questions Flashcards
What must the Controller for a Visualforce page utilize to override the Standard Opportunity view button?
A. The StandardSetController to support related lists for pagination.
B. the Opportunity StandardController for pre -built functionality.
C. A callback constructor to reference the StandardController.
D.A constructor that initializes a private Opportunity variable.
B. the Opportunity StandardController for pre -built functionality.
An org has different Apex Classes that provide Account -related functionality.
After a new validation rule is added to the object, many of the test methods fail.
What can be done to resolve the failures and reduce the number of code changes needed for future validation rules?
Choose 2 answers:
A. Create a method that creates valid Account records, and call this method from within test methods.
B. Create a method that loads valid Account records from a Static Resource, and call this method within test methods.
C. Create a method that performs a callout for a valid Account record, and call this method from within test methods.
D Create a method that queries for valid Account records, and call this method from within test methods.
A. Create a method that creates valid Account records, and call this method from within test methods.
B. Create a method that loads valid Account records from a Static Resource, and call this method within test methods.
A company has a custom object named Warehouse. Each Warehouse record has a distinct record owner, and is related to a parent Account in Salesforce.
Which kind of relationship would a developer use to relate the Account to the Warehouse?
A. One -to -Many
B. Lookup
C. Master -Detail
D. Parent -Child
B. Lookup
In an organization that has enabled multiple currencies, a developer needs to aggregate the sum of the Estimated_value__c currency field from the CampaignMember object using a roll-up summary field called Total_estimated_value__c on Campaign.
How is the currency of the Total_estimated_value__c roll-up summary field determined?
A. The values in Campaignmember.Estimated_value__c are converted into the currency of the Campaign record and the sum is displayed using the currency on the Campaign record.
B. The values in CampaignMember.Estimated_value__c are converted into the currency on the majority of the CampaignMember records and the sum is displayed using that currency.
C. The values in CampaignMember.Estimated_value__c are summed up and the resulting Total_estimated_value__c field is displayed as a numeric field on the Campaign record.
D. The values In CampaignMember.Estimated_value__c are converted into the currency of the current user, and the sum is displayed using the currency on the Campaign record.
A. The values in Campaignmember.Estimated_value__c are converted into the currency of the Campaign record and the sum is displayed using the currency on the Campaign record.
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.
A. Create activities at multiple intervals.
B. Send an outbound message without Apex code.
A candidate may apply to multiple jobs at the company Universal Containers by submitting a single application per 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 job posting in the schema for the organization?
A. Create a lookup relationship on both objects to a junction object called Job Posting Applications.
B. Create a master-detail relationship in the Job Postings custom object to the Applications custom object.
C. Create a master-detail relationship in the Application custom object to the Job Postings custom object.
D. Create a lookup relationship in the Applications custom object to the Job Postings custom object.
C. Create a master-detail relationship in the Application custom object to the Job Postings custom object.
What is a capability of cross-object formula fields?
Choose 3 answers
A. Formula fields can reference fields from master-detail or lookup parent relationships.
B. Formula fields can expose data the user does not have access to in a record.
C. Formula fields can be used in three roll-up summaries per object.
D. Formula fields can reference fields in a collection of records from a child relationship.
E. Formula fields can reference fields from objects that are up to 10 relationships away.
A. Formula fields can reference fields from master-detail or lookup parent relationships.
B. Formula fields can expose data the user does not have access to in a record.
E. Formula fields can reference fields from objects that are up to 10 relationships away.
How can a developer avoid exceeding governor limits when using an Apex Trigger?
choose 2 answers
A. By using a helper class that can be invoked from multiple triggers.
B. By using the Database class to handle DML transactions.
C. By using Maps to hold data from query results.
D. By performing DML transactions on lists of SObjects.
C. By using Maps to hold data from query results.
D. By performing DML transactions on lists of SObjects.
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 conatiner 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
How can a developer refer to, or instantiate a PageReference in Apex?
Choose 2 answers
A. By using a PageReference with a partial or full URL.
B. By using the Page object and a Visualforce page name.
C. By using the ApexPages.Page() method with a Visualforce page name.
D. By using the PageReference.Page() method with a partial or full URL.
A. By using a PageReference with a partial or full URL.
B. By using the Page object and a Visualforce page name.
Which standard field needs to be populated when a developer inserts new Contact records programmatically?
A. Accountld
B. Name
C. LastName
D. FirstName
C. LastName
A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL Which statement is unnecessary inside the unit test for the custom controller?
A. public ExtendedController (ApexPages.StandardController cntrl) { }
B. ApexPages.currentPage().getParameters().put(‘input’, ‘TestValue’)
C. Test.setCurrentPage(pageRef),
D. String nextPage = controller.save().getUrl();
A. public ExtendedController (ApexPages.StandardController cntrl) { }
A developer wants to display all of the available record types for a Case object. The developer also wants to display the picklist values for the Case.Status field. The Case object and the Case Status field are on a custom visualforce page.
Which action can the developer perform to get the record types and picklist values in the controller?
Choose 2 answers
A. Use Schema.PIcklistEntry returned by Case Status getDescribe().getPicklistValues().
B. Use Schema.RecordTypeinfo returned by Case.SObjectType getDescribe().getRecordTypelnfos()
C. Use SOQL to query Case records in the org to get all the RecordType values available for Case.
D. Use SOQL to query Case records in the org to get all value for the Status picklist field.
A. Use Schema.PIcklistEntry returned by Case Status getDescribe().getPicklistValues().
B. Use Schema.RecordTypeinfo returned by Case.SObjectType getDescribe().getRecordTypelnfos()
An sObject named Application_c has a lookup relationship to another sObject named Position_c. Both Application _c and Position_c have a picklist field named Status_c.
When the Status_c field on Position_c is updated, the Status_c field on Application_c needs to be populated automatically with the same value, and execute a workflow rule on Application_c.
How can a developer accomplish this?
A. By changing Application_c.Status_c into a roll -up summary field.
B. By changing Application_c.Status_c into a formula field.
C. By using an Apex trigger with a DML operation.
D. By configuring a cross-object field update with a workflow.
B. By changing Application_c.Status_c into a formula field.
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. Before Trigger execution
B. After Committing to database.
C. Before Committing to database
D. After Trigger execution.
B. After Committing to database.
A developer in a Salesforce org with 100 Accounts executes the following code using the Developer console:
Account myAccount = new Account(Name = ‘MyAccount’);
Insert myAccount;
For (Integer x = 0; x “less than” 250; x++)
Account newAccount = new Account (Name=’MyAccount’ + x);
try {
Insert newAccount;
}
catch (Exception ex) {
System.debug (ex) ;
}
insert new Account (Name=’myAccount’);
How many accounts are in the org after this code is run? A. 101 B. 100 C. 102 D. 252
B. 100
When would a developer use a custom controller instead of a controller extension?
Choose 2 answers:
A. When a Visualforce page needs to replace the functionality of a standard controller.
B. When a Visualforce page does not reference a single primary object.
C. When a Visualforce page should not enforce permissions or field-level security.
D. When a Visualforce page needs to add new actions to a standard controller.
A. When a Visualforce page needs to replace the functionality of a standard controller.
C. When a Visualforce page should not enforce permissions or field-level security.
What is a valid statement about Apex classes and interfaces?
Choose 2 answers:
A. The default modifier for a class is private. B. Exception classes must end with the word exception. C. A class can have multiple levels of inner classes. D. The default modifier for an interface is private.
A. The default modifier for a class is private. B. Exception classes must end with the word exception.
On a Visualforce page with a custom controller, how should a developer retrieve a record by using an ID that is passed on the URL?
A. Use the constructor method for the controller.
B. Use the $Action.View method in the Visualforce page.
C. Create a new PageReference object with the Id.
D. Use the “apex:detail” tag in the Visualforce page.
A. Use the constructor method for the controller.
Which user can edit a record after it has been locked for approval?
Choose 2 answers
A An administrator.
B. Any user who approved the record previously.
C. A user who is assigned as the current approver.
D. Any user- with a higher role in the hierarchy.
A An administrator.
C. A user who is assigned as the current approver.
Which type of information is provided by the Checkpoints tab in the Developer Console?
Choose 2 answers
A. Exception
B. Debug Statement
C. Namespace
D. Time
C. Namespace
D. Time
Which declarative method helps ensure quality data?
Choose 3 answers
A. Exception handling B. Workflow alerts C. Validation rules D. Lookup filters E. Page layouts
C. Validation rules
D. Lookup filters
E. Page layouts
Which code block returns the ListView of an Account object using the following debug statement?
system. debug (controller. getListViewOptions ( ) ) ;
A. ApexPages.StandardSetController controller = new ApexPages.StandardSetController([SELECT Id FROM Account LIMIT 1]); B. ApexPages.StandardController controller = new ApexPages.StandardController(Database.getQueryLocator('select Id from Account Limit 1'); C. ApexPages.StandardController controller = new ApexPages StandardController ( [SELECT Id FROM Account LIMIT 1)); D.ApexPages.StandardSetController controller = new ApexPages.StandardSetController(Database.getQueryLocator('select Id from Account Limit 1');
D.ApexPages.StandardSetController controller = new
ApexPages.StandardSetController(Database.getQueryLocator(‘select Id from Account Limit 1’);
Where can debug log filter settings be set?
Choose 2 answers
A. The Filters link by the monitored user’s name within the web UI.
B. The Show More link on the debug log’s record.
C. On the monitored user’s name.
D. The Log Filters tab on a class or trigger detail page.
B. The Show More link on the debug log's record. D. The Log Filters tab on a class or trigger detail page.
When can a developer use a custom Visualforce page in a Force.com application?
Choose 2 answers
A. To create components for dashboards and layouts.
B. To deploy components between two organizations.
C. To generate a PDF document with application data.
D. To modify the page layout settings for a custom object.
A. To create components for dashboards and layouts.
C. To generate a PDF document with application data.
The Sales Management team hires a new intern. The intern is not allowed to view Opportunities, but needs to see the Most Recent Closed Date of all child Opportunities when viewing an Account record.
What would a developer do to meet this requirement?
A. Create a Workflow Rule on the Opportunity object that updates a field on the parent Account.
B. Create a formula field on the Account object that performs a MAX on the Opportunity Close Date field.
C. Create a roll-up summary field on the Account object that performs a MAX on the Opportunity Close Date field
D. Create a trigger on the Account object that queries the Close Date of the most recent Opportunities.
C. Create a roll-up summary field on the Account object that performs a MAX on the Opportunity Close Date field
A developer has the following code.
try { List nameList; Account a; String s = a.Name; nameList.add(s); } catch (ListException le) { System.debug('List Exception'); } catch (NullPointerException npe) { System.debug('NullPointer Exception'); } catch (Exception e) { System.debug('Generic Exception'); }
What message would be logged? A. No message is logged B. Generic Exception C. List Exception D. NullPointer Exception
D. NullPointer Exception
Which statement about change set deployments is accurate?
Choose 3 answers
A. They can be used only between related organizations.
B. They require a deployment connection.
C. They use an all or none deployment model.
D They can be used to transfer Contact records.
E. They can be used to deploy custom settings data.
A. They can be used only between related organizations.
B. They require a deployment connection.
C. They use an all or none deployment model.
A developer wants to list all of the Tasks for each Account on the Account detail page. When a Task is created for a Contact what does the developer need to do to display the Task on the related Account record?
A. Create an Account formula field that displays the Task information.
B. Nothing. The Task is automatically displayed on the Account page.
C. Create a Workflow Rule to relate the Task to the Contact’s Account.
D. Nothing. The Task cannot be related to an Account and a Contact.
B. Nothing. The Task is automatically displayed on the Account page.
Which scenario is invalid for execution by unit tests.
A. Executing methods for negative test scenario.
B. Executing methods as different users.
C. Loading test data in place of user input for Flows.
D. Load the standard Pricebook ID using a system method.
C. Loading test data in place of user input for Flows.
Where can the custom roll-up summary fields be created using Standard Object relationships (Choose 3)
A. On Opportunity using Opportunity Product records.
B. On Account using Case records.
C. On Quote using Order records.
D. On Campaign using Campaign Member records.
E. On Account using Opportunity records.
A. On Opportunity using Opportunity Product records.
D. On Campaign using Campaign Member records.
E. On Account using Opportunity records.
A developer has following query
Contact c = [SELECT Id, FirstName, LastName, Email FROM Contact WHERE LastName = ‘Smith’];
What does the query return if there is no Contact with the last name “Smith”?
A. A Contact with empty values.
B. A Contact initialized to null.
C. An empty List of Contacts.
D. An error that no rows are found.
D. An error that no rows are found.
A Hierarchy Custom Setting stores a specific URL for each profile in Salesforce.
Which statement can a developer use to retrieve the correct URL for the current user’s profile and display this Visualforce Page?
A. {!$Setup.Url_Settings_c.Instance[Profile.Id].URL__c}
B. {!$Setup.Url_Settings_c.URL__c}
C. {!$Setup.Url_Settings_c[Profile.Id].URL__c}
D. {!$Setup.Url_Settings_c[$Profile.Id].URL__c}
B. {!$Setup.Url_Settings_c.URL__c}
A developer writes a SOQL query to find child records for a specific parent
How many specific levels can be returned in a single query?
A.3
B.5
C.1
D.7
C.1
What actions types should be configured to display a custom success message?
A. Update a record.
B. Post a feed item.
C. Delete a record.
D. Close a case.
A. Update a record.
What is the easiest way to verify a user before showing them sensitive content?
A. Sending the user a SMS message with a passcode.
B. Calling the generateVerificationUrl method in apex.
C. Sending the user an Email message with a passcode.s
D. Calling the Session.forcedLoginUrl method in apex.
B. Calling the generateVerificationUrl method in apex.
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.
How would a developer determine if a CustomObject__c record has been manually shared with the current user in Apex?
A. By querying the role hierarchy.
B. By calling the isShared() method for the record.
C. By querying CustomObject__Share.
D. By calling the profile settings of the current user.
C. By querying CustomObject__Share.
What are three ways for a developer to execute tests in an org? choose 3 answers
a) Bulk API
b) MetaData API
c) Tooling API
d) Developer console
e) Setup menu
c) Tooling API
d) Developer console
e) Setup menu
Which set of roll-up types are available when creating a roll up summary field?
a) COUNT, SUM, MIN, MAX
b) AVERAGE, COUNT, SUM, MIN, MAX
c) AVERAGE, SUM, MIN, MAX
d) SUM, MIN, MAX
a) COUNT, SUM, MIN, MAX
Using the schema builder, a developer tries to change the API name of a field that is referenced in an Apex Test Class. What is the end results?
a) The API name of the field is changed, and a warning is issued to update the class
b) The API name of the field and the reference in the test class is updated
c) The API name of the field and the reference in the test class is changed
d) The API name is not changed and there are no other impacts.
a) The API name of the field is changed, and a warning is issued to update the class
Why would a developer consider using a custom controller over a controller extension?
a) To increase the SOQL query governor’s limits
b) To leverage built-in functionality of a standard controller
c) To enforce user sharing settings and permissions
d) To implement all of the logic for a page and bypass default salesforce functionality
d) To implement all of the logic for a page and bypass default salesforce functionality
Which two platform features allow for the use of unsupported languages? Choose 2 answers.
a) App.json
b) Docker
c) Heroku ACM
d) Buildpacks
b) Docker
c) Heroku ACM
A Developer needs to test an invoicing system integration. After reviewing the numbers of transaction required for the test, the developer estimates that the test data will total about 2GB of data storage. Production data is not required for integration testing. Which two environments meet the requirements for testing? Choose 2 answers
a) Full sandbox
b) Developer sandbox
c) Developer Pro Sandbox
d) Developer Edition
e) Partial Sandbox
a) Full sandbox
e) Partial Sandbox
What is a capability of the Tag that is used for loading external javascript libraries in lightning components? Choose 3 answers
a) Loading scripts in parallel
b) One-time loading from duplicate scripts
c) Loading files from documents
d) Specifying loading order
e) Loading externally hosted scripts
a) Loading scripts in parallel
b) One-time loading from duplicate scripts
d) Specifying loading order
What is a requirement for a class to be used as a custom visualforce controller?
a) Any top-level Apex class that has a constructor that returns a PageReference
b) Any top-level Apex class that implements the controller interface
c) Any top-level Apex class that has a default, no-argument constructor
d) Any top-level Apex class that extends a PageReference
d) Any top-level Apex class that extends a PageReference
Which three tools can deploy metadata to productions? Choose 3 answers.
a) Data Loader
b) Change set from sandbox
c) Change set from developer org
d) Force.com IDE
e) Metadata API
b) Change set from sandbox
d) Force.com IDE
e) Metadata API
What are the eight officially supported languages on the Heroku Platform?
a) Lisp, PHP, Node, Ruby, Scala, Haskell, Go, Erlang
b) C#, C++, Node, Ruby, Java, PHP, Go,.Net
c) Node, Ruby, Java, PHP, Python,. Net, C++
d) Node, Ruby, Java, PHP, Python,Go, Scala, Clojure.
d) Node, Ruby, Java, PHP, Python,Go, Scala, Clojure.
What is a benefit of using an after insert trigger over using a before insert trigger?
a) An after insert trigger allows a developer to bypass validation rules when updating fields on
the new records
b) An after insert trigger allows a developer to make a callout to an external service.
c) An after insert trigger allows a developer to insert other objects that reference the new
records
d) An after insert trigger allows a developer to modify fields in the new record without a query.
c) An after insert trigger allows a developer to insert other objects that reference the new
records
What is the correct invocation to push code to the app sushi-prod from the command line?
a) Heroku push - - app sushi-prod
b) git push master
c) Heroku git push master
d) git push heroku master - - app sushi-prod
d) git push heroku master - - app sushi-prod
Which statement results in an Apex compiler error?
a) Map imap = new map ([Select ID from Lead Limit 8]);
b) List s = List { ‘a’,’b’,’c’};
c) Integer a=5, b=6,c,d=7;
d) Date D1 = Date.Today(), d2 = DATE.ValueOf(‘2018-01-01’);
b) List s = List { ‘a’,’b’,’c’};
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 cope of an Apex transaction
c) Allowed only in outer classes
d) Allowed only in inner classes
e) Are Not transmitted as part of the view state for a Visualforce page
a) Initialized only when a class is loaded
c) Allowed only in outer classes
e) Are Not transmitted as part of the view state for a Visualforce page
Before putting an app into production, which step should be taken?
a) Run the production check feature via the web interface
b) Switch to a production database
c) Insure that you have installed a performance introspection add-on
d) Scale your dynos
Before putting an app into production, which step should be taken?
a) Run the production check feature via the web interface
Which tool allows a developer to send requests to the salesforce REST APIs ad view the
responses?
a) Developer Console REST tab
b) REST resource Path URL
c) Workbench Rest Explorer
d) Force.com IDE REST Explorer Tab
c) Workbench Rest Explorer
Where can a developer identify the time taken by each process in request using Developer
console log inspector.
a) Save order tab under Execution Overview panel
b) Performance Tree tab under Stack Tree Panel
c) Timeline tab under Execution Overview panel
d) Execution tree tab under Stack Tree Panel
c) Timeline tab under Execution Overview panel
What are two features of Heroku Connect?
Choose 2 answers
a) Real time sync between salesforce and Postgres
b) Bidirectional sync, allowing data to be written into SFDC
c) Near Real Time Sync between Heroku Postgres and Salesforce
d) Displaying data from an external data store via External Objects
a) Real time sync between salesforce and Postgres
b) Bidirectional sync, allowing data to be written into SFDC
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 getGlobalDescribe()get(myObject).getDescribe().fields.getmap () to return a map of
fields
b) Use schema.describeSObjects(new String[] {myObject}[0].fields.getMap() to return a map
of fields
c) Use SObjectType.myObejct.fields.getMap() to return a map of fields.
d) Use myObejct.sObjectType.getDescribe().fieldSet() to return a set of fields.
a) Use getGlobalDescribe()get(myObject).getDescribe().fields.getmap () to return a map of
fields
b) Use schema.describeSObjects(new String[] {myObject}[0].fields.getMap() to return a map
of fields
The organization IDs of your sandboxes remain same each time your sandbox is refreshed
- True
- False
- True
Which edition of Salesforce is API access not available for by default?
- Developer
- Professional
- Unlimited
- All Editions
- Professional
Which of the following is not a sandbox type?
- Professional
- Developer
- Partial Data
- Full
- Professional
What is API Access?
- Is required to be able to deploy APEX Code in Force.com
- Can be given to users to allow them to access all Apps.
- Allows developers to write test classes within Salesforce.
- Provides direct access to all data stored in Force.com from virtually any platform.
- Is required to be able to deploy APEX Code in Force.com
What is the maximum number of external IDs an object may have?
- 1
- 7
- 5
- 3
- 7
Which of the following statements are true about Record ID’s?
- The 18 character ID is case-insensitive
- The 18 character ID is case-sensitive
- The 15 character ID is case-insensitive
- The 15 character ID is case-sensitive
- The 18 character ID is case-insensitive
4. The 15 character ID is case-sensitive
What are the three different custom tabs you can create? (Select 3)
- Custom Object Tab
- Standard Object Tab
- Visualforce Tab
- Web Tab
- APEX Tab
- Custom Object Tab
- Visualforce Tab
- Web Tab
There is more than 1 version of a Salesforce Record ID?
- False
- True
- True
What is the maximum number of master-detail lookup relationships allowable per object?
- 3
- 2
- 4
- 1
- 2
Standard picklist fields can be controlling or dependent?
- True
- False
- False
An organization needs to create a public website that displays data from Salesforce.com organization without user registration.
- Apex
- Salesforce Knowledgebase
- Force.com sites
- Visualforce
- Force.com sites
Which of the following cannot be done via a Workflow?
- Create an Outbound Message
- Create an Email Alert
- Create an Event
- Create a Task
- Create an Event
A developer has a single custom controller class that works with a Visualforce Wizard to support creating and editing multiple sObjects. The wizard accepts data from user inputs across multiple Visualforce pages and from a parameter on the initial URL.
Which statement is unnecessary inside the unit test for the custom controller?
A. public ExtendController(ApexPages.StandardController cntrl) {}
B. ApexPages.currentPage().getParameters().put(‘input’, ‘TestValue’);
C. Test.setCurrentPage(pageref);
D. String nextPage = controller.save().getUrl();
D. String nextPage = controller.save().getUrl();
When would a developer use a custom controller instead of a controller extension? Choose 2 answers
A. When a Visualforce page needs to replace the functionality of a standard controller.
B. When a Visualforce page does not reference a single primary object.
C. When a Visualforce page should not enforce permissions or field-level security.
D. When a Visualforce page needs to add new actions a standard controller.
B. When a Visualforce page does not reference a single primary object.
C. When a Visualforce page should not enforce permissions or field-level security.
A developer has a following trigger that fires after insert and creates a child Case whenever a new Case is created.
List childCases = new List(); 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. A child case is created for each parent case in Trigger.new.
C. The trigger enter an infinite loop and eventually fails.
D. The trigger fails if the Subject field on the Parent is blank.
C. The trigger enter an infinite loop and eventually fails.
What is an accurate constructor for a custom controller named “MyController”?
A. public MyController() { account = new Account(); } B. public MyController(SObject obj) { account = (Account) obj; }
C. public MyController(List objects) {
accounts = (List) objects;
}
D. public MyController(ApexPages.StandardController stdController) {
account = (Account) stdController.getRecord();
}
A. public MyController() { account = new Account(); }
Where can debug log filter setting be set?
A. The filter link by the monitored user’s name within the web UI.
B. The Show More link on the debug log’s record.
C. On the monitored user’s name.
D. The Log Filters tab on a class or trigger detail page.
A. The filter link by the monitored user's name within the web UI. D. The Log Filters tab on a class or trigger detail page.
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. B
B. C
C. D
D. A
A. B
When can a developer use a custom Visualforce page in a Force.com application? Choose 2 answers.
A. To create components for dashboards and layouts
B. To deploy components between two organizations
C. To generate a PDF document with application data
D. To modify the page layout settings for a custom object.
A. To create components for dashboards and layouts
C. To generate a PDF document with application data
What is a capability of a StandardSetController?
Choose 2 answers
A. It extends the functionality of a standard or custom controller.
B. It allows pages to perform mass updates of records.
C. It allows pages to perform pagination with large record sets.
D. It enforces field-level security when reading large record sets.
B. It allows pages to perform mass updates of records.
C. It allows pages to perform pagination with large record sets.
Which statement about change set deployments is accurate?
Choose 3 answers
A. They can be used only between related organizations.
B. They require a deployment connection.
C. They use an all or none deployment model.
D. They can be used to transfer Contact records.
E. They can be used to deploy custom settings data.
A. They can be used only between related organizations.
B. They require a deployment connection.
C. They use an all or none deployment model.
What is an accurate statement about variable scope? Choose 3 answers.
A. Sub-blocks cannot reuse a parent block’s variable name.
B. A variable can be defined at any point in a block.
C. Parallel blocks can use the same variable name.
D. Sub-blocks can reuse a parent block’s variable name if its value is null.
E. A static variable can restrict the scope to the current block if its value is null.
A. Sub-blocks cannot reuse a parent block’s variable name.
B. A variable can be defined at any point in a block.
C. Parallel blocks can use the same variable name.
What is a capability of formula field? Choose 3 answers.
A. Display a previous value for a field using the PRIORVALUE function
B. Return and display a field value from another object using VLOOKUP function.
C. Determine which of the three different images to display using IF function
D. Generate a link using HYPERLINK function to a specific record in a legacy system.
E. Determine if a datetime field has passed using the NOW function.
A. Display a previous value for a field using the PRIORVALUE function
C. Determine which of the three different images to display using IF function
E. Determine if a datetime field has passed using the NOW function.
Which three use case requires a partial copy or full sandbox? Choose three answers A. Scalability Testing B. Development Testing C. Quality Assurance Testing D. Batch Data Testing E. Integration Testing
A. Scalability Testing
D. Batch Data Testing
E. Integration Testing
Which two are valid in the where clause of a SOQL query? Choose two answers A. A geolocation field. B. An encrypted field. C. An aggregate function. D. An alias notation.
A. A geolocation field.
D. An alias notation.
A developer has a requirement to display a chart on the account page layout to help users visualize data. Which of the following statements is not true about how charts could be incorporated into a VisualForce page?
a. A collection of standard components can be used to create VisualForce charts
b. Javascript charting libraries can be used
c. Google Charts can be integrated into VisualForce
d. VisualForce charts will display in VisualForce pages rendered as PDF
d. VisualForce charts will display in VisualForce pages rendered as PDF
Which of the following statements about setter methods is false?
a. The [set] method is used to pass values from Visualforce page to controller
b. Setter methods are executed prior to action methods
c. It is necessary to include a setter method to pass values into a controller
d. Setter methods must always be named setVariable
c. It is necessary to include a setter method to pass values into a controller
What is true regarding using the Force.com IDE for deploying code?
a. The Force.com IDE cannot be used for deploying code
b. The Force.com IDE can be used for deploying code but only from one sandbox to another
c. The Force.com IDE can be used to deploy code to productcion
d. The Force.com IDE can be used to selectively deploy metadata components to another org
c. The Force.com IDE can be used to deploy code to productcion
d. The Force.com IDE can be used to selectively deploy metadata components to another org
An administrator needs to get records with locations saved in geolocation or address fields as individual latitude and longitude values. Which SOQL statement accomplishes this goal?
a. SELECT id, Name, Location__latitude__s, Location__longitude__s FROM CustomObject___c
b. SELECT Id, Name, Location_latitude__c, Location__longitude__c FROM CusotmObject__c
c. SELECT Id, Name, Location__r.latitude__c, Location__r.longitude__c FROM CusotmObject__c
d. SELECT Id, Name, Location__r.latitude, Location__r.longitude FROM CustomObject__c
a. SELECT id, Name, Location__latitude__s, Location__longitude__s FROM CustomObject___c
b. SELECT Id, Name, Location_latitude__c, Location__longitude__c FROM CusotmObject__c
What is true regarding how to display data in a Visualforce page?
choose 2 answers
a. Expression syntax is used to bind components to the data set available in the page controller
b. Object data can be inserted but not global data
c. Data context is provided to controllers by the id parameter of the page
d. The component can be used to display individual fields from a record
a. Expression syntax is used to bind components to the data set available in the page controller
c. Data context is provided to controllers by the id parameter of the page
What is true regarding the runas method?
choose 2 answers
a. runas can be used in any APEX method
b. runas can be used with existing users or a new user
c. runas enforces user permissions and field level permissions
d. runas ignores user license limits
b. runas can be used with existing users or a new user
d. runas ignores user license limits
All of the following are action methods that are supported by standard controllers except?
a. Quicksave
b. Delete
c. Select
d. Cancel
c. Select
Which of the following are NOT valid use cases of Apex classes? Choose 2 answers.
a. Triggers
b. Multiple objects validation
c. Visualforce pages with standard controllers
d. Web Service
e. Custom button with Javascript
c. Visualforce pages with standard controllers
e. Custom button with Javascript
Which features are available in the Force.com IDE?
choose 2 answers
a. Schema builder
b. Process builder
c. Schema Explorer
d. Approval Visualizer
e. Write and Execute Anonymous blocks
c. Schema Explorer
e. Write and Execute Anonymous blocks
You have a requirement to display the total cost of products at the time they were added to an opportunity. The product cost is a custom field on the product object and is added as a formula field to the opportunity product object. How would you meet this requirement?
a. Create a rollup summary field on the opportunity based on the product cost formula field
b. Create a workflow rule that copies the product cost to a currency field and create a rollup summary field based on the currency field.
c. A trigger is required to sum the values of the product cost formula field
d. A trigger is required to query the product cost values and update the opportunity
b. Create a workflow rule that copies the product cost to a currency field and create a rollup summary field based on the currency field.
What methods can be used to get a list of all sObject in an organization and their fields?
choose 2 answers
a. describeObjects()
b. describeGlobal()
c. describeSObjects()
d. describeSObjectFields()
b. describeGlobal()
c. describeSObjects()
hat are the recommended tools for deploying metadata from one org to another?
choose 2 answers
a. Unmanaged Packages
b. Data Loader
c. Metadata API
d. Change Sets
e. Force.com Migration Tool
d. Change Sets
e. Force.com Migration Tool
A PageReference is a reference to an instantiation of a page. Which of the following are valid means of instantiating a PageReference?
There are 2 correct answers
a. ApexPages.Page().existingPageName
b. Page.existingPageName
c. PageReference pageRef = newPageReference(‘URL’)
d. PageReference.page(‘URL’)
b. Page.existingPageName
c. PageReference pageRef = newPageReference(‘URL’)