@palerock/exam-qa 1.0.6-patch2 → 1.0.6-patch20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.html +1 -1
- package/dist/static/css/app.4293d3540537974d843eca825dcda382.css +2 -0
- package/dist/static/css/app.4293d3540537974d843eca825dcda382.css.map +1 -0
- package/dist/static/js/app.e278f9557d317b4606b0.js +2 -0
- package/dist/static/js/app.e278f9557d317b4606b0.js.map +1 -0
- package/dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map +1 -1
- package/lib-json/Dev1/345/237/272/347/241/200/351/242/230.json +1407 -0
- package/lib-json/Dev1/346/250/241/346/213/237/345/215/267A.json +1538 -0
- package/lib-json/Dev1/346/250/241/346/213/237/345/215/267B.json +1534 -0
- package/lib-json/Dev1/346/265/201/347/250/213/350/207/252/345/212/250/345/214/226/344/270/216/351/200/273/350/276/2211.json +1587 -0
- package/lib-json/Dev1/346/265/201/347/250/213/350/207/252/345/212/250/345/214/226/344/270/216/351/200/273/350/276/2212.json +1042 -0
- package/lib-json/Dev1/346/265/213/350/257/225_/350/260/203/350/257/225_/351/203/250/347/275/262.json +928 -0
- package/lib-json/Dev1/347/224/250/346/210/267/347/225/214/351/235/242.json +1243 -0
- package/lib-json/[DEV2]Salesforce/345/237/272/347/241/200.json +375 -0
- package/lib-json/[DEV2]/346/200/247/350/203/275.json +728 -0
- package/lib-json/[DEV2]/346/250/241/346/213/237/345/215/267A.json +1403 -0
- package/lib-json/[DEV2]/346/250/241/346/213/237/345/215/267B.json +1387 -0
- package/lib-json/[DEV2]/346/265/213/350/257/225/344/270/216/351/203/250/347/275/262.json +828 -0
- package/lib-json/[DEV2]/347/224/250/346/210/267/347/225/214/351/235/2421.json +977 -0
- package/lib-json/[DEV2]/347/224/250/346/210/267/347/225/214/351/235/2422.json +667 -0
- package/lib-json/[DEV2]/351/200/273/350/276/221/343/200/201/346/265/201/347/250/213/350/207/252/345/212/250/345/214/226/345/222/214/351/233/206/346/210/2201.json +1387 -0
- package/lib-json/[DEV2]/351/200/273/350/276/221/343/200/201/346/265/201/347/250/213/350/207/252/345/212/250/345/214/226/345/222/214/351/233/206/346/210/2202.json +260 -0
- package/lib-json/[JS]/347/254/254/344/270/200/347/253/240 /345/217/230/351/207/217-/347/261/273/345/236/213-/351/233/206/345/220/210.json" +1048 -0
- package/lib-json/[JS]/347/254/254/344/270/203/347/253/240 /346/265/213/350/257/225.json" +356 -0
- package/lib-json/[JS]/347/254/254/344/270/211/347/253/240 /346/265/217/350/247/210/345/231/250/345/222/214/344/272/213/344/273/266.json" +851 -0
- package/lib-json/[JS]/347/254/254/344/272/214/347/253/240 /345/257/271/350/261/241-/345/207/275/346/225/260-/347/261/273.json" +1787 -0
- package/lib-json/[JS]/347/254/254/344/272/224/347/253/240 /345/274/202/346/255/245/347/274/226/347/250/213.json" +547 -0
- package/lib-json/[JS]/347/254/254/345/205/255/347/253/240 /346/234/215/345/212/241/345/231/250/347/253/257JavaScript.json" +613 -0
- package/lib-json/[JS]/347/254/254/345/233/233/347/253/240 /350/260/203/350/257/225/345/222/214/351/224/231/350/257/257/345/244/204/347/220/206.json" +525 -0
- package/lib-json/[/345/222/270/351/261/274]AppBuilder-1.json +977 -0
- package/lib-json/[/345/222/270/351/261/274]AppBuilder-2.json +941 -0
- package/lib-json/[/345/222/270/351/261/274]AppBuilder-3.json +973 -0
- package/lib-json/[/345/222/270/351/261/274]AppBuilder-4.json +981 -0
- package/lib-json/[/345/222/270/351/261/274]AppBuilder-5.json +771 -0
- package/lib-json/map.json +28 -43
- package/package.json +4 -2
- package/dist/static/css/app.d3e969a579969be885a3462a1e12e37f.css +0 -2
- package/dist/static/css/app.d3e969a579969be885a3462a1e12e37f.css.map +0 -1
- package/dist/static/js/app.53370ddfe5eba6a10565.js +0 -2
- package/dist/static/js/app.53370ddfe5eba6a10565.js.map +0 -1
- package/lib-json/Salesforce-Admin(302)-[Set-10].json +0 -321
- package/lib-json/Salesforce-Admin(302)-[Set-1].json +0 -301
- package/lib-json/Salesforce-Admin(302)-[Set-2].json +0 -325
- package/lib-json/Salesforce-Admin(302)-[Set-3].json +0 -305
- package/lib-json/Salesforce-Admin(302)-[Set-4].json +0 -325
- package/lib-json/Salesforce-Admin(302)-[Set-5].json +0 -329
- package/lib-json/Salesforce-Admin(302)-[Set-6].json +0 -322
- package/lib-json/Salesforce-Admin(302)-[Set-7].json +0 -321
- package/lib-json/Salesforce-Admin(302)-[Set-8].json +0 -321
- package/lib-json/Salesforce-Admin(302)-[Set-9].json +0 -325
- package/lib-json/Salesforce-Admin-201-[Set-10].json +0 -158
- package/lib-json/Salesforce-Admin-201-[Set-1].json +0 -604
- package/lib-json/Salesforce-Admin-201-[Set-2].json +0 -621
- package/lib-json/Salesforce-Admin-201-[Set-3].json +0 -650
- package/lib-json/Salesforce-Admin-201-[Set-4].json +0 -636
- package/lib-json/Salesforce-Admin-201-[Set-5].json +0 -640
- package/lib-json/Salesforce-Admin-201-[Set-6].json +0 -126
- package/lib-json/Salesforce-Admin-201-[Set-7].json +0 -126
- package/lib-json/Salesforce-Admin-201-[Set-8].json +0 -126
- package/lib-json/Salesforce-Admin-201-[Set-9].json +0 -126
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-1].json +0 -321
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-2].json +0 -325
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-3].json +0 -321
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-4].json +0 -337
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-5].json +0 -329
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-6].json +0 -325
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-7].json +0 -480
- package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-1].json +0 -305
- package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-2].json +0 -297
- package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-3].json +0 -269
- package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-4].json +0 -309
- package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-5].json +0 -515
- package/lib-json/app-builder-01.json +0 -1
- package/lib-json/app-builder-02.json +0 -1
- package/lib-json/app-builder-03.json +0 -1
- package/lib-json/app-builder-04.json +0 -1
- package/lib-json/app-builder-05.json +0 -1
- package/lib-json/app-builder-06.json +0 -1
- package/lib-json/app-builder-07.json +0 -1
- package/lib-json/app-builder-08.json +0 -1
- package/lib-json/app-builder-09.json +0 -1
- package/lib-json/app-builder-10.json +0 -1
- package/lib-json/app-builder-11.json +0 -311
@@ -0,0 +1,667 @@
|
|
1
|
+
{
|
2
|
+
"title": "用户界面2",
|
3
|
+
"category": "Dev2-自由部落侠",
|
4
|
+
"questions": [
|
5
|
+
{
|
6
|
+
"describe": "<p>A developer created a JavaScript library that simplifies the development of repetitive tasks and features and uploaded the library as a static resource called jsUtils in Salesforce. Another developer is coding a new Lightning web component(LWC) and wants to leverage the library.</p><p>Which statement properly loads the static resource within the LWC?</p><p><br/></p>",
|
7
|
+
"answerOptions": [
|
8
|
+
{
|
9
|
+
"describe": "<p>const jsUtility = $A.get('$Resource.jsUtils');</p>",
|
10
|
+
"isRight": false
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"describe": "<p>import jsUtilities from '@salesforce/resourceUrl/jsUtils';</p>",
|
14
|
+
"isRight": true
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"describe": "<p>import {jsUtilities} from '@salesforce/resourceUrl/jsUtils';</p>",
|
18
|
+
"isRight": false
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"describe": "<p><lightning-require scripts="{!$Resource.jsUtils}"/></p>",
|
22
|
+
"isRight": false
|
23
|
+
}
|
24
|
+
],
|
25
|
+
"hashCode": "2019145554",
|
26
|
+
"analysis": ""
|
27
|
+
},
|
28
|
+
{
|
29
|
+
"describe": "<p>A developer is developing a reusable Aura component that will reside on an sObject Lightning page with the following HTML snippet:</p><p><aura:component implements="force:hasRecordId, flexipage:availableForAllPageTypes"></p><p><div>Hello!</div></p><p></aura:component></p><p>How can the component's controller get the context of the Lightning page that the sObject is on without requiring additional test coverage?</p><p><br/></p>",
|
30
|
+
"answerOptions": [
|
31
|
+
{
|
32
|
+
"describe": "<p>Add force:hasSobjectName to the implements attribute.</p>",
|
33
|
+
"isRight": true
|
34
|
+
},
|
35
|
+
{
|
36
|
+
"describe": "<p>Use the getSobjectType() method in an Apex class.</p>",
|
37
|
+
"isRight": false
|
38
|
+
},
|
39
|
+
{
|
40
|
+
"describe": "<p>Create a design attribute and configure via App Builder.</p>",
|
41
|
+
"isRight": false
|
42
|
+
},
|
43
|
+
{
|
44
|
+
"describe": "<p>Set the sObject type as a component attribute.</p>",
|
45
|
+
"isRight": false
|
46
|
+
}
|
47
|
+
],
|
48
|
+
"hashCode": "2019145553",
|
49
|
+
"analysis": ""
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"describe": "<p>Refer to the Aura component below:</p><p>Component markup:</p><p><aura:component></p><p> <aura:attribute name="contactInfo" type="Object"/></p><p> <aura:attribute name="showContactInfo" type="boolean" default="true"/></p><p> <aura:handler name="init" value="{!this}" action="{!c.init}"/></p><p><br/></p><p> <!--- ...other code... ---></p><p> <aura:if isTrue="{!v.showContactInfo}"> </p><p> <c:contactInfo value="{!v.contactInfo}"/></p><p> </aura:if></p><p></aura:component></p><p>Controller JS:</p><p>({</p><p> init: function(cmp, helper) {</p><p> //...other code...</p><p> var show = helper.getShowContactInfo();</p><p> cmp.set("v.showContactInfo", show);</p><p> },</p><p> //other code...</p><p>})</p><p>A developer receives complaints that the component loads slowly.</p><p>Which change can the developer implement to make the component perform faster?</p><p><br/></p>",
|
53
|
+
"answerOptions": [
|
54
|
+
{
|
55
|
+
"describe": "<p>Change the type of contactInfo to "Map".</p>",
|
56
|
+
"isRight": false
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"describe": "<p>Add a change event handler for showContactInfo.</p>",
|
60
|
+
"isRight": false
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"describe": "<p>Change the default for showContactInfo to "false".</p>",
|
64
|
+
"isRight": true
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"describe": "<p>Move the contents of <c:contactInfo> into the component.</p>",
|
68
|
+
"isRight": false
|
69
|
+
}
|
70
|
+
],
|
71
|
+
"hashCode": "2019145552",
|
72
|
+
"analysis": ""
|
73
|
+
},
|
74
|
+
{
|
75
|
+
"describe": "<p>Consider the Apex class below that defines a RemoteAction used on a Visualforce search page.</p><p>Global with sharing class MyRemoter {</p><p> public String accountName {get; set;}</p><p> public static Account account {get; set;}</p><p> public MyRemoter() {}</p><p> </p><p> @RemoteAction</p><p> global static Account getAccount(String accountName) {</p><p> account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name = :accountName];</p><p> return account;</p><p> }</p><p>}</p><p>Which code snippet will assert that the remote action returned the correct Account?</p><p><br/></p>",
|
76
|
+
"answerOptions": [
|
77
|
+
{
|
78
|
+
"describe": "<p>Account a = MyRemoter.getAccount('TestAccount');</p><p>System.assertEquals( 'TestAccount', a.Name);</p><p><br/></p>",
|
79
|
+
"isRight": true
|
80
|
+
},
|
81
|
+
{
|
82
|
+
"describe": "<p>Account A = controller.getAccount('TestAccount');</p><p>System.assertEquals('TestAccount', a.Name);</p><p><br/></p>",
|
83
|
+
"isRight": false
|
84
|
+
},
|
85
|
+
{
|
86
|
+
"describe": "<p>MyRemoter remote = new MyRemoter();</p><p>Account a = remote.getAccount('TestAccount');</p><p>System.assertEquals('TestAccount', a.Name);</p><p><br/></p>",
|
87
|
+
"isRight": false
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"describe": "<p>MyRemoter remote = new MyRemoter('TestAccount');</p><p>Account a = remote.getAccount();</p><p><br/></p>",
|
91
|
+
"isRight": false
|
92
|
+
}
|
93
|
+
],
|
94
|
+
"hashCode": "2019145550",
|
95
|
+
"analysis": ""
|
96
|
+
},
|
97
|
+
{
|
98
|
+
"describe": "<p>Refer to the following code snippets:</p><p>MyOpportunities.js</p><p>import { LightningElement, api, wire } from 'lwc';</p><p>import getOpportunities from '@salesforce/apex/OpportunityController.findMyOpportunities';</p><p><br/></p><p>export default class MyOpportunities extends LightningElement {</p><p> @api userId;</p><p> @wire(getOpportunities, {oppOwner: '$userId'})</p><p> opportunities;</p><p>}</p><p><br/></p><p>OpportunityController.cls</p><p>public with sharing class OpportunityController {</p><p> @AuraEnabled</p><p> public static List<Opportunity> findMyOpportunities(Id oppOwner) {</p><p> return [</p><p> SELECT Id, Name, Amount</p><p> FROM Opportunity</p><p> WHERE OwnerId =: oppOwner</p><p> WITH SECURITY_ENFORCED</p><p> LIMIT 10</p><p> ];</p><p> }</p><p>}</p><p>A developer is experiencing issues with a Lightning web component. The component must surface information about Opportunities owned by the currently logged-in user.</p><p>When the component is rendered, the following message is displayed: "Error retrieving data".</p><p>Which modification should be implemented to the Apex class to overcome the issue?</p><p><br/></p>",
|
99
|
+
"answerOptions": [
|
100
|
+
{
|
101
|
+
"describe": "<p>Use the Continuation=true attribute in the Apex method.</p>",
|
102
|
+
"isRight": false
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"describe": "<p>Edit the code to use the without sharing keyword in the Apex class.</p>",
|
106
|
+
"isRight": false
|
107
|
+
},
|
108
|
+
{
|
109
|
+
"describe": "<p>Ensure the OWD for the Opportunity object is Public.</p>",
|
110
|
+
"isRight": false
|
111
|
+
},
|
112
|
+
{
|
113
|
+
"describe": "<p>Use the Cacheable=true attribute in the Apex method.</p>",
|
114
|
+
"isRight": true
|
115
|
+
}
|
116
|
+
],
|
117
|
+
"hashCode": "2019145549",
|
118
|
+
"analysis": ""
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"describe": "<p>Which three Visualforce components can be used to initiate Ajax behavior to perform partial page updates?Choose 3 answers</p>",
|
122
|
+
"answerOptions": [
|
123
|
+
{
|
124
|
+
"describe": "<p><apex:form></p>",
|
125
|
+
"isRight": false
|
126
|
+
},
|
127
|
+
{
|
128
|
+
"describe": "<p><apex:commandButton></p>",
|
129
|
+
"isRight": true
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"describe": "<p><apex:actionSupport></p>",
|
133
|
+
"isRight": true
|
134
|
+
},
|
135
|
+
{
|
136
|
+
"describe": "<p><apex:actionStatus></p>",
|
137
|
+
"isRight": false
|
138
|
+
},
|
139
|
+
{
|
140
|
+
"describe": "<p><apex:commandLink></p>",
|
141
|
+
"isRight": true
|
142
|
+
}
|
143
|
+
],
|
144
|
+
"hashCode": "2019145548",
|
145
|
+
"analysis": ""
|
146
|
+
},
|
147
|
+
{
|
148
|
+
"describe": "<p>Refer to the component code and requirements below:</p><p><br/></p><p><lightning:layout multipleRows="true"></p><p><lightning:layoutItem size="12">(!v. account.name) </p><p></lighting:layoutItem></p><p><br/></p><p><lightning:layoutItem size="12"> {!v.account .AccountNumber}</p><p></lighting:layoutItem></p><p><br/></p><p><lightning:layoutItem size="12"> {!v.account .Industry}</p><p></1ighting:layoutItem></p><p></lightning:layout></p><p><br/></p><p>Requirements:</p><p>1. For mobile devices, the information should display in three rows.</p><p>2. For desktops and tablets, the information should display in a single row.</p><p>Requirement 2 is not displaying as desired.</p><p>Which option has the correct component code to meet the requirements for desktops and and tablets?</p><p><br/></p>",
|
149
|
+
"answerOptions": [
|
150
|
+
{
|
151
|
+
"describe": "<p><lightning:layout multipleRows="true"></p><p><lightning:layoutItem size="12" largeDeviceSize="4">{!v.account .Name}</p><p></lighting:layoutItem></p><p><br/></p><p><1ightning:layoutItem size="12" largeDeviceSize="4">{!v.account .AccountNumber}</p><p></lighting:layoutItem></p><p><br/></p><p><1ightning:IayoutItem size="12" largeDeviceSize"4">{!v.account .Name}</p><p></1ighting:layoutItem&",
|
152
|
+
"isRight": false
|
153
|
+
},
|
154
|
+
{
|
155
|
+
"describe": "<p><lightning:layout multipleRows="true"></p><p><lightning:layoutItem size="12" mediumDeviceSize largeDeviceSize="4">{!v.account .Name}</p><p></1ighting:layoutItem></p><p><br/></p><p><lightning:layoutItem size="12" mediumDeviceSize </p><p>largeDeviceSize="4">{!v.account .AccountNumber}</p><p></1ighting:layoutItem></p><p><br/></p><p><lightning:layoutItem size="12" mediumDeviceSize largeDeviceSize=&qu",
|
156
|
+
"isRight": false
|
157
|
+
},
|
158
|
+
{
|
159
|
+
"describe": "<p><lightning:layout multipleRows="true"></p><p><lightning:layoutItem size="12" mediumDeviceSize="6">{!v.account .Name}</p><p></1ighting:layoutItem></p><p><br/></p><p><lightning:layoutItem size="12" mediumDeviceSize="6">{!v.account .AccountNumber}</p><p></1ighting:layoutItem></p><p><br/></p><p><br/></p><p><lightning:layoutItem size="12" mediumDeviceSize="6">{!v.account.Industry}</p><p></1",
|
160
|
+
"isRight": false
|
161
|
+
},
|
162
|
+
{
|
163
|
+
"describe": "<p><lightning:layout multipleRows="true"></p><p><lightning:layoutItem size="12" mediumDeviceSize="4">{!v.account .Name}</p><p></1ighting:layoutItem></p><p><br/></p><p><lightning:layoutItem size="12" mediumDeviceSize="4">{!v.account .AccountNumber}</p><p></1ighting:layoutItem></p><p><br/></p><p><lightning:layoutItem size="12" mediumDeviceSize="4">{!v.account.Industry}</p><p></1ighting:layo",
|
164
|
+
"isRight": true
|
165
|
+
}
|
166
|
+
],
|
167
|
+
"hashCode": "2019145523",
|
168
|
+
"analysis": ""
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"describe": "<p>A company has a custom component that allows users to search for records of a certain object type by invoking an Apex Controller that returns a list of results based on the user's input. When the search is completed, a searchComplete event is fired, with the results put in a results attribute of the event. The component is designed to be used within other components and may appear on a single page more than once.</p><p>What is the optimal code that should be added to fire the event when the search has completed?</p><p><br/></p>",
|
172
|
+
"answerOptions": [
|
173
|
+
{
|
174
|
+
"describe": "<p>var evt = component .getEvent ("seacchcomplete");</p><p>evt.getParams (( results: results ));</p><p>evt.fire();</p><p><br/></p>",
|
175
|
+
"isRight": false
|
176
|
+
},
|
177
|
+
{
|
178
|
+
"describe": "<p>var evt = A.get("e.c.searchComplete");</p><p>evt.set ("v.results" , results); </p><p>evt.fire();</p><p><br/></p>",
|
179
|
+
"isRight": false
|
180
|
+
},
|
181
|
+
{
|
182
|
+
"describe": "<p>var evt = A.get("e.c.searchComplete");</p><p>evt.getParams (( results: results ));</p><p>evt.fire();</p><p><br/></p>",
|
183
|
+
"isRight": true
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"describe": "<p>var evt = component .getEvent ("seacchcomplete");</p><p>evt.set ("v.results" , results); </p><p>evt.fire();</p><p><br/></p>",
|
187
|
+
"isRight": false
|
188
|
+
}
|
189
|
+
],
|
190
|
+
"hashCode": "2019145520",
|
191
|
+
"analysis": ""
|
192
|
+
},
|
193
|
+
{
|
194
|
+
"describe": "<p>Universal Containers requested the addition of a third-party Map widget to an existing Lightning web component.\nWhich two actions should the developer take to implement this requirement?\nChoose 2 answers</p>",
|
195
|
+
"answerOptions": [
|
196
|
+
{
|
197
|
+
"describe": "<p>Import the third-party JavaScript module directly into the component.</p>",
|
198
|
+
"isRight": false
|
199
|
+
},
|
200
|
+
{
|
201
|
+
"describe": "<p>Use a content distribution network and include <script> </script> tags in the component.</p>",
|
202
|
+
"isRight": false
|
203
|
+
},
|
204
|
+
{
|
205
|
+
"describe": "<p>Import 1oadscript from lightning/platformResourceLoader.</p>",
|
206
|
+
"isRight": true
|
207
|
+
},
|
208
|
+
{
|
209
|
+
"describe": "<p>Upload the third-party JavaScript library as a static resource that imports into the component.</p>",
|
210
|
+
"isRight": true
|
211
|
+
}
|
212
|
+
],
|
213
|
+
"hashCode": "2019145518",
|
214
|
+
"analysis": ""
|
215
|
+
},
|
216
|
+
{
|
217
|
+
"describe": "<p>A developer is creating a Lightning web component that displays a list of records in a lightning-datatable. After saving a new record to the database, the list is not updating.</p><p><br/></p><p>data;</p><p>@wire (recordList , { recordId : 'recordId' } )</p><p>records (result) {</p><p>If (result.data){</p><p>this.data = result.data;</p><p>}else if(result.error) {</p><p>this. showToast (result.error);</p><p> }</p><p>}</p><p>What should the developer change in the code above for this to happen?</p><p><br/></p>",
|
218
|
+
"answerOptions": [
|
219
|
+
{
|
220
|
+
"describe": "<p>Add the track decorator to the data variable.</p>",
|
221
|
+
"isRight": false
|
222
|
+
},
|
223
|
+
{
|
224
|
+
"describe": "<p>Create a new variable to store the result and annotate it with @track.</p>",
|
225
|
+
"isRight": false
|
226
|
+
},
|
227
|
+
{
|
228
|
+
"describe": "<p>Call refreshApex() on this.data.</p>",
|
229
|
+
"isRight": false
|
230
|
+
},
|
231
|
+
{
|
232
|
+
"describe": "<p>Create a variable to store the result and call refreshApex().</p>",
|
233
|
+
"isRight": true
|
234
|
+
}
|
235
|
+
],
|
236
|
+
"hashCode": "2019145516",
|
237
|
+
"analysis": ""
|
238
|
+
},
|
239
|
+
{
|
240
|
+
"describe": "<p>Consider the following code snippet:</p><p><br/></p><p>import ( Lightning Element 1 from 'lwc’;</p><p>import getorders from '@apex/OrderController. getAvailableorders';</p><p><br/></p><p>export default class OrderManagement extends LightningElement (</p><p>orders;</p><p>error;</p><p><br/></p><p>@wire (getOrders)</p><p>wiredOrders(( error, data )) {</p><p>if (data) {</p><p>this.orders = data;</p><p>this.error = undefined;</p><p>} else it (error) {</p><p>this.orders = data;</p><p>this.error = undefined; </p><p>}</p><p>}</p><p>}</p><p><br/></p><p>When the component is deployed, an error is reported.</p><p>Which two changes should the developer implement in the code to ensure the component deploys successfully?</p><p>Choose 2 answers</p><p><br/></p>",
|
241
|
+
"answerOptions": [
|
242
|
+
{
|
243
|
+
"describe": "<p>import getorders from '@salesforce/apex/OrderController.getAvailab1eOrders';</p>",
|
244
|
+
"isRight": true
|
245
|
+
},
|
246
|
+
{
|
247
|
+
"describe": "<p>import { LightningElement, api } from 'lwc';</p>",
|
248
|
+
"isRight": false
|
249
|
+
},
|
250
|
+
{
|
251
|
+
"describe": "<p>import getOrders from '@salesforce/apex/c.OrderController .getAvailableOrders';</p>",
|
252
|
+
"isRight": false
|
253
|
+
},
|
254
|
+
{
|
255
|
+
"describe": "<p>import { LightningElement, wire ) from 'lwc';</p>",
|
256
|
+
"isRight": true
|
257
|
+
}
|
258
|
+
],
|
259
|
+
"hashCode": "2019145514",
|
260
|
+
"analysis": ""
|
261
|
+
},
|
262
|
+
{
|
263
|
+
"describe": "<p>Given the following containment hierarchy:</p><p><1-- myP acentComponent .html --></p><p><template></p><p><c-my-child-component></c-my-child-component></p><p></template></p><p>What is the correct way to communicate the new value of a property named "passthrough" to my-parent-component If the property is defined within my-child-component?</p><p><br/></p>",
|
264
|
+
"answerOptions": [
|
265
|
+
{
|
266
|
+
"describe": "<p>1et cEvent =new CustomEvent (Spassthrough);</p><p>this .dispatchEvent (cEvent);</p><p><br/></p>",
|
267
|
+
"isRight": false
|
268
|
+
},
|
269
|
+
{
|
270
|
+
"describe": "<p>let cEvent = new customEvent ('passthrough' , {detail: ' this.passthrough' });</p><p>this.dispatchEvent (cEvent) ;</p><p><br/></p>",
|
271
|
+
"isRight": false
|
272
|
+
},
|
273
|
+
{
|
274
|
+
"describe": "<p>let cEvent = new customEvent ('passthrough' , {detail: this.passthrough});</p><p>this.dispatchEvent (cEvent) ;</p><p><br/></p>",
|
275
|
+
"isRight": true
|
276
|
+
},
|
277
|
+
{
|
278
|
+
"describe": "<p>let cEvent = new customEvent (‘passthrough') ;</p><p>this.dispatchEvent (cEvent) ;</p><p><br/></p>",
|
279
|
+
"isRight": false
|
280
|
+
}
|
281
|
+
],
|
282
|
+
"hashCode": "2019145492",
|
283
|
+
"analysis": ""
|
284
|
+
},
|
285
|
+
{
|
286
|
+
"describe": "<p>Refer to the code snippet below:</p><p><br/></p><p>import fetchOpps from '@salesforce/apex/OpportunitySearch.fetchopporunities';</p><p>@wire(fetchOpps)</p><p>Opportunities;</p><p><br/></p><p>When a Lightning web component is rendered, a list of opportunities that match certain criteria should be retrieved from the database and displayed to the end-user.</p><p>Which three considerations must the developer implement to make the fetchOpportunities method available within the Lightning web component?</p><p>Choose 3 answers</p><p><br/></p>",
|
287
|
+
"answerOptions": [
|
288
|
+
{
|
289
|
+
"describe": "<p>The method must specify the(cacheable=true)attribute.</p>",
|
290
|
+
"isRight": true
|
291
|
+
},
|
292
|
+
{
|
293
|
+
"describe": "<p>The method must be annotated with the @AuraEnabled annotation.</p>",
|
294
|
+
"isRight": true
|
295
|
+
},
|
296
|
+
{
|
297
|
+
"describe": "<p>The method must specify the(continuation=true) attribute.</p>",
|
298
|
+
"isRight": false
|
299
|
+
},
|
300
|
+
{
|
301
|
+
"describe": "<p>The method must be annotated with the @InvocableMethod annotation.</p>",
|
302
|
+
"isRight": false
|
303
|
+
},
|
304
|
+
{
|
305
|
+
"describe": "<p>The method cannot mutate the result set retrieved from the database.</p>",
|
306
|
+
"isRight": true
|
307
|
+
}
|
308
|
+
],
|
309
|
+
"hashCode": "2019145491",
|
310
|
+
"analysis": ""
|
311
|
+
},
|
312
|
+
{
|
313
|
+
"describe": "<p>A developer is building a Lightning web component that displays quantity, unit price, and the total for an order line item. The total is calculated dynamically as the quantity multiplied by the unit price.</p><p><br/></p><p>JavaScript:</p><p>Import { LightningElement ,from 'lwc';</p><p>export default class OrderLineItem extends LightningElement {</p><p>@api quantity;</p><p>@api unitPrice;</p><p>}</p><p><br/></p><p>Template Markup:</p><p><template></p><p><div></p><p>Quantity: (quantity) <br /></p><p>Unit Price: {unitPrice} <br /></p><p></div></p><p><template></p><p><br/></p><p>What must be added to display the total?</p><p><br/></p>",
|
314
|
+
"answerOptions": [
|
315
|
+
{
|
316
|
+
"describe": "<p>Add calculateTota1() ( Return quantity * unitPrice;) to the JavaScript and Tota1;</p><p>{calculateTota1() } in the template.</p><p><br/></p>",
|
317
|
+
"isRight": false
|
318
|
+
},
|
319
|
+
{
|
320
|
+
"describe": "<p>Add Tota1: {multiply(quantity * unitPrice)} in the template.</p>",
|
321
|
+
"isRight": false
|
322
|
+
},
|
323
|
+
{
|
324
|
+
"describe": "<p>Add Tota1: (quantity * unitPrice) in the template.</p>",
|
325
|
+
"isRight": false
|
326
|
+
},
|
327
|
+
{
|
328
|
+
"describe": "<p>Add get total() ( Return quantity * unitPrice;) to the JavaScript and Tota1: (total) in the template.</p><p><br/></p>",
|
329
|
+
"isRight": true
|
330
|
+
}
|
331
|
+
],
|
332
|
+
"hashCode": "2019145489",
|
333
|
+
"analysis": ""
|
334
|
+
},
|
335
|
+
{
|
336
|
+
"describe": "<p>Which technique can run custom logic when a Lightning web component is loaded?</p>",
|
337
|
+
"answerOptions": [
|
338
|
+
{
|
339
|
+
"describe": "<p>Call enqueueAction and pass in the method to call.</p>",
|
340
|
+
"isRight": false
|
341
|
+
},
|
342
|
+
{
|
343
|
+
"describe": "<p>Use the connectedcallback() method.</p>",
|
344
|
+
"isRight": true
|
345
|
+
},
|
346
|
+
{
|
347
|
+
"describe": "<p>Use an <aura : handler> init event to call a function.</p>",
|
348
|
+
"isRight": false
|
349
|
+
},
|
350
|
+
{
|
351
|
+
"describe": "<p>Use the renderedcallback() method.</p>",
|
352
|
+
"isRight": false
|
353
|
+
}
|
354
|
+
],
|
355
|
+
"hashCode": "2019145487",
|
356
|
+
"analysis": ""
|
357
|
+
},
|
358
|
+
{
|
359
|
+
"describe": "<p>Consider the following code snippet:</p><p><br/></p><p><c-selected-order></p><p><template for:each ={ orders .data } for:item="order"></p><p><c-order orderId = (order.Id)></c-order></p><p></template></p><p><c-selected-order></p><p><br/></p><p>How should the <c-order> component communicate to the <c-selected-order></p><p>component that an order has been selected by the user?</p><p><br/></p>",
|
360
|
+
"answerOptions": [
|
361
|
+
{
|
362
|
+
"describe": "<p>Create and fire an application event.</p>",
|
363
|
+
"isRight": false
|
364
|
+
},
|
365
|
+
{
|
366
|
+
"describe": "<p>Create and fire a standard DOM event.</p>",
|
367
|
+
"isRight": false
|
368
|
+
},
|
369
|
+
{
|
370
|
+
"describe": "<p>Create and fire a component event.</p>",
|
371
|
+
"isRight": false
|
372
|
+
},
|
373
|
+
{
|
374
|
+
"describe": "<p>Create and dispatch a custom event.</p>",
|
375
|
+
"isRight": true
|
376
|
+
}
|
377
|
+
],
|
378
|
+
"hashCode": "2019145483",
|
379
|
+
"analysis": ""
|
380
|
+
},
|
381
|
+
{
|
382
|
+
"describe": "<p>Consider the following code snippet:</p><p><br/></p><p><apex:page docType="html-5.0" controller="FindOpportunities”></p><p><apex:form ></p><p><apex:pageBlock ></p><p><apex:pageBlockSection title="find opportunity"></p><p><apex:input label="opportunity name”/></p><p><apex:commandButton value="search" action={ !search}"/></p><p><apex:pageBlockSection></p><p><apex:pageBlockSection title="Opportunity List" id="OpportunityList"></p><p><!--DATA Table --></p><p><apex:pageBlockSection></p><p><apex:pageBlock ></p><p></apex:form></p><p></apex:page></p><p><br/></p><p>Users of this Visualforce page complain that the page does a full refresh every time the Search button is pressed.</p><p>What should the developer do to ensure that a partial refresh is made so that only the section identified with opportunityList is re-drawn on the screen?</p><p><br/></p>",
|
383
|
+
"answerOptions": [
|
384
|
+
{
|
385
|
+
"describe": "<p>Ensure the action method search returns null.</p>",
|
386
|
+
"isRight": false
|
387
|
+
},
|
388
|
+
{
|
389
|
+
"describe": "<p>Implement the reRender attribute on the <apex:commandButton> tag.</p>",
|
390
|
+
"isRight": true
|
391
|
+
},
|
392
|
+
{
|
393
|
+
"describe": "<p>Enclose the DATA table within the <apex:actionRegicn> tag.</p>",
|
394
|
+
"isRight": false
|
395
|
+
},
|
396
|
+
{
|
397
|
+
"describe": "<p>Implement the <apex:actionFunction> tag with immediate= true.</p>",
|
398
|
+
"isRight": false
|
399
|
+
}
|
400
|
+
],
|
401
|
+
"hashCode": "2019145458",
|
402
|
+
"analysis": ""
|
403
|
+
},
|
404
|
+
{
|
405
|
+
"describe": "<p>A developer created a Lightning web component that allows users to input a text value that is used to search for Accounts by calling an Apex method.The Apex method returns a list of Accountwrappers and is called imperatively from a Javascript event handler.</p><p><br/></p><p>public class AccountSearcher{</p><p>public static List<Accountwrapper> search (String term){</p><p>List<Accountwrapper> wrappers = getMatchingaccountWrappers(term);</p><p>return wrappers;</p><p> }</p><p><br/></p><p>public class Accountwrapper {</p><p>public account(get; set;)</p><p>public Decimal matchProbability(get;set;)</p><p>}</p><p>// ...other methods,including getMatchingAccountWrappers implementation...</p><p>} </p><p><br/></p><p>Which two changes should the developer make so the Apex method functions correctly?</p><p>Choose 2 answers</p><p><br/></p>",
|
406
|
+
"answerOptions": [
|
407
|
+
{
|
408
|
+
"describe": "<p>Add @AuraEnabled to line 09.</p>",
|
409
|
+
"isRight": false
|
410
|
+
},
|
411
|
+
{
|
412
|
+
"describe": "<p>Add @AuraEnabled to line 03.</p>",
|
413
|
+
"isRight": true
|
414
|
+
},
|
415
|
+
{
|
416
|
+
"describe": "<p>Add @AuraEnabled to lines 11 and l2.</p>",
|
417
|
+
"isRight": true
|
418
|
+
},
|
419
|
+
{
|
420
|
+
"describe": "<p>Add @AaraEnabled to line 01.</p>",
|
421
|
+
"isRight": false
|
422
|
+
}
|
423
|
+
],
|
424
|
+
"hashCode": "2019145457",
|
425
|
+
"analysis": ""
|
426
|
+
},
|
427
|
+
{
|
428
|
+
"describe": "<p>A developer creates a Lightning web component to allow a Contact to be quickly entered. However, error messages are not displayed.</p><p><template></p><p><lightning-record-edit-form</p><p>object-api-name="Contact"></p><p><lightning-Input-field field-name="FirstName"></lightning-input-field></p><p><lightning-input-field field-name="LastName"></lightning-input-field></p><p><lightning-input-field field-name="Email"></lightning-input-field></p><p><lightning-button type="submit"</p><p>name="submit"</p><p>label="Create Contact"></p><p></lightning-button></p><p></lightning-record-edit-form)</p><p></template></p><p><br/></p><p>Which component should the developer add to the form to display error messages?</p><p><br/></p>",
|
429
|
+
"answerOptions": [
|
430
|
+
{
|
431
|
+
"describe": "<p>apex:messages</p>",
|
432
|
+
"isRight": false
|
433
|
+
},
|
434
|
+
{
|
435
|
+
"describe": "aura:messages",
|
436
|
+
"isRight": false
|
437
|
+
},
|
438
|
+
{
|
439
|
+
"describe": "<p>Lightning-messages</p>",
|
440
|
+
"isRight": true
|
441
|
+
},
|
442
|
+
{
|
443
|
+
"describe": "<p>lightning-error</p>",
|
444
|
+
"isRight": false
|
445
|
+
}
|
446
|
+
],
|
447
|
+
"hashCode": "2019145456",
|
448
|
+
"analysis": ""
|
449
|
+
},
|
450
|
+
{
|
451
|
+
"describe": "<p>A developer is creating a Lightning web component that contains a child component. The property stage is being passed from the parent to the child. The public property is changing, but the getOppList function is not being invoked.</p><p><br/></p><p>@api stage;</p><p>opps: </p><p>connetedCallback() {</p><p>this.opps=this.getOppList (thig.stage);</p><p>}</p><p>}</p><p><br/></p><p>What should the developer change to allow this?</p><p><br/></p>",
|
452
|
+
"answerOptions": [
|
453
|
+
{
|
454
|
+
"describe": "<p>Move the logic from connectedcallback() to constructor().</p>",
|
455
|
+
"isRight": false
|
456
|
+
},
|
457
|
+
{
|
458
|
+
"describe": "<p>Create a custom event from the parent component to set the property,</p>",
|
459
|
+
"isRight": false
|
460
|
+
},
|
461
|
+
{
|
462
|
+
"describe": "<p>Move the logic from connectedCallback() to renderedcallback().</p>",
|
463
|
+
"isRight": false
|
464
|
+
},
|
465
|
+
{
|
466
|
+
"describe": "<p>Move the logic to a getter/setter pair.</p>",
|
467
|
+
"isRight": true
|
468
|
+
}
|
469
|
+
],
|
470
|
+
"hashCode": "2019145455",
|
471
|
+
"analysis": ""
|
472
|
+
},
|
473
|
+
{
|
474
|
+
"describe": "<p>Users report that a button on a custom Lightning web component is not working. However, there are no other details provided.\nWhat should the developer use to ensure error messages are properly displayed?</p>",
|
475
|
+
"answerOptions": [
|
476
|
+
{
|
477
|
+
"describe": "<p>Add a Try/Catch block surrounding the DML statement.</p>",
|
478
|
+
"isRight": false
|
479
|
+
},
|
480
|
+
{
|
481
|
+
"describe": "<p>Add JavaScript and HTML to display an error message.</p>",
|
482
|
+
"isRight": true
|
483
|
+
},
|
484
|
+
{
|
485
|
+
"describe": "<p>Use the Database method with allOrNone set to false.</p>",
|
486
|
+
"isRight": false
|
487
|
+
},
|
488
|
+
{
|
489
|
+
"describe": "<p>Add the <apex:messages/> tag to the component.</p>",
|
490
|
+
"isRight": false
|
491
|
+
}
|
492
|
+
],
|
493
|
+
"hashCode": "2019145454",
|
494
|
+
"analysis": ""
|
495
|
+
},
|
496
|
+
{
|
497
|
+
"describe": "<p>Refer to the following code snippet:</p><p>public class LeadController {</p><p> public static List<Lead> getFetchLeadList (String searchTerm, Decimal aRevenue) {</p><p> String safeTerm = '%'+searchTerm. escapeSingleQuote( )+'%'</p><p> return [</p><p> SELECT Name, Company, AnnualRevenue</p><p> FROM Lead</p><p> WHERE AnnualRevenue >= :aRevenue</p><p> AND Company LIKE : safeTerm;</p><p> LIMIT 20</p><p> ];</p><p> }</p><p>}</p><p>A developer created a JavaScript function as part of a Lightning web component (LWC) that surfaces information about Leads by imperatively calling getFetchLeadList when certain criteria are met.</p><p> What are three changes the developer implement in the Apex class ensure the LWC can display data efficiently while preserving security? Choose 3 answers</p><p><br/></p>",
|
498
|
+
"answerOptions": [
|
499
|
+
{
|
500
|
+
"describe": "<p>Annotate the Apex method with @AuraEnabled.</p>",
|
501
|
+
"isRight": false
|
502
|
+
},
|
503
|
+
{
|
504
|
+
"describe": "<p>Implement the with sharing keyword in the class declaration.</p>",
|
505
|
+
"isRight": true
|
506
|
+
},
|
507
|
+
{
|
508
|
+
"describe": "<p>Use the WITH SECURITY_ENFORCED clause within the SOQL query.</p>",
|
509
|
+
"isRight": true
|
510
|
+
},
|
511
|
+
{
|
512
|
+
"describe": "<p>Implement the without sharing keyword in the class declaration.</p>",
|
513
|
+
"isRight": false
|
514
|
+
},
|
515
|
+
{
|
516
|
+
"describe": "<p>Annotate the Apex method with @AuraEnabled (Cacheable=true).</p>",
|
517
|
+
"isRight": true
|
518
|
+
}
|
519
|
+
],
|
520
|
+
"hashCode": "2019145453",
|
521
|
+
"analysis": ""
|
522
|
+
},
|
523
|
+
{
|
524
|
+
"describe": "<p>A Visualforce page contains an industry select list and displays a table of Accounts that have a matching value in their Industry field.</p><p><br/></p><p><apex:selectList value=" {!selectedIndustry}"></p><p> <apex:selectOptions values="{!industries}"/></p><p></apex:selectList></p><p><br/></p><p>When a user changes the value in the industry select list, the table of Accounts should be automatically updated to show the Accounts associated with the selected industry.</p><p><br/></p><p>What is the optimal way to implement this?</p><p><br/></p>",
|
525
|
+
"answerOptions": [
|
526
|
+
{
|
527
|
+
"describe": "<p>Add an <apex:actionSupport> within the <apex:selectList>.</p>",
|
528
|
+
"isRight": false
|
529
|
+
},
|
530
|
+
{
|
531
|
+
"describe": "<p>Add an <apex:actionSupport> within the <apex:selectOptions>.</p>",
|
532
|
+
"isRight": false
|
533
|
+
},
|
534
|
+
{
|
535
|
+
"describe": "<p>Add an <apex:actionFunction> within the <apex:selectList>.</p>",
|
536
|
+
"isRight": true
|
537
|
+
},
|
538
|
+
{
|
539
|
+
"describe": "<p>Add an <apex:actionFunction> within the <apex:selectOptions>.</p>",
|
540
|
+
"isRight": false
|
541
|
+
}
|
542
|
+
],
|
543
|
+
"hashCode": "2019145426",
|
544
|
+
"analysis": ""
|
545
|
+
},
|
546
|
+
{
|
547
|
+
"describe": "<p>Which three actions must be completed in a Lightning web component for a JavaScript file in a static resource to be loaded? Choose 3 answers</p>",
|
548
|
+
"answerOptions": [
|
549
|
+
{
|
550
|
+
"describe": "<p>Import the static resource.</p>",
|
551
|
+
"isRight": true
|
552
|
+
},
|
553
|
+
{
|
554
|
+
"describe": "<p>Reference the Static resource in a <script> tag.</p>",
|
555
|
+
"isRight": false
|
556
|
+
},
|
557
|
+
{
|
558
|
+
"describe": "<p>Use the getSobjectType() method in an Apex class.</p>",
|
559
|
+
"isRight": false
|
560
|
+
},
|
561
|
+
{
|
562
|
+
"describe": "<p>Import a method from the platformResourceLoader.</p>",
|
563
|
+
"isRight": true
|
564
|
+
},
|
565
|
+
{
|
566
|
+
"describe": "<p>Call loadScript.</p>",
|
567
|
+
"isRight": true
|
568
|
+
}
|
569
|
+
],
|
570
|
+
"hashCode": "2019145422",
|
571
|
+
"analysis": "<p>https://developer.salesforce.com/docs/component-library/documentation/en/lwc/lwc.js_third_party_library</p>"
|
572
|
+
},
|
573
|
+
{
|
574
|
+
"describe": "<p>Lightning Aura Component</p><p><br/></p><p> <aura:component controller="SimpleServerSidecontroller"></p><p> <aura:attribute name="firstName" type="String" default="world"/></p><p> <lightning:button label="Call server" onclick="{!c.echo}"/></p><p> </aura:component></p><p><br/></p><p>Lightning Aura Controller</p><p><br/></p><p><br/></p><p>01 ({</p><p>02 "echo" : function(cmp) {</p><p>03 //create a one-time use instance of the serverEcho action</p><p>04 //in the server-side controller</p><p>05 var action = cmp.get("c.serverEcho");</p><p>06 action.setParams({ firstName : cmp.get("v.firstName") });</p><p>07</p><p>08 //Create a callback that is executed after</p><p>09 //the server-side action returns</p><p>10 action.setCallback(this, function(response) {</p><p>11 var state = response.getState();</p><p>12 if (state === "SUCCESS") {</p><p>13 //Alert the user with the value returned</p><p>14 // from the server</p><p>15 alert("From server: " +response.getReturnValue() ) ;</p><p>16</p><p>17 //You would typically fire an event here to trigger</p><p>18 // client-side notification that the server-side</p><p>19 // action is complete</p><p>20 }</p><p>21 else if(state === "INCOMPLETE"){</p><p>22 //do something</p><p>23 }</p><p>24 else if (state === "ERROR") {</p><p>25 var errors = response.getError();</p><p>26 if (errors) {</p><p>27 if (errors [0] && errors[0].message) {</p><p>28 console.log("Error message: " +</p><p>29 errors[0] .message );</p><p>30 }</p><p>31 } else {</p><p>32 console.log("Unknoown error");</p><p>33 }</p><p>34 }</p><p>35 });</p><p>36</p><p>37 //A client-side action could cause multiple events,</p><p>38 //which could trigger other events and</p><p>39 //other server-side action calls.</p><p>40 // $A.enqueueAction adds the server-side action to the queue.</p><p>41 $A.enqueueAction(action);</p><p>42 }</p><p>43})</p><p><br/></p><p>Apex Controller</p><p><br/></p><p>01 public with sharing class SimpleServerSideController {</p><p>02</p><p>03 //Use @AuaEnabled to enable client- and server-side access to the method</p><p>04 @AuraEnabled</p><p>05 public static String serverEcho(JSONObject firstName) {</p><p>06 String firstNameStr = (String)JSON.deserialize(firstName, String,class);</p><p>07 return ('Hello from the server. ' + firstNameStr);</p><p>08 }</p><p>09 }</p><p><br/></p><p>Given the code above, which two changes need to be made in the Apex Controller for the code to work?Choose 2 answers</p><p><br/></p>",
|
575
|
+
"answerOptions": [
|
576
|
+
{
|
577
|
+
"describe": "<p>Annotate the entire class as @AuraEnabled instead of just the simgle method.</p>",
|
578
|
+
"isRight": false
|
579
|
+
},
|
580
|
+
{
|
581
|
+
"describe": "<p>Remove line 06 form the Apex Controller and use firstName in the return.</p>",
|
582
|
+
"isRight": true
|
583
|
+
},
|
584
|
+
{
|
585
|
+
"describe": "<p>Change the method signature to be global static, not public static.</p>",
|
586
|
+
"isRight": false
|
587
|
+
},
|
588
|
+
{
|
589
|
+
"describe": "<p>Change the arguument from JSONObject to String.</p>",
|
590
|
+
"isRight": true
|
591
|
+
}
|
592
|
+
],
|
593
|
+
"hashCode": "2019145398",
|
594
|
+
"analysis": ""
|
595
|
+
},
|
596
|
+
{
|
597
|
+
"describe": "<p>A company wants to build a custom Lightning Component that will display a specified Account Field Set and that can only be added to the</p><p>Account record page.</p><p><br/></p><p>Which design resource configuration should be used?</p><p><br/></p>",
|
598
|
+
"answerOptions": [
|
599
|
+
{
|
600
|
+
"describe": "<p><design:component label="Account FS Component"></p><p> <aura:attribute name="fieldSetName" labels="Field Set Name" /></p><p> <sfdc:objects></p><p> <sfdc:object>Account</sfdc:object></p><p> </sfdc:objects></p><p></design:component></p>",
|
601
|
+
"isRight": false
|
602
|
+
},
|
603
|
+
{
|
604
|
+
"describe": "<p><design:component label="Account FS Component"></p><p> <aura:attribute name="fieldSetName" label= "Field Set Name" /></p><p> <sfdc:objects></p><p> <sfdc:object>FieldSet</sfdc:object></p><p> </sfdc:objects></p><p></design:component></p>",
|
605
|
+
"isRight": false
|
606
|
+
},
|
607
|
+
{
|
608
|
+
"describe": "<p><design:component label="Account FS Component"></p><p> <design:attribute name="fieldSetName" label="Field Set Name" /></p><p> <sfdc:objects></p><p> <sfdc:object>FieldSet</sfdc:object></p><p> </sfdc:objects></p><p></design:component></p>",
|
609
|
+
"isRight": false
|
610
|
+
},
|
611
|
+
{
|
612
|
+
"describe": "<p><design:component label="Account FS Component"></p><p> <design:attribute name="fieldSetName" label="Field Set Name" /></p><p> <sfdc:objects></p><p> <sfdc:object>Account</sfdc:object></p><p> </sfdc:objects></p><p></design:component></p>",
|
613
|
+
"isRight": true
|
614
|
+
}
|
615
|
+
],
|
616
|
+
"hashCode": "2019145397",
|
617
|
+
"analysis": ""
|
618
|
+
},
|
619
|
+
{
|
620
|
+
"describe": "<p>An Aura component has a section that displays some information about an Account and it works well on the desktop, but users have to scroll horizontally to see the description field output on their mobile devices and tablets.</p><p><br/></p><p><lightning: layout multipleRows="false"></p><p> <lightning: layoutItem size"6">{!v.rec.Name}</p><p> </lightning: layoutItem></p><p><br/></p><p> <lightning: layoutItem size"6">{!v.rec.Description__c}</p><p> </lightning: layoutItem></p><p></lightning: layout></p><p><br/></p><p>Which option has the changes to make the component responsive for mobile and tablet devices?</p><p><br/></p>",
|
621
|
+
"answerOptions": [
|
622
|
+
{
|
623
|
+
"describe": "<p><lightning: layout multipleRows="false"></p><p> <lightning: layoutItem smallDeviceSize ="12" largeDeviceSize="6">{!v.rec.Name}</p><p> </lightning: layoutItem></p><p><br/></p><p> <lightning: layoutItem smallDeviceSize ="12" largeDeviceSize="6">{!v.rec.Description__c}</p><p> </lightning: layoutItem></p><p></lig",
|
624
|
+
"isRight": false
|
625
|
+
},
|
626
|
+
{
|
627
|
+
"describe": "<p><lightning: layout multipleRows="false"></p><p> <lightning: layoutItem size="12" largeDeviceSize="6">{!v.rec.Name}</p><p> </lightning: layoutItem></p><p><br/></p><p> <lightning: layoutItem size ="12" largeDeviceSize="6">{!v.rec.Description__c}</p><p> </lightning: layoutItem></p><p></lightning: layout> ",
|
628
|
+
"isRight": false
|
629
|
+
},
|
630
|
+
{
|
631
|
+
"describe": "<p><lightning: layout multipleRows="true"></p><p> <lightning: layoutItem size="12" largeDeviceSize="6">{!v.rec.Name}</p><p> </lightning: layoutItem></p><p><br/></p><p> <lightning: layoutItem size ="12" largeDeviceSize="6">{!v.rec.Description__c}</p><p> </lightning: layoutItem></p><p></lightning: layout> ",
|
632
|
+
"isRight": true
|
633
|
+
},
|
634
|
+
{
|
635
|
+
"describe": "<p><lightning: layout multipleRows="true"></p><p> <lightning: layoutItem smallDeviceSize ="12" largeDeviceSize="6">{!v.rec.Name}</p><p> </lightning: layoutItem></p><p><br/></p><p> <lightning: layoutItem smallDeviceSize ="12" largeDeviceSize="6">{!v.rec.Description__c}</p><p> </lightning: layoutItem></p><p></ligh",
|
636
|
+
"isRight": false
|
637
|
+
}
|
638
|
+
],
|
639
|
+
"hashCode": "2019145395",
|
640
|
+
"analysis": ""
|
641
|
+
},
|
642
|
+
{
|
643
|
+
"describe": "<p>Which tag should a developer use to display different text while an <apex:commandButton> is executing versus not executing?</p>",
|
644
|
+
"answerOptions": [
|
645
|
+
{
|
646
|
+
"describe": "<p><apex:pageMessages></p>",
|
647
|
+
"isRight": false
|
648
|
+
},
|
649
|
+
{
|
650
|
+
"describe": "<p><apex:actionStatus></p>",
|
651
|
+
"isRight": true
|
652
|
+
},
|
653
|
+
{
|
654
|
+
"describe": "<p><apex:actionSupport></p>",
|
655
|
+
"isRight": false
|
656
|
+
},
|
657
|
+
{
|
658
|
+
"describe": "<p><apex:actionPoller></p>",
|
659
|
+
"isRight": false
|
660
|
+
}
|
661
|
+
],
|
662
|
+
"hashCode": "2019145393",
|
663
|
+
"analysis": ""
|
664
|
+
}
|
665
|
+
],
|
666
|
+
"hashCode": "-2080290879"
|
667
|
+
}
|