ExamGecko
Ask Question

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

List of questions

Question 81

Report
Export
Collapse

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?

<apex:variable>
<apex:variable>
<apex:define>
<apex:define>
<apex:param>
<apex:param>
<apex:attribute>
<apex:attribute>
Suggested answer: D
asked 23/09/2024
Ernest Altagracia Marte
40 questions

Question 82

Report
Export
Collapse

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

Opportunity and User
Opportunity and User
Account and AccountShare
Account and AccountShare
Case and CaseComment
Case and CaseComment
Account and Group
Account and Group
Suggested answer: B, C
asked 23/09/2024
Robert Aghten
34 questions

Question 83

Report
Export
Collapse

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

To filter results based on distance from a latitude and longitude
To filter results based on distance from a latitude and longitude
To get the distance results from a latitude and longitude
To get the distance results from a latitude and longitude
To order results by distance from a latitude or longitude
To order results by distance from a latitude or longitude
To group results in distance ranges from a latitude and longitude
To group results in distance ranges from a latitude and longitude
Suggested answer: A, C
asked 23/09/2024
Manuela Kays
36 questions

Question 84

Report
Export
Collapse

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

Organization Id
Organization Id
Session Id
Session Id
Username and Password
Username and Password
Security Token
Security Token
Suggested answer: A, C
asked 23/09/2024
Andrey Baturov
39 questions

Question 85

Report
Export
Collapse

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

Custom Labels
Custom Labels
convertCurrency()
convertCurrency()
Global Labels
Global Labels
Translation Workberic
Translation Workberic
getLocalCurrency()
getLocalCurrency()
Suggested answer: A, B, D
asked 23/09/2024
Lee, Eduardo
48 questions

Question 86

Report
Export
Collapse

A developer needs test data for Apex test classes.

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

List<sObject> Is = Test.loadData (Lead.sObjectType, fmyTestLeads f);
List<sObject> Is = Test.loadData (Lead.sObjectType, fmyTestLeads f);
myDataFactory.createTestRecords (10)
myDataFactory.createTestRecords (10)
Database.createTestRecords (10)
Database.createTestRecords (10)
List<sObject> Is = Test.loadDat (Lead.sObjectType, $Resource + 'myTestLeads f);
List<sObject> Is = Test.loadDat (Lead.sObjectType, $Resource + 'myTestLeads f);
Suggested answer: A, B
asked 23/09/2024
khalid Hassan
33 questions

Question 87

Report
Export
Collapse

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

List<sObject>
List<sObject>
List<List<sObject>>
List<List<sObject>>
List<AggregateResult>
List<AggregateResult>
List<Account>
List<Account>
Suggested answer: B
asked 23/09/2024
Shaharyar Chaudhry
42 questions

Question 88

Report
Export
Collapse

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

Users
Users
Groups
Groups
Profiles
Profiles
Roles
Roles
Organization
Organization
Suggested answer: A, C, E
asked 23/09/2024
Jeff Benson
44 questions

Question 89

Report
Export
Collapse

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

@RemoteAction global static String getTable()
@RemoteAction global static String getTable()
@RemoteAction global String getTable()
@RemoteAction global String getTable()
@RemoteAction public static String getTable()
@RemoteAction public static String getTable()
@RemoteObject global static String getTableQ
@RemoteObject global static String getTableQ
Suggested answer: A, C
asked 23/09/2024
Reginald Curtis Jr
35 questions

Question 90

Report
Export
Collapse

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

Streaming AP
Streaming AP
Test API
Test API
Tooling API
Tooling API
SOAP API
SOAP API
Metadata API
Metadata API
Suggested answer: C, D, E
asked 23/09/2024
Anthony Agbale
46 questions
Total 438 questions
Go to page: of 44

Related questions