@palerock/exam-qa 1.0.6-patch2 → 1.0.6-patch21

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.
Files changed (83) hide show
  1. package/dist/index.html +1 -1
  2. package/dist/static/css/app.4293d3540537974d843eca825dcda382.css +2 -0
  3. package/dist/static/css/app.4293d3540537974d843eca825dcda382.css.map +1 -0
  4. package/dist/static/js/app.e278f9557d317b4606b0.js +2 -0
  5. package/dist/static/js/app.e278f9557d317b4606b0.js.map +1 -0
  6. package/dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map +1 -1
  7. package/lib-json/Dev1/345/237/272/347/241/200/351/242/230.json +1407 -0
  8. package/lib-json/Dev1/346/250/241/346/213/237/345/215/267A.json +1538 -0
  9. package/lib-json/Dev1/346/250/241/346/213/237/345/215/267B.json +1534 -0
  10. 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
  11. 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
  12. 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
  13. package/lib-json/Dev1/347/224/250/346/210/267/347/225/214/351/235/242.json +1243 -0
  14. package/lib-json/[DEV2]Salesforce/345/237/272/347/241/200.json +375 -0
  15. package/lib-json/[DEV2]/346/200/247/350/203/275.json +728 -0
  16. package/lib-json/[DEV2]/346/250/241/346/213/237/345/215/267A.json +1403 -0
  17. package/lib-json/[DEV2]/346/250/241/346/213/237/345/215/267B.json +1387 -0
  18. package/lib-json/[DEV2]/346/265/213/350/257/225/344/270/216/351/203/250/347/275/262.json +828 -0
  19. package/lib-json/[DEV2]/347/224/250/346/210/267/347/225/214/351/235/2421.json +977 -0
  20. package/lib-json/[DEV2]/347/224/250/346/210/267/347/225/214/351/235/2422.json +667 -0
  21. 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
  22. 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
  23. 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
  24. package/lib-json/[JS]/347/254/254/344/270/203/347/253/240 /346/265/213/350/257/225.json" +356 -0
  25. 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
  26. 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
  27. 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
  28. 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
  29. 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
  30. package/lib-json/[/345/222/270/351/261/274]AppBuilder-1.json +977 -0
  31. package/lib-json/[/345/222/270/351/261/274]AppBuilder-2.json +941 -0
  32. package/lib-json/[/345/222/270/351/261/274]AppBuilder-3.json +973 -0
  33. package/lib-json/[/345/222/270/351/261/274]AppBuilder-4.json +981 -0
  34. package/lib-json/[/345/222/270/351/261/274]AppBuilder-5.json +771 -0
  35. package/lib-json/map.json +28 -43
  36. package/package.json +4 -2
  37. package/dist/static/css/app.d3e969a579969be885a3462a1e12e37f.css +0 -2
  38. package/dist/static/css/app.d3e969a579969be885a3462a1e12e37f.css.map +0 -1
  39. package/dist/static/js/app.53370ddfe5eba6a10565.js +0 -2
  40. package/dist/static/js/app.53370ddfe5eba6a10565.js.map +0 -1
  41. package/lib-json/Salesforce-Admin(302)-[Set-10].json +0 -321
  42. package/lib-json/Salesforce-Admin(302)-[Set-1].json +0 -301
  43. package/lib-json/Salesforce-Admin(302)-[Set-2].json +0 -325
  44. package/lib-json/Salesforce-Admin(302)-[Set-3].json +0 -305
  45. package/lib-json/Salesforce-Admin(302)-[Set-4].json +0 -325
  46. package/lib-json/Salesforce-Admin(302)-[Set-5].json +0 -329
  47. package/lib-json/Salesforce-Admin(302)-[Set-6].json +0 -322
  48. package/lib-json/Salesforce-Admin(302)-[Set-7].json +0 -321
  49. package/lib-json/Salesforce-Admin(302)-[Set-8].json +0 -321
  50. package/lib-json/Salesforce-Admin(302)-[Set-9].json +0 -325
  51. package/lib-json/Salesforce-Admin-201-[Set-10].json +0 -158
  52. package/lib-json/Salesforce-Admin-201-[Set-1].json +0 -604
  53. package/lib-json/Salesforce-Admin-201-[Set-2].json +0 -621
  54. package/lib-json/Salesforce-Admin-201-[Set-3].json +0 -650
  55. package/lib-json/Salesforce-Admin-201-[Set-4].json +0 -636
  56. package/lib-json/Salesforce-Admin-201-[Set-5].json +0 -640
  57. package/lib-json/Salesforce-Admin-201-[Set-6].json +0 -126
  58. package/lib-json/Salesforce-Admin-201-[Set-7].json +0 -126
  59. package/lib-json/Salesforce-Admin-201-[Set-8].json +0 -126
  60. package/lib-json/Salesforce-Admin-201-[Set-9].json +0 -126
  61. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-1].json +0 -321
  62. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-2].json +0 -325
  63. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-3].json +0 -321
  64. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-4].json +0 -337
  65. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-5].json +0 -329
  66. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-6].json +0 -325
  67. package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-7].json +0 -480
  68. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-1].json +0 -305
  69. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-2].json +0 -297
  70. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-3].json +0 -269
  71. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-4].json +0 -309
  72. package/lib-json/Salesforce-Sales-Cloud-Certification(81)-[Set-5].json +0 -515
  73. package/lib-json/app-builder-01.json +0 -1
  74. package/lib-json/app-builder-02.json +0 -1
  75. package/lib-json/app-builder-03.json +0 -1
  76. package/lib-json/app-builder-04.json +0 -1
  77. package/lib-json/app-builder-05.json +0 -1
  78. package/lib-json/app-builder-06.json +0 -1
  79. package/lib-json/app-builder-07.json +0 -1
  80. package/lib-json/app-builder-08.json +0 -1
  81. package/lib-json/app-builder-09.json +0 -1
  82. package/lib-json/app-builder-10.json +0 -1
  83. package/lib-json/app-builder-11.json +0 -311
@@ -0,0 +1,667 @@
1
+ {
2
+ "title": "[Dev2]用户界面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(&#39;$Resource.jsUtils&#39;);</p>",
10
+ "isRight": false
11
+ },
12
+ {
13
+ "describe": "<p>import jsUtilities from &#39;@salesforce/resourceUrl/jsUtils&#39;;</p>",
14
+ "isRight": true
15
+ },
16
+ {
17
+ "describe": "<p>import {jsUtilities} from &#39;@salesforce/resourceUrl/jsUtils&#39;;</p>",
18
+ "isRight": false
19
+ },
20
+ {
21
+ "describe": "<p>&lt;lightning-require scripts=&quot;{!$Resource.jsUtils}&quot;/&gt;</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>&lt;aura:component implements=&quot;force:hasRecordId, flexipage:availableForAllPageTypes&quot;&gt;</p><p>&lt;div&gt;Hello!&lt;/div&gt;</p><p>&lt;/aura:component&gt;</p><p>How can the component&#39;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>&lt;aura:component&gt;</p><p>&nbsp; &nbsp; &lt;aura:attribute name=&quot;contactInfo&quot; type=&quot;Object&quot;/&gt;</p><p>&nbsp; &nbsp; &lt;aura:attribute name=&quot;showContactInfo&quot; type=&quot;boolean&quot; default=&quot;true&quot;/&gt;</p><p>&nbsp; &nbsp; &lt;aura:handler name=&quot;init&quot; value=&quot;{!this}&quot; action=&quot;{!c.init}&quot;/&gt;</p><p><br/></p><p>&nbsp; &nbsp; &lt;!--- ...other code... ---&gt;</p><p>&nbsp; &nbsp; &lt;aura:if isTrue=&quot;{!v.showContactInfo}&quot;&gt;&nbsp;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;c:contactInfo value=&quot;{!v.contactInfo}&quot;/&gt;</p><p>&nbsp; &nbsp; &lt;/aura:if&gt;</p><p>&lt;/aura:component&gt;</p><p>Controller JS:</p><p>({</p><p>&nbsp; &nbsp; init: function(cmp, helper) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; //...other code...</p><p>&nbsp; &nbsp; &nbsp; &nbsp; var show = helper.getShowContactInfo();</p><p>&nbsp; &nbsp; &nbsp; &nbsp; cmp.set(&quot;v.showContactInfo&quot;, show);</p><p>&nbsp; &nbsp; },</p><p>&nbsp; &nbsp; //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 &quot;Map&quot;.</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 &quot;false&quot;.</p>",
64
+ "isRight": true
65
+ },
66
+ {
67
+ "describe": "<p>Move the contents of &lt;c:contactInfo&gt; 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>&nbsp; &nbsp; public String accountName {get; set;}</p><p>&nbsp; &nbsp; public static Account account {get; set;}</p><p>&nbsp; &nbsp; public MyRemoter() {}</p><p>&nbsp; &nbsp;&nbsp;</p><p>&nbsp; &nbsp; @RemoteAction</p><p>&nbsp; &nbsp; global static Account getAccount(String accountName) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; account = [SELECT Id, Name, NumberOfEmployees FROM Account WHERE Name = :accountName];</p><p>&nbsp; &nbsp; &nbsp; &nbsp; return account;</p><p>&nbsp; &nbsp; }</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(&#39;TestAccount&#39;);</p><p>System.assertEquals( &#39;TestAccount&#39;, a.Name);</p><p><br/></p>",
79
+ "isRight": true
80
+ },
81
+ {
82
+ "describe": "<p>Account A = controller.getAccount(&#39;TestAccount&#39;);</p><p>System.assertEquals(&#39;TestAccount&#39;, a.Name);</p><p><br/></p>",
83
+ "isRight": false
84
+ },
85
+ {
86
+ "describe": "<p>MyRemoter remote = new MyRemoter();</p><p>Account a = remote.getAccount(&#39;TestAccount&#39;);</p><p>System.assertEquals(&#39;TestAccount&#39;, a.Name);</p><p><br/></p>",
87
+ "isRight": false
88
+ },
89
+ {
90
+ "describe": "<p>MyRemoter remote = new MyRemoter(&#39;TestAccount&#39;);</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 &#39;lwc&#39;;</p><p>import getOpportunities from &#39;@salesforce/apex/OpportunityController.findMyOpportunities&#39;;</p><p><br/></p><p>export default class MyOpportunities extends LightningElement {</p><p>&nbsp; &nbsp; @api userId;</p><p>&nbsp; &nbsp; @wire(getOpportunities, {oppOwner: &#39;$userId&#39;})</p><p>&nbsp; &nbsp; opportunities;</p><p>}</p><p><br/></p><p>OpportunityController.cls</p><p>public with sharing class OpportunityController {</p><p>&nbsp; &nbsp; @AuraEnabled</p><p>&nbsp; &nbsp; public static List&lt;Opportunity&gt; findMyOpportunities(Id oppOwner) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; return [</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SELECT Id, Name, Amount</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM Opportunity</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WHERE OwnerId =: oppOwner</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; WITH SECURITY_ENFORCED</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; LIMIT 10</p><p>&nbsp; &nbsp; &nbsp; &nbsp; ];</p><p>&nbsp; &nbsp; }</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: &quot;Error retrieving data&quot;.</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>&lt;apex:form&gt;</p>",
125
+ "isRight": false
126
+ },
127
+ {
128
+ "describe": "<p>&lt;apex:commandButton&gt;</p>",
129
+ "isRight": true
130
+ },
131
+ {
132
+ "describe": "<p>&lt;apex:actionSupport&gt;</p>",
133
+ "isRight": true
134
+ },
135
+ {
136
+ "describe": "<p>&lt;apex:actionStatus&gt;</p>",
137
+ "isRight": false
138
+ },
139
+ {
140
+ "describe": "<p>&lt;apex:commandLink&gt;</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>&lt;lightning:layout multipleRows=&quot;true&quot;&gt;</p><p>&lt;lightning:layoutItem size=&quot;12&quot;&gt;(!v. account.name)&nbsp;</p><p>&lt;/lighting:layoutItem&gt;</p><p><br/></p><p>&lt;lightning:layoutItem size=&quot;12&quot;&gt; {!v.account .AccountNumber}</p><p>&lt;/lighting:layoutItem&gt;</p><p><br/></p><p>&lt;lightning:layoutItem size=&quot;12&quot;&gt; {!v.account .Industry}</p><p>&lt;/1ighting:layoutItem&gt;</p><p>&lt;/lightning:layout&gt;</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>&lt;lightning:layout multipleRows=&quot;true&quot;&gt;</p><p>&lt;lightning:layoutItem size=&quot;12&quot; largeDeviceSize=&quot;4&quot;&gt;{!v.account .Name}</p><p>&lt;/lighting:layoutItem&gt;</p><p><br/></p><p>&lt;1ightning:layoutItem size=&quot;12&quot; largeDeviceSize=&quot;4&quot;&gt;{!v.account .AccountNumber}</p><p>&lt;/lighting:layoutItem&gt;</p><p><br/></p><p>&lt;1ightning:IayoutItem size=&quot;12&quot; largeDeviceSize&quot;4&quot;&gt;{!v.account .Name}</p><p>&lt;/1ighting:layoutItem&",
152
+ "isRight": false
153
+ },
154
+ {
155
+ "describe": "<p>&lt;lightning:layout multipleRows=&quot;true&quot;&gt;</p><p>&lt;lightning:layoutItem size=&quot;12&quot; mediumDeviceSize largeDeviceSize=&quot;4&quot;&gt;{!v.account .Name}</p><p>&lt;/1ighting:layoutItem&gt;</p><p><br/></p><p>&lt;lightning:layoutItem size=&quot;12&quot; mediumDeviceSize&nbsp;</p><p>largeDeviceSize=&quot;4&quot;&gt;{!v.account .AccountNumber}</p><p>&lt;/1ighting:layoutItem&gt;</p><p><br/></p><p>&lt;lightning:layoutItem size=&quot;12&quot; mediumDeviceSize largeDeviceSize=&qu",
156
+ "isRight": false
157
+ },
158
+ {
159
+ "describe": "<p>&lt;lightning:layout multipleRows=&quot;true&quot;&gt;</p><p>&lt;lightning:layoutItem size=&quot;12&quot; mediumDeviceSize=&quot;6&quot;&gt;{!v.account .Name}</p><p>&lt;/1ighting:layoutItem&gt;</p><p><br/></p><p>&lt;lightning:layoutItem size=&quot;12&quot; mediumDeviceSize=&quot;6&quot;&gt;{!v.account .AccountNumber}</p><p>&lt;/1ighting:layoutItem&gt;</p><p><br/></p><p><br/></p><p>&lt;lightning:layoutItem size=&quot;12&quot; mediumDeviceSize=&quot;6&quot;&gt;{!v.account.Industry}</p><p>&lt;/1",
160
+ "isRight": false
161
+ },
162
+ {
163
+ "describe": "<p>&lt;lightning:layout multipleRows=&quot;true&quot;&gt;</p><p>&lt;lightning:layoutItem size=&quot;12&quot; mediumDeviceSize=&quot;4&quot;&gt;{!v.account .Name}</p><p>&lt;/1ighting:layoutItem&gt;</p><p><br/></p><p>&lt;lightning:layoutItem size=&quot;12&quot; mediumDeviceSize=&quot;4&quot;&gt;{!v.account .AccountNumber}</p><p>&lt;/1ighting:layoutItem&gt;</p><p><br/></p><p>&lt;lightning:layoutItem size=&quot;12&quot; mediumDeviceSize=&quot;4&quot;&gt;{!v.account.Industry}</p><p>&lt;/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&#39;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 (&quot;seacchcomplete&quot;);</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(&quot;e.c.searchComplete&quot;);</p><p>evt.set (&quot;v.results&quot; , results);&nbsp;</p><p>evt.fire();</p><p><br/></p>",
179
+ "isRight": false
180
+ },
181
+ {
182
+ "describe": "<p>var evt = A.get(&quot;e.c.searchComplete&quot;);</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 (&quot;seacchcomplete&quot;);</p><p>evt.set (&quot;v.results&quot; , results);&nbsp;</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 &lt;script&gt; &lt;/script&gt; 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 : &#39;recordId&#39; } )</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>&nbsp; &nbsp;}</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 &#39;lwc’;</p><p>import getorders from &#39;@apex/OrderController. getAvailableorders&#39;;</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;&nbsp; &nbsp;&nbsp;</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 &#39;@salesforce/apex/OrderController.getAvailab1eOrders&#39;;</p>",
244
+ "isRight": true
245
+ },
246
+ {
247
+ "describe": "<p>import { LightningElement, api } from &#39;lwc&#39;;</p>",
248
+ "isRight": false
249
+ },
250
+ {
251
+ "describe": "<p>import getOrders from &#39;@salesforce/apex/c.OrderController .getAvailableOrders&#39;;</p>",
252
+ "isRight": false
253
+ },
254
+ {
255
+ "describe": "<p>import { LightningElement, wire ) from &#39;lwc&#39;;</p>",
256
+ "isRight": true
257
+ }
258
+ ],
259
+ "hashCode": "2019145514",
260
+ "analysis": ""
261
+ },
262
+ {
263
+ "describe": "<p>Given the following containment hierarchy:</p><p>&lt;1-- myP acentComponent .html --&gt;</p><p>&lt;template&gt;</p><p>&lt;c-my-child-component&gt;&lt;/c-my-child-component&gt;</p><p>&lt;/template&gt;</p><p>What is the correct way to communicate the new value of a property named &quot;passthrough&quot; 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 (&#39;passthrough&#39; , {detail: &#39; this.passthrough&#39; });</p><p>this.dispatchEvent (cEvent) ;</p><p><br/></p>",
271
+ "isRight": false
272
+ },
273
+ {
274
+ "describe": "<p>let cEvent = new customEvent (&#39;passthrough&#39; , {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&#39;) ;</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 &#39;@salesforce/apex/OpportunitySearch.fetchopporunities&#39;;</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 &#39;lwc&#39;;</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>&lt;template&gt;</p><p>&lt;div&gt;</p><p>Quantity: (quantity) &lt;br /&gt;</p><p>Unit Price: {unitPrice} &lt;br /&gt;</p><p>&lt;/div&gt;</p><p>&lt;template&gt;</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()&nbsp; ( 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 &lt;aura : handler&gt; 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>&lt;c-selected-order&gt;</p><p>&lt;template for:each ={ orders .data } for:item=&quot;order&quot;&gt;</p><p>&lt;c-order orderId = (order.Id)&gt;&lt;/c-order&gt;</p><p>&lt;/template&gt;</p><p>&lt;c-selected-order&gt;</p><p><br/></p><p>How should the &lt;c-order&gt; component communicate to the &lt;c-selected-order&gt;</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>&lt;apex:page docType=&quot;html-5.0&quot; controller=&quot;FindOpportunities”&gt;</p><p>&lt;apex:form &gt;</p><p>&lt;apex:pageBlock &gt;</p><p>&lt;apex:pageBlockSection title=&quot;find opportunity&quot;&gt;</p><p>&lt;apex:input label=&quot;opportunity name”/&gt;</p><p>&lt;apex:commandButton value=&quot;search&quot; action={ !search}&quot;/&gt;</p><p>&lt;apex:pageBlockSection&gt;</p><p>&lt;apex:pageBlockSection title=&quot;Opportunity List&quot; id=&quot;OpportunityList&quot;&gt;</p><p>&lt;!--DATA Table --&gt;</p><p>&lt;apex:pageBlockSection&gt;</p><p>&lt;apex:pageBlock &gt;</p><p>&lt;/apex:form&gt;</p><p>&lt;/apex:page&gt;</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 &lt;apex:commandButton&gt; tag.</p>",
390
+ "isRight": true
391
+ },
392
+ {
393
+ "describe": "<p>Enclose the DATA table within the &lt;apex:actionRegicn&gt; tag.</p>",
394
+ "isRight": false
395
+ },
396
+ {
397
+ "describe": "<p>Implement the &lt;apex:actionFunction&gt; 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&nbsp; 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&lt;Accountwrapper&gt; search (String term){</p><p>List&lt;Accountwrapper&gt; wrappers = getMatchingaccountWrappers(term);</p><p>return wrappers;</p><p>&nbsp; &nbsp; }</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>}&nbsp;</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>&lt;template&gt;</p><p>&lt;lightning-record-edit-form</p><p>object-api-name=&quot;Contact&quot;&gt;</p><p>&lt;lightning-Input-field field-name=&quot;FirstName&quot;&gt;&lt;/lightning-input-field&gt;</p><p>&lt;lightning-input-field field-name=&quot;LastName&quot;&gt;&lt;/lightning-input-field&gt;</p><p>&lt;lightning-input-field field-name=&quot;Email&quot;&gt;&lt;/lightning-input-field&gt;</p><p>&lt;lightning-button type=&quot;submit&quot;</p><p>name=&quot;submit&quot;</p><p>label=&quot;Create Contact&quot;&gt;</p><p>&lt;/lightning-button&gt;</p><p>&lt;/lightning-record-edit-form)</p><p>&lt;/template&gt;</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:&nbsp;</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 &lt;apex:messages/&gt; 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>&nbsp; &nbsp; &nbsp; &nbsp;public static List&lt;Lead&gt; getFetchLeadList (String searchTerm, Decimal aRevenue) {</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; String safeTerm = &#39;%&#39;+searchTerm. escapeSingleQuote( )+&#39;%&#39;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; return [</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; SELECT Name, Company, AnnualRevenue</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; FROM Lead</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;WHERE AnnualRevenue &gt;= :aRevenue</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AND Company LIKE : safeTerm;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;LIMIT 20</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;];</p><p>&nbsp; &nbsp; &nbsp; &nbsp; }</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>&nbsp;What are three changes the developer implement in the Apex class ensure the LWC can display data efficiently while preserving security?&nbsp; 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>&lt;apex:selectList value=&quot; {!selectedIndustry}&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &lt;apex:selectOptions values=&quot;{!industries}&quot;/&gt;</p><p>&lt;/apex:selectList&gt;</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 &lt;apex:actionSupport&gt; within the &lt;apex:selectList&gt;.</p>",
528
+ "isRight": false
529
+ },
530
+ {
531
+ "describe": "<p>Add an &lt;apex:actionSupport&gt; within the &lt;apex:selectOptions&gt;.</p>",
532
+ "isRight": false
533
+ },
534
+ {
535
+ "describe": "<p>Add an &lt;apex:actionFunction&gt; within the &lt;apex:selectList&gt;.</p>",
536
+ "isRight": true
537
+ },
538
+ {
539
+ "describe": "<p>Add an &lt;apex:actionFunction&gt; within the &lt;apex:selectOptions&gt;.</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 &lt;script&gt; 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>&nbsp;&lt;aura:component controller=&quot;SimpleServerSidecontroller&quot;&gt;</p><p>&nbsp; &lt;aura:attribute name=&quot;firstName&quot; type=&quot;String&quot; default=&quot;world&quot;/&gt;</p><p>&nbsp; &lt;lightning:button label=&quot;Call server&quot; onclick=&quot;{!c.echo}&quot;/&gt;</p><p>&nbsp;&lt;/aura:component&gt;</p><p><br/></p><p>Lightning Aura Controller</p><p><br/></p><p><br/></p><p>01 ({</p><p>02 &quot;echo&quot; : 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(&quot;c.serverEcho&quot;);</p><p>06 action.setParams({ firstName : cmp.get(&quot;v.firstName&quot;) });</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&nbsp; var state = response.getState();</p><p>12&nbsp; if (state === &quot;SUCCESS&quot;) {</p><p>13&nbsp; &nbsp;//Alert the user with the value returned</p><p>14&nbsp; &nbsp;// from the server</p><p>15&nbsp; &nbsp;alert(&quot;From server: &quot; +response.getReturnValue() ) ;</p><p>16</p><p>17&nbsp; &nbsp;//You would typically fire an event here to trigger</p><p>18&nbsp; &nbsp;// client-side notification that the server-side</p><p>19&nbsp; &nbsp;// action is complete</p><p>20&nbsp; }</p><p>21&nbsp; else if(state === &quot;INCOMPLETE&quot;){</p><p>22&nbsp; &nbsp;//do something</p><p>23&nbsp; }</p><p>24&nbsp; else if (state === &quot;ERROR&quot;) {</p><p>25&nbsp; &nbsp;var errors = response.getError();</p><p>26&nbsp; &nbsp;if (errors) {</p><p>27&nbsp; &nbsp; if (errors [0] &amp;&amp; errors[0].message) {</p><p>28&nbsp; &nbsp; &nbsp;console.log(&quot;Error message: &quot; +</p><p>29&nbsp; &nbsp; &nbsp; errors[0] .message );</p><p>30&nbsp; &nbsp; }</p><p>31&nbsp; &nbsp;} else {</p><p>32&nbsp; &nbsp; console.log(&quot;Unknoown error&quot;);</p><p>33&nbsp; &nbsp;}</p><p>34&nbsp; }</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&nbsp; //Use @AuaEnabled to enable client- and server-side access to the method</p><p>04&nbsp; @AuraEnabled</p><p>05&nbsp; public static String serverEcho(JSONObject firstName) {</p><p>06&nbsp; &nbsp;String firstNameStr = (String)JSON.deserialize(firstName, String,class);</p><p>07&nbsp; &nbsp;return (&#39;Hello from the server. &#39; + firstNameStr);</p><p>08&nbsp; }</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 &nbsp;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>&lt;design:component label=&quot;Account FS Component&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;aura:attribute name=&quot;fieldSetName&quot; labels=&quot;Field Set Name&quot; /&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;sfdc:objects&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;sfdc:object&gt;Account&lt;/sfdc:object&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/sfdc:objects&gt;</p><p>&lt;/design:component&gt;</p>",
601
+ "isRight": false
602
+ },
603
+ {
604
+ "describe": "<p>&lt;design:component label=&quot;Account FS Component&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;aura:attribute name=&quot;fieldSetName&quot; label= &quot;Field Set Name&quot; /&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;sfdc:objects&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;sfdc:object&gt;FieldSet&lt;/sfdc:object&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/sfdc:objects&gt;</p><p>&lt;/design:component&gt;</p>",
605
+ "isRight": false
606
+ },
607
+ {
608
+ "describe": "<p>&lt;design:component label=&quot;Account FS Component&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;design:attribute name=&quot;fieldSetName&quot; label=&quot;Field Set Name&quot; /&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;sfdc:objects&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;sfdc:object&gt;FieldSet&lt;/sfdc:object&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;/sfdc:objects&gt;</p><p>&lt;/design:component&gt;</p>",
609
+ "isRight": false
610
+ },
611
+ {
612
+ "describe": "<p>&lt;design:component label=&quot;Account FS Component&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;design:attribute name=&quot;fieldSetName&quot; label=&quot;Field Set Name&quot; /&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;sfdc:objects&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;sfdc:object&gt;Account&lt;/sfdc:object&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&lt;/sfdc:objects&gt;</p><p>&lt;/design:component&gt;</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>&lt;lightning: layout multipleRows=&quot;false&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem size&quot;6&quot;&gt;{!v.rec.Name}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p><br/></p><p>&nbsp; &nbsp; &nbsp; &lt;lightning: layoutItem size&quot;6&quot;&gt;{!v.rec.Description__c}</p><p>&nbsp; &nbsp; &nbsp; &lt;/lightning: layoutItem&gt;</p><p>&lt;/lightning: layout&gt;</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>&lt;lightning: layout multipleRows=&quot;false&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem smallDeviceSize =&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Name}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p><br/></p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem smallDeviceSize =&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Description__c}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p>&lt;/lig",
624
+ "isRight": false
625
+ },
626
+ {
627
+ "describe": "<p>&lt;lightning: layout multipleRows=&quot;false&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem size=&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Name}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p><br/></p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem size =&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Description__c}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p>&lt;/lightning: layout&gt;&nbsp",
628
+ "isRight": false
629
+ },
630
+ {
631
+ "describe": "<p>&lt;lightning: layout multipleRows=&quot;true&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem size=&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Name}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p><br/></p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem size =&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Description__c}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p>&lt;/lightning: layout&gt;&nbsp;",
632
+ "isRight": true
633
+ },
634
+ {
635
+ "describe": "<p>&lt;lightning: layout multipleRows=&quot;true&quot;&gt;</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem smallDeviceSize =&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Name}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p><br/></p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;lightning: layoutItem smallDeviceSize =&quot;12&quot; largeDeviceSize=&quot;6&quot;&gt;{!v.rec.Description__c}</p><p>&nbsp; &nbsp; &nbsp; &nbsp;&lt;/lightning: layoutItem&gt;</p><p>&lt;/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 &lt;apex:commandButton&gt; is executing versus not executing?</p>",
644
+ "answerOptions": [
645
+ {
646
+ "describe": "<p>&lt;apex:pageMessages&gt;</p>",
647
+ "isRight": false
648
+ },
649
+ {
650
+ "describe": "<p>&lt;apex:actionStatus&gt;</p>",
651
+ "isRight": true
652
+ },
653
+ {
654
+ "describe": "<p>&lt;apex:actionSupport&gt;</p>",
655
+ "isRight": false
656
+ },
657
+ {
658
+ "describe": "<p>&lt;apex:actionPoller&gt;</p>",
659
+ "isRight": false
660
+ }
661
+ ],
662
+ "hashCode": "2019145393",
663
+ "analysis": ""
664
+ }
665
+ ],
666
+ "hashCode": "-2080290879"
667
+ }