@palerock/exam-qa 1.0.4 → 1.0.5
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.4729c5a84cfe088803ba8bf8f65b76d4.css → app.ca55413bb84f381cb1c76ff82cf63b2d.css} +2 -2
- package/dist/static/css/{app.4729c5a84cfe088803ba8bf8f65b76d4.css.map → app.ca55413bb84f381cb1c76ff82cf63b2d.css.map} +1 -1
- package/dist/static/js/app.bb356da473121a6a22a4.js +2 -0
- package/dist/static/js/app.bb356da473121a6a22a4.js.map +1 -0
- package/dist/static/js/manifest.3ad1d5771e9b13dbdad2.js.map +1 -1
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-1].json +318 -0
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-2].json +325 -0
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-3].json +321 -0
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-4].json +337 -0
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-5].json +329 -0
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-6].json +325 -0
- package/lib-json/Salesforce-Certified-Platform-Developer-1-[Set-7].json +480 -0
- package/lib-json/map.json +7 -0
- package/package.json +1 -1
- package/dist/static/js/app.4e58d03b72ab044886ef.js +0 -2
- package/dist/static/js/app.4e58d03b72ab044886ef.js.map +0 -1
@@ -0,0 +1,325 @@
|
|
1
|
+
{
|
2
|
+
"title": "Salesforce-Certified-Platform-Developer-1-[Set-6]",
|
3
|
+
"category": "Salesforce Dev 1",
|
4
|
+
"questions": [
|
5
|
+
{
|
6
|
+
"describe": "What is the result of the debug statements in testMethod3 when you create test data using testsetup in below code?\n@isTest\nprivate class CreateAndExecuteTest{\n@testSetup\nstatic void setup() {\n// Create 2 test accounts\nList<Account> testAccts = new List<Account>();\nfor(Integer i=0;i<2;i++) {\ntestAccts.add(new Account(Name = 'MyTestAccount'+i, Phone='333-878'+i));\n}\ninsert testAccts;\n}\n@isTest static void testMethod1() {\nAccount acc = [SELECT Id,Phone FROM Account WHERE Name='MyTestAccount0' LIMIT 1]; acc.Phone = '888-1515';\nupdate acc;\nAccount acc2 = [SELECT Id,Phone FROM Account WHERE Name='MyTestAccount1' LIMIT 1]; acc2.Phone = '999-1515';\nupdate acc2;\n}\n@isTest static void testMethod2() {\nAccount acc = [SELECT Id,Phone FROM Account WHERE Name='MyTestAccount1' LIMIT 1]; acc.Phone = '999-2525';\nupdate acc;\n}\n@isTest static void testMethod3() {\nAccount acc0 = [SELECT Id, Phone FROM Account WHERE Name='MyTestAccount0' LIMIT 1]; Account acc1 = [SELECT Id, Phone FROM Account WHERE Name='MyTestAccount1' LIMIT 1];\nSystem.debug('Account0.Phone='+ acc0.Phone +', Account1.Phone='+acc1.Phone);\n}\n}",
|
7
|
+
"answerOptions": [
|
8
|
+
{
|
9
|
+
"isRight": false,
|
10
|
+
"describe": "Account0.Phone=888-1515, Accountl.Phone=999-2525"
|
11
|
+
},
|
12
|
+
{
|
13
|
+
"isRight": false,
|
14
|
+
"describe": "Account0.Phone=333-8781, Accountl.Phone=333-8780"
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"isRight": true,
|
18
|
+
"describe": "Account0.Phone=333-8780, Accountl.Phone=333-8781"
|
19
|
+
},
|
20
|
+
{
|
21
|
+
"isRight": false,
|
22
|
+
"describe": "Account0.Phone=888-1515, Accountl.Phone=999-1515"
|
23
|
+
}
|
24
|
+
]
|
25
|
+
},
|
26
|
+
{
|
27
|
+
"describe": "While writing a test class that covers an OpportunityLineitem trigger, a Developer is unable to create a standard PriceBook since one already exists in the org.\nHow should the Developer overcome this problem?",
|
28
|
+
"answerOptions": [
|
29
|
+
{
|
30
|
+
"isRight": false,
|
31
|
+
"describe": "Use @isTest (SeeAllData=true) and delete the existing standard PriceBook."
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"isRight": true,
|
35
|
+
"describe": "Use Test. getStandardPricebookId() to get the standard PriceBook ID."
|
36
|
+
},
|
37
|
+
{
|
38
|
+
"isRight": false,
|
39
|
+
"describe": "Use Test.loadData () and a Static Resource to load a standard PriceBook."
|
40
|
+
},
|
41
|
+
{
|
42
|
+
"isRight": false,
|
43
|
+
"describe": "Use @Testvisible to allow the test method to see the standard PriceBook."
|
44
|
+
}
|
45
|
+
]
|
46
|
+
},
|
47
|
+
{
|
48
|
+
"describe": "Using the Schema Builder, a developer tries to change the API name of a field that is referenced in an Apex test class.\nWhat is the end result?",
|
49
|
+
"answerOptions": [
|
50
|
+
{
|
51
|
+
"isRight": false,
|
52
|
+
"describe": "The API name of the field is changed, and a warning is issued to update the class."
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"isRight": true,
|
56
|
+
"describe": "The API name is not changed and there are no other impacts."
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"isRight": false,
|
60
|
+
"describe": "The API name of the field and the reference in the test class is changed."
|
61
|
+
},
|
62
|
+
{
|
63
|
+
"isRight": false,
|
64
|
+
"describe": "The API name of the field and the reference in the test class is updated."
|
65
|
+
}
|
66
|
+
]
|
67
|
+
},
|
68
|
+
{
|
69
|
+
"describe": "Which approach should be used to provide test data for a test class?",
|
70
|
+
"answerOptions": [
|
71
|
+
{
|
72
|
+
"isRight": true,
|
73
|
+
"describe": "Use a test data factory class to create test data."
|
74
|
+
},
|
75
|
+
{
|
76
|
+
"isRight": false,
|
77
|
+
"describe": "Query for existing records in the database."
|
78
|
+
},
|
79
|
+
{
|
80
|
+
"isRight": false,
|
81
|
+
"describe": "Execute anonymous code blocks that create data."
|
82
|
+
},
|
83
|
+
{
|
84
|
+
"isRight": false,
|
85
|
+
"describe": "Access data in @Testvisibie class variables."
|
86
|
+
}
|
87
|
+
]
|
88
|
+
},
|
89
|
+
{
|
90
|
+
"describe": "A developer created a Visualforce page and a custom controller with methods to handle different buttons and events that can occur on the page.\nWhat should the developer do to deploy to production?",
|
91
|
+
"answerOptions": [
|
92
|
+
{
|
93
|
+
"isRight": false,
|
94
|
+
"describe": "Create a test page that provides coverage of the custom controller."
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"isRight": false,
|
98
|
+
"describe": "Create a test class that provides coverage of the Visualforce page."
|
99
|
+
},
|
100
|
+
{
|
101
|
+
"isRight": false,
|
102
|
+
"describe": "Create a test page that provides coverage of the Visualforce page."
|
103
|
+
},
|
104
|
+
{
|
105
|
+
"isRight": true,
|
106
|
+
"describe": "Create a test class that provides coverage of the custom controller."
|
107
|
+
}
|
108
|
+
]
|
109
|
+
},
|
110
|
+
{
|
111
|
+
"describe": "What is a requirement for a class to be used as a custom Visualforce controller?",
|
112
|
+
"answerOptions": [
|
113
|
+
{
|
114
|
+
"isRight": false,
|
115
|
+
"describe": "Any top-level Apex class that extends a PageReference"
|
116
|
+
},
|
117
|
+
{
|
118
|
+
"isRight": true,
|
119
|
+
"describe": "Any top-level Apex class that has a default, no-argument constructor"
|
120
|
+
},
|
121
|
+
{
|
122
|
+
"isRight": false,
|
123
|
+
"describe": "Any top-level Apex class that has a constructor that returns a PageReference"
|
124
|
+
},
|
125
|
+
{
|
126
|
+
"isRight": false,
|
127
|
+
"describe": "Any top-level Apex class that implements the controller interface"
|
128
|
+
}
|
129
|
+
]
|
130
|
+
},
|
131
|
+
{
|
132
|
+
"describe": "Which statement results in an Apex compiler error?",
|
133
|
+
"answerOptions": [
|
134
|
+
{
|
135
|
+
"isRight": false,
|
136
|
+
"describe": "Date d1= Date. Today(), d2 = Date . Valueof ( ' 2018-01-01' );"
|
137
|
+
},
|
138
|
+
{
|
139
|
+
"isRight": true,
|
140
|
+
"describe": "List<string> s = List<string> {' a ', 'b ', 'c'};"
|
141
|
+
},
|
142
|
+
{
|
143
|
+
"isRight": false,
|
144
|
+
"describe": "Integer a=5, b=6, c, d = 7;"
|
145
|
+
},
|
146
|
+
{
|
147
|
+
"isRight": false,
|
148
|
+
"describe": "Map<Id, Lead> lmap = new Map<id, Lead> ( [Select ID from Lead Limit 8]);"
|
149
|
+
}
|
150
|
+
]
|
151
|
+
},
|
152
|
+
{
|
153
|
+
"describe": "83. Which two platform features allow for the use of unsupported languages?\nChoose 2 answers",
|
154
|
+
"answerOptions": [
|
155
|
+
{
|
156
|
+
"isRight": false,
|
157
|
+
"describe": "app.json"
|
158
|
+
},
|
159
|
+
{
|
160
|
+
"isRight": false,
|
161
|
+
"describe": "Heroku ACM"
|
162
|
+
},
|
163
|
+
{
|
164
|
+
"isRight": true,
|
165
|
+
"describe": "Docker"
|
166
|
+
},
|
167
|
+
{
|
168
|
+
"isRight": true,
|
169
|
+
"describe": "Buildpacks"
|
170
|
+
}
|
171
|
+
]
|
172
|
+
},
|
173
|
+
{
|
174
|
+
"describe": "What are two benefits of the Lightning Component framework?\nChoose 2 answers",
|
175
|
+
"answerOptions": [
|
176
|
+
{
|
177
|
+
"isRight": true,
|
178
|
+
"describe": "It promotes faster development using out-of-the-box components that are suitable for desktop and mobile devices."
|
179
|
+
},
|
180
|
+
{
|
181
|
+
"isRight": false,
|
182
|
+
"describe": "It simplifies complexity when building pages, but not applications."
|
183
|
+
},
|
184
|
+
{
|
185
|
+
"isRight": true,
|
186
|
+
"describe": "It provides an event-driven architecture for better decoupling between components."
|
187
|
+
},
|
188
|
+
{
|
189
|
+
"isRight": false,
|
190
|
+
"describe": "It allows faster PDF generation with Lightning components."
|
191
|
+
}
|
192
|
+
]
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"describe": "What is a capability of the <ltng:require> tag that is used for loading external Javascript libraries in Lightning Components?\nChoose 3 answers",
|
196
|
+
"answerOptions": [
|
197
|
+
{
|
198
|
+
"isRight": true,
|
199
|
+
"describe": "Loading externally hosted scripts."
|
200
|
+
},
|
201
|
+
{
|
202
|
+
"isRight": true,
|
203
|
+
"describe": "One-time loading for duplicate scripts."
|
204
|
+
},
|
205
|
+
{
|
206
|
+
"isRight": true,
|
207
|
+
"describe": "Specifying loading order."
|
208
|
+
},
|
209
|
+
{
|
210
|
+
"isRight": false,
|
211
|
+
"describe": "Loading files from Documents."
|
212
|
+
},
|
213
|
+
{
|
214
|
+
"isRight": false,
|
215
|
+
"describe": "Loading scripts in parallel."
|
216
|
+
}
|
217
|
+
]
|
218
|
+
},
|
219
|
+
{
|
220
|
+
"describe": "When an Account's custom picklist field called Customer Sentiment is changed to a value of \"Confused,\" a new related Case should automatically be created.\nWhich two methods should a developer use to create this case? Choose 2 answers",
|
221
|
+
"answerOptions": [
|
222
|
+
{
|
223
|
+
"isRight": true,
|
224
|
+
"describe": "Apex Trigger"
|
225
|
+
},
|
226
|
+
{
|
227
|
+
"isRight": false,
|
228
|
+
"describe": "Workflow Rule"
|
229
|
+
},
|
230
|
+
{
|
231
|
+
"isRight": true,
|
232
|
+
"describe": "Process Builder"
|
233
|
+
},
|
234
|
+
{
|
235
|
+
"isRight": false,
|
236
|
+
"describe": "Custom Button"
|
237
|
+
}
|
238
|
+
]
|
239
|
+
},
|
240
|
+
{
|
241
|
+
"describe": "Which approach should a developer use to add pagination to a Visualforce page?",
|
242
|
+
"answerOptions": [
|
243
|
+
{
|
244
|
+
"isRight": false,
|
245
|
+
"describe": "the extensions attribute for a page"
|
246
|
+
},
|
247
|
+
{
|
248
|
+
"isRight": false,
|
249
|
+
"describe": "a StandardController"
|
250
|
+
},
|
251
|
+
{
|
252
|
+
"isRight": false,
|
253
|
+
"describe": "the action attribute for a page"
|
254
|
+
},
|
255
|
+
{
|
256
|
+
"isRight": true,
|
257
|
+
"describe": "a StandardSetController"
|
258
|
+
}
|
259
|
+
]
|
260
|
+
},
|
261
|
+
{
|
262
|
+
"describe": "Which set of roll-up types are available when creating a roll-up summary field?",
|
263
|
+
"answerOptions": [
|
264
|
+
{
|
265
|
+
"isRight": false,
|
266
|
+
"describe": "AVERAGE, COUNT, SUM, MIN, MAX"
|
267
|
+
},
|
268
|
+
{
|
269
|
+
"isRight": true,
|
270
|
+
"describe": "COUNT, SUM, MIN, MAX"
|
271
|
+
},
|
272
|
+
{
|
273
|
+
"isRight": false,
|
274
|
+
"describe": "SUM, MIN, MAX"
|
275
|
+
},
|
276
|
+
{
|
277
|
+
"isRight": false,
|
278
|
+
"describe": "AVERAGE, SUM, MIN, MAX"
|
279
|
+
}
|
280
|
+
]
|
281
|
+
},
|
282
|
+
{
|
283
|
+
"describe": "Which tool allows a developer to send requests to the Salesforce REST APIs and view the responses?",
|
284
|
+
"answerOptions": [
|
285
|
+
{
|
286
|
+
"isRight": true,
|
287
|
+
"describe": "Workbench REST Explorer"
|
288
|
+
},
|
289
|
+
{
|
290
|
+
"isRight": false,
|
291
|
+
"describe": "Force.com IDE REST Explorer tab"
|
292
|
+
},
|
293
|
+
{
|
294
|
+
"isRight": false,
|
295
|
+
"describe": "Developer Console REST tab"
|
296
|
+
},
|
297
|
+
{
|
298
|
+
"isRight": false,
|
299
|
+
"describe": "REST resource path URL"
|
300
|
+
}
|
301
|
+
]
|
302
|
+
},
|
303
|
+
{
|
304
|
+
"describe": "In a single record, a user selects multiple values from a multi-select picklist.\nHow are the selected values represented in Apex?",
|
305
|
+
"answerOptions": [
|
306
|
+
{
|
307
|
+
"isRight": false,
|
308
|
+
"describe": "As a string with each value separated by a comma"
|
309
|
+
},
|
310
|
+
{
|
311
|
+
"isRight": false,
|
312
|
+
"describe": "As a set<string> with each value as an element in the set"
|
313
|
+
},
|
314
|
+
{
|
315
|
+
"isRight": false,
|
316
|
+
"describe": "As a List<String> with each value as an element in the list"
|
317
|
+
},
|
318
|
+
{
|
319
|
+
"isRight": true,
|
320
|
+
"describe": "As a string with each value separated by a semicolon"
|
321
|
+
}
|
322
|
+
]
|
323
|
+
}
|
324
|
+
]
|
325
|
+
}
|