exam questions

Exam PL-100 All Questions

View all questions & answers for the PL-100 exam

Exam PL-100 topic 3 question 29 discussion

Actual exam question from Microsoft's PL-100
Question #: 29
Topic #: 3
[All PL-100 Questions]

HOTSPOT -
You need to store a list of products and their colors. You have a Power Apps app that includes the following elements:
✑ a text box for the product name
✑ a drop-down list for the product color
✑ a button to add a product to the list
✑ a status message that shows whether the addition of a product to the list was successful
The button uses the following formula:

For each of the following statements, select Yes if the statement is true. Otherwise, select No.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: No -
The Collect function adds records to a data source. If the data source doesn't already exist, a collection is created.

Box 2: Yes -

Box 3: No -
Use the Set function to set the value of a global variable, which temporarily holds a piece of information, such as the number of times the user has selected a button or the result of a data operation.
Reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-clear-collect-clearcollect https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-set

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
dfretyhg
Highly Voted 3 years, 4 months ago
These are the questions that trip me up. Half the info provided is completely unnecessary
upvoted 9 times
...
ding_dong
Highly Voted 4 years ago
Looks correct, but the third explanation is bad. You can use SET for any time of variable, however the request says "context" which points to a local not global.
upvoted 5 times
Im_Not_A_Robot
2 years, 9 months ago
Context = local
upvoted 2 times
...
AleValli
4 years ago
Provided answers should be correct. According to "Set", it's used to set global variables only. Context variables are set with the formula "UpdateContext"
upvoted 14 times
...
...
MuhammadSaadFahim
Most Recent 2 years, 4 months ago
NO YES NO
upvoted 2 times
...
wian_d
3 years ago
If the collection name doesn't exist you still provide a name that will be used to create said collection. Therefore answer in my opinion Yes, Yes, No
upvoted 3 times
LeDarius3762
2 years, 10 months ago
Yes, it's correct what you're saying, but with "must explicitly declare the collection" means that somewhere outside the Collect() function you should have declare the name of the collection, in which isn't necessary. That's why the first one is NO
upvoted 5 times
...
...
Emmy1
3 years, 3 months ago
Why is #1 no. Makes no sense to me. You absolutely need to declare the collection. How would you access it otherwise?
upvoted 1 times
Oussama_Osman
3 years, 1 month ago
if the collection name is non-existing, it will be created automatically.
upvoted 5 times
...
Im_Not_A_Robot
2 years, 9 months ago
The key word of the question is 'before': you can absolutely add an element to a collection while you create it at the same time. Both actions in one click.
upvoted 2 times
...
...
SashM
3 years, 5 months ago
correct 100%
upvoted 5 times
...
pavanmanideep
3 years, 8 months ago
Yes right
upvoted 3 times
...
bad_atitude
3 years, 10 months ago
no yes no
upvoted 2 times
...
Powerscraps
3 years, 10 months ago
Definitely correct - It does explicitly say 'vStatusMessage' is a context variable - It isn't, it's global and can be used outside of a single context, and so the 3rd answer is a no.
upvoted 2 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...