Questions Flashcards

1
Q

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.

A

B. the Opportunity StandardController for pre -built functionality.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

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

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

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

A

B. Lookup

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

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

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

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

A. Create activities at multiple intervals.

B. Send an outbound message without Apex code.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

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.

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

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

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

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.

A

C. By using Maps to hold data from query results.

D. By performing DML transactions on lists of SObjects.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

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
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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

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

A. By using a PageReference with a partial or full URL.

B. By using the Page object and a Visualforce page name.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Which standard field needs to be populated when a developer inserts new Contact records programmatically?

A. Accountld
B. Name
C. LastName
D. FirstName

A

C. LastName

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q
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

A. public ExtendedController (ApexPages.StandardController cntrl) { }

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

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

A. Use Schema.PIcklistEntry returned by Case Status getDescribe().getPicklistValues().
B. Use Schema.RecordTypeinfo returned by Case.SObjectType getDescribe().getRecordTypelnfos()

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

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.

A

B. By changing Application_c.Status_c into a formula field.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

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.

A

B. After Committing to database.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

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
A

B. 100

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

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

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.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

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
A. The default modifier for a class is private.
B. Exception classes must end with the word exception.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

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

A. Use the constructor method for the controller.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

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

A An administrator.

C. A user who is assigned as the current approver.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

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

A

C. Namespace

D. Time

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

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
A

C. Validation rules
D. Lookup filters
E. Page layouts

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

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');
A

D.ApexPages.StandardSetController controller = new

ApexPages.StandardSetController(Database.getQueryLocator(‘select Id from Account Limit 1’);

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

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.

A
B. The Show More link on the debug log's record.
D. The Log Filters tab on a class or trigger detail page.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

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

A. To create components for dashboards and layouts.

C. To generate a PDF document with application data.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

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.

A

C. Create a roll-up summary field on the Account object that performs a MAX on the Opportunity Close Date field

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

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
A

D. NullPointer Exception

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

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

A. They can be used only between related organizations.
B. They require a deployment connection.
C. They use an all or none deployment model.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
29
Q

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.

A

B. Nothing. The Task is automatically displayed on the Account page.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
30
Q

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.

A

C. Loading test data in place of user input for Flows.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
31
Q

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

A. On Opportunity using Opportunity Product records.
D. On Campaign using Campaign Member records.
E. On Account using Opportunity records.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
32
Q

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.

A

D. An error that no rows are found.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
33
Q

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}

A

B. {!$Setup.Url_Settings_c.URL__c}

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
34
Q

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

A

C.1

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
35
Q

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

A. Update a record.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
36
Q

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.

A

B. Calling the generateVerificationUrl method in apex.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
37
Q

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.

A

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 well did you know this?
1
Not at all
2
3
4
5
Perfectly
38
Q

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.

A

C. By querying CustomObject__Share.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
39
Q

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

A

c) Tooling API
d) Developer console
e) Setup menu

40
Q

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

a) COUNT, SUM, MIN, MAX

41
Q

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

a) The API name of the field is changed, and a warning is issued to update the class

42
Q

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

A

d) To implement all of the logic for a page and bypass default salesforce functionality

43
Q

Which two platform features allow for the use of unsupported languages? Choose 2 answers.

a) App.json
b) Docker
c) Heroku ACM
d) Buildpacks

A

b) Docker

c) Heroku ACM

44
Q

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

a) Full sandbox

e) Partial Sandbox

45
Q

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

a) Loading scripts in parallel
b) One-time loading from duplicate scripts
d) Specifying loading order

46
Q

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

A

d) Any top-level Apex class that extends a PageReference

47
Q

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

A

b) Change set from sandbox
d) Force.com IDE
e) Metadata API

48
Q

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.

A

d) Node, Ruby, Java, PHP, Python,Go, Scala, Clojure.

49
Q

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.

A

c) An after insert trigger allows a developer to insert other objects that reference the new
records

50
Q

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

A

d) git push heroku master - - app sushi-prod

51
Q

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’);

A

b) List s = List { ‘a’,’b’,’c’};

52
Q

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

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

53
Q

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

a) Run the production check feature via the web interface

54
Q

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

A

c) Workbench Rest Explorer

55
Q

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

A

c) Timeline tab under Execution Overview panel

56
Q

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

a) Real time sync between salesforce and Postgres

b) Bidirectional sync, allowing data to be written into SFDC

57
Q

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

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

58
Q

The organization IDs of your sandboxes remain same each time your sandbox is refreshed

  1. True
  2. False
A
  1. True
59
Q

Which edition of Salesforce is API access not available for by default?

  1. Developer
  2. Professional
  3. Unlimited
  4. All Editions
A
  1. Professional
60
Q

Which of the following is not a sandbox type?

  1. Professional
  2. Developer
  3. Partial Data
  4. Full
A
  1. Professional
61
Q

What is API Access?

  1. Is required to be able to deploy APEX Code in Force.com
  2. Can be given to users to allow them to access all Apps.
  3. Allows developers to write test classes within Salesforce.
  4. Provides direct access to all data stored in Force.com from virtually any platform.
A
  1. Is required to be able to deploy APEX Code in Force.com
62
Q

What is the maximum number of external IDs an object may have?

  1. 1
  2. 7
  3. 5
  4. 3
A
  1. 7
63
Q

Which of the following statements are true about Record ID’s?

  1. The 18 character ID is case-insensitive
  2. The 18 character ID is case-sensitive
  3. The 15 character ID is case-insensitive
  4. The 15 character ID is case-sensitive
A
  1. The 18 character ID is case-insensitive

4. The 15 character ID is case-sensitive

64
Q

What are the three different custom tabs you can create? (Select 3)

  1. Custom Object Tab
  2. Standard Object Tab
  3. Visualforce Tab
  4. Web Tab
  5. APEX Tab
A
  1. Custom Object Tab
  2. Visualforce Tab
  3. Web Tab
65
Q

There is more than 1 version of a Salesforce Record ID?

  1. False
  2. True
A
  1. True
66
Q

What is the maximum number of master-detail lookup relationships allowable per object?

  1. 3
  2. 2
  3. 4
  4. 1
A
  1. 2
67
Q

Standard picklist fields can be controlling or dependent?

  1. True
  2. False
A
  1. False
68
Q

An organization needs to create a public website that displays data from Salesforce.com organization without user registration.

  1. Apex
  2. Salesforce Knowledgebase
  3. Force.com sites
  4. Visualforce
A
  1. Force.com sites
69
Q

Which of the following cannot be done via a Workflow?

  1. Create an Outbound Message
  2. Create an Email Alert
  3. Create an Event
  4. Create a Task
A
  1. Create an Event
70
Q

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();

A

D. String nextPage = controller.save().getUrl();

71
Q

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.

A

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.

72
Q

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.

A

C. The trigger enter an infinite loop and eventually fails.

73
Q

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
A. public MyController() {
account = new Account();
}
74
Q

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
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.
75
Q

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

A. B

76
Q

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

A. To create components for dashboards and layouts

C. To generate a PDF document with application data

77
Q

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.

A

B. It allows pages to perform mass updates of records.

C. It allows pages to perform pagination with large record sets.

78
Q

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

A. They can be used only between related organizations.
B. They require a deployment connection.
C. They use an all or none deployment model.

79
Q

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

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.

80
Q

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

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.

81
Q
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

A. Scalability Testing
D. Batch Data Testing
E. Integration Testing

82
Q
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. A geolocation field.

D. An alias notation.

83
Q

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

A

d. VisualForce charts will display in VisualForce pages rendered as PDF

84
Q

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

A

c. It is necessary to include a setter method to pass values into a controller

85
Q

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

A

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

86
Q

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

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

87
Q

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

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

88
Q

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

A

b. runas can be used with existing users or a new user

d. runas ignores user license limits

89
Q

All of the following are action methods that are supported by standard controllers except?

a. Quicksave
b. Delete
c. Select
d. Cancel

A

c. Select

90
Q

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

A

c. Visualforce pages with standard controllers

e. Custom button with Javascript

91
Q

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

A

c. Schema Explorer

e. Write and Execute Anonymous blocks

92
Q

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

A

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.

93
Q

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()

A

b. describeGlobal()

c. describeSObjects()

94
Q

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

A

d. Change Sets

e. Force.com Migration Tool

95
Q

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’)

A

b. Page.existingPageName

c. PageReference pageRef = newPageReference(‘URL’)