ExamGecko
Home Home / Salesforce / Certified Platform Developer II

Salesforce Certified Platform Developer II Practice Test - Questions Answers, Page 9

Question list
Search
Search

List of questions

Search

Related questions











A developer created a custom component to display an HTML table. The developer wants to be able to use the component on different Visualforce Pages and specify different header text for the table.

Which tag should the developer use inside the component?

A.
<apex:variable>
A.
<apex:variable>
Answers
B.
<apex:define>
B.
<apex:define>
Answers
C.
<apex:param>
C.
<apex:param>
Answers
D.
<apex:attribute>
D.
<apex:attribute>
Answers
Suggested answer: D

Which two objects can be inserted in the same transaction? (Choose two.)

A.
Opportunity and User
A.
Opportunity and User
Answers
B.
Account and AccountShare
B.
Account and AccountShare
Answers
C.
Case and CaseComment
C.
Case and CaseComment
Answers
D.
Account and Group
D.
Account and Group
Answers
Suggested answer: B, C

How can the DISTANCE and GEOLOCATION functions be used i|n SOQL queries? (Choose two.)

A.
To filter results based on distance from a latitude and longitude
A.
To filter results based on distance from a latitude and longitude
Answers
B.
To get the distance results from a latitude and longitude
B.
To get the distance results from a latitude and longitude
Answers
C.
To order results by distance from a latitude or longitude
C.
To order results by distance from a latitude or longitude
Answers
D.
To group results in distance ranges from a latitude and longitude
D.
To group results in distance ranges from a latitude and longitude
Answers
Suggested answer: A, C

A developer has created a solution using the SOAP API for authenticating Communities users. What is needed when issuing the login() Call? (Choose two.)

A.
Organization Id
A.
Organization Id
Answers
B.
Session Id
B.
Session Id
Answers
C.
Username and Password
C.
Username and Password
Answers
D.
Security Token
D.
Security Token
Answers
Suggested answer: A, C

When developing a Visualforce page that will be used by a global organization that does business in many languages and many currencies, which feature should be used? (Choose three.)

A.
Custom Labels
A.
Custom Labels
Answers
B.
convertCurrency()
B.
convertCurrency()
Answers
C.
Global Labels
C.
Global Labels
Answers
D.
Translation Workberic
D.
Translation Workberic
Answers
E.
getLocalCurrency()
E.
getLocalCurrency()
Answers
Suggested answer: A, B, D

A developer needs test data for Apex test classes.

What can the developer use to provide test data to the test methods? (Choose two.)

A.
List<sObject> Is = Test.loadData (Lead.sObjectType, fmyTestLeads f);
A.
List<sObject> Is = Test.loadData (Lead.sObjectType, fmyTestLeads f);
Answers
B.
myDataFactory.createTestRecords (10)
B.
myDataFactory.createTestRecords (10)
Answers
C.
Database.createTestRecords (10)
C.
Database.createTestRecords (10)
Answers
D.
List<sObject> Is = Test.loadDat (Lead.sObjectType, $Resource + 'myTestLeads f);
D.
List<sObject> Is = Test.loadDat (Lead.sObjectType, $Resource + 'myTestLeads f);
Answers
Suggested answer: A, B

[FIND 'map' IN ALL FIELDS RETURNING Account (Id, Name), Contact, Opportunity, Lead] What is a valid return type for th|e following SOSL query?

A.
List<sObject>
A.
List<sObject>
Answers
B.
List<List<sObject>>
B.
List<List<sObject>>
Answers
C.
List<AggregateResult>
C.
List<AggregateResult>
Answers
D.
List<Account>
D.
List<Account>
Answers
Suggested answer: B

What level can a hierarchy custom setting be defined for? (Choose three.)

A.
Users
A.
Users
Answers
B.
Groups
B.
Groups
Answers
C.
Profiles
C.
Profiles
Answers
D.
Roles
D.
Roles
Answers
E.
Organization
E.
Organization
Answers
Suggested answer: A, C, E

A developer has created a Visualforce page that uses a third-party JavaScript framework. The developer has decided to supply data to the JavaScript functions using JavaScript Remoting for Apex Controllers.

What is the correct syntax to declare a remote method in Apex? (Choose two.)

A.
@RemoteAction global static String getTable()
A.
@RemoteAction global static String getTable()
Answers
B.
@RemoteAction global String getTable()
B.
@RemoteAction global String getTable()
Answers
C.
@RemoteAction public static String getTable()
C.
@RemoteAction public static String getTable()
Answers
D.
@RemoteObject global static String getTableQ
D.
@RemoteObject global static String getTableQ
Answers
Suggested answer: A, C

Which API can b|e used to execute unit tests? (Choose three.)

A.
Streaming AP
A.
Streaming AP
Answers
B.
Test API
B.
Test API
Answers
C.
Tooling API
C.
Tooling API
Answers
D.
SOAP API
D.
SOAP API
Answers
E.
Metadata API
E.
Metadata API
Answers
Suggested answer: C, D, E
Total 408 questions
Go to page: of 41