Topic 1 : Exam Pool A
A developer wants to override a button using Visualforce on an object.
What is the requirement?
A.
The controller or extension must have a PageReference method.
B.
The standardController attribute must be set to the object.
C.
The action attribute must be set to a controller method.
D.
The object record must be instantiated in a controller or extension.
The standardController attribute must be set to the object.
What is a capability of the <ltng:require> tag that is used for loading external Javascript libraries in Lightning Component? (Choose three.)
A.
Loading files from Documents.
B.
One-time loading for duplicate scripts.
C.
Specifying loading order.
D.
Loading scripts in parallel.
E.
Loading externally hosted scripts.
One-time loading for duplicate scripts.
Specifying loading order.
Loading scripts in parallel.
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 two.)
A.
Use myObject.sObjectType.getDescribe().fieldSet() to return a set of fields.
B.
Use mySObject.myObject.fields.getMap() to return a map of fields.
C.
Use Schema.describeSObjects(new String[]{myObject})[0].fields.getMap() to return a map of fields.
D.
Use getGlobalDescribe().get(myObject).getDescribe().fields.getMap() to return a map of fields.
Use mySObject.myObject.fields.getMap() to return a map of fields.
Use Schema.describeSObjects(new String[]{myObject})[0].fields.getMap() to return a map of fields.
Which three options allow a developer to use custom styling in a Visualforce page? (Choose three.)
A.
<apex:stylesheet> tag
B.
Inline CSS
C.
<apex:style>tag
D.
<apex:stylesheets>tag
E.
A static resource
<apex:stylesheet> tag
Inline CSS
A static resource
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 Visualforce page.
B.
Create a test page that provides coverage of the Visualforce page.
C.
Create a test page that provides coverage of the custom controller.
Create a test class that provides coverage of the custom controller.
D.
Create a test class that provides coverage of the custom controller.
Create a test class that provides coverage of the custom controller.
A developer needs to create a Visualforce page that displays Case data. The page will be used by both support
reps and support managers. The Support Rep profile does not allow visibility of the Customer_Satisfaction__c
field, but the Support Manager profile does.
How can the developer create the page to enforce Field Level Security and keep future maintenance to a
minimum?
A.
Create one Visualforce Page for use by both profiles.
B.
Use a new Support Manager permission set.
C.
Create a separate Visualforce Page for each profile.
D.
Use a custom controller that has the with sharing keywords.
Use a custom controller that has the with sharing keywords.
A developer has the controller class below.
Which code block will run successfully in an execute anonymous window?
A.
myFooController m = new myFooController();System.assert(m.prop !=null);
B.
myFooController m = new myFooController();System.assert(m.prop ==0);
C.
myFooController m = new myFooController();System.assert(m.prop ==null);
D.
myFooController m = new myFooController();System.assert(m.prop ==1);
myFooController m = new myFooController();System.assert(m.prop ==null);
Which two number expressions evaluate correctly? (Choose two.)
A.
Double d = 3.14159;
B.
Integer I = 3.14159;
C.
Decimal d = 3.14159;
D.
Long l = 3.14159;
Double d = 3.14159;
Decimal d = 3.14159;
Where can a developer identify the time taken by each process in a transaction using Developer Console log inspector?
A.
Performance Tree tab under Stack Tree panel
B.
Execution Tree tab under Stack Tree panel
C.
Timeline tab under Execution Overview panel
D.
Save Order tab under Execution Overview panel
Timeline tab under Execution Overview panel
Universal Containers wants Opportunities to be locked from editing when reaching the Closed/Won stage.
Which two strategies should a developer use to accomplish this? (Choose two.)
A.
Use a Visual Workflow.
B.
Use a validation rule.
C.
Use the Process Automation Settings.
D.
Use a Trigger.
Use a validation rule.
Use a Trigger.
A developer encounters APEX heap limit errors in a trigger.
Which two methods should the developer use to avoid this error? (Choose two.)
A.
Use the transient keyword when declaring variables.
B.
Query and store fields from the related object in a collection when updating related objects.
C.
Remove or set collections to null after use.
D.
Use SOQL for loops instead of assigning large queries results to a single collection and looping through
the collection.
Use the transient keyword when declaring variables.
Use SOQL for loops instead of assigning large queries results to a single collection and looping through
the collection.
For which three items can a trace flag be configured? (Choose three.)
A.
Apex Trigger
B.
Apex Class
C.
Process Builder
D.
User
E.
Visualforce
Apex Trigger
Apex Class
User
Page 2 out of 33 Pages |
Previous |