Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.

Unlimited Access

Get Unlimited Contributor Access to the all ExamTopics Exams!
Take advantage of PDF Files for 1000+ Exams along with community discussions and pass IT Certification Exams Easily.

Exam PL-200 topic 2 question 16 discussion

Actual exam question from Microsoft's PL-200
Question #: 16
Topic #: 2
[All PL-200 Questions]

HOTSPOT -
A company has a canvas app that includes the following screens: Screen1 and Screen2.
The OnVisible property for Screen1 contains the following expression.
Set(AgeGroups, ["1-25", "26-54", "55+"])
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:

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
albaron00
Highly Voted 3 years, 3 months ago
Yes, no, no, because for update a global variable you use set instead of update
upvoted 138 times
AnNguyenV
3 years, 3 months ago
agree, it's a table and Update function cannot update a table
upvoted 1 times
skh18
3 years, 3 months ago
Update can modify tables -- in fact, it can only modify individual records (rows) on a table. See here: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-update-updateif
upvoted 1 times
...
...
Luthercrop
3 years, 3 months ago
Please explain how one is 'Yes'
upvoted 1 times
skh18
3 years, 3 months ago
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-set
upvoted 4 times
...
Pablissimo
3 years, 2 months ago
You create GLOBAL variables using Set function, you create CONTEXT variables using UpdateContext function or with Navigate, depending on the situation. The created structure is a Table, which you could also create using the Table function. In order to create a collection, you must call Collect or ClearCollect. I didn't believe this either, so I copied the provided code and used the variable in a DropDown on the screen 2. The editor properly recognizes the variable as a Table.
upvoted 10 times
BondBala3
2 years, 9 months ago
You can create a collection by using '['. For Ex: [1,2,3] is a collection.
upvoted 1 times
WingsAreKing
1 year, 8 months ago
@BondBala3 What you have defined here is not a collection, it's a Table. https://docs.microsoft.com/en-us/power-platform/power-fx/tables#table You can Collect a table into a Collection but that doesn't make [1,2,3] a collection.
upvoted 1 times
...
...
...
...
jhonty101
3 years, 1 month ago
UpdateContect
upvoted 1 times
...
jhonty101
3 years, 1 month ago
UpdateContext
upvoted 1 times
...
...
Simone95
Highly Voted 3 years, 3 months ago
Yes, No, No: 1) Set creates a global variable (so accesible everywhere in the App) 2) Set can't create a collection 3) Update works only with collection (so No due to point 2)
upvoted 71 times
mister_exam
2 years, 10 months ago
This is correct. Tested this myself. Update only works with a collection. A global variable can be accessed from multiple screens.
upvoted 6 times
...
...
anakinskwlkr
Most Recent 6 months, 4 weeks ago
Yes No No
upvoted 1 times
...
uberlord
9 months, 2 weeks ago
first one is yes ASSUMING the first screen you load in isn't screen2, as if it is the global variable won't have been set yet, so its 50/50 that the screens are laid out as we'd expect from the question, but there is a chance one could actually be no
upvoted 3 times
Aysan
1 month, 2 weeks ago
I was thinking the same :(
upvoted 1 times
...
...
Ikhalil
1 year, 1 month ago
Yes NO NO
upvoted 1 times
...
Aibloy
1 year, 1 month ago
Set creates a global variable not a collection. Global variables are accesible from everywhere. Update works with collections, not with variables
upvoted 1 times
...
arshad
1 year, 4 months ago
Yes - it's a global variable can be access from any screen in app, No - it's not a collection, since set is used only with global variable, No - No with global variable only Set function is used. Ref: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-variables
upvoted 1 times
...
llc
1 year, 5 months ago
Yes, No, No. Yes => Set defines global variables. No => It's a table not a collection No => I tried myself in PowerApps, Update does not work on tables, only in datasources or collections.
upvoted 1 times
...
AmineKolsi
1 year, 7 months ago
Yes: RunningTotal is a global variable No: RunningTotal is a table No: Update is appliable on DataSources not table. Set function should be used instead
upvoted 3 times
...
PL_600
1 year, 7 months ago
Yes No No
upvoted 1 times
...
AdyK
1 year, 8 months ago
Took the exam in August 2022. This question was on it.
upvoted 2 times
...
Gerf974
1 year, 9 months ago
Yes, no, no A Set can be defined in a screen 1, and updated via set() in screen 2. It is a not collection, that's why update can't work on global variables
upvoted 3 times
...
louieanderson
1 year, 9 months ago
In Exam 07/22/2022
upvoted 2 times
...
Vivek_murali
1 year, 9 months ago
Yes, No , No. Yes - Set is a global variable expression. AgeGroups is not a collection, it just maintains the value against the variable, collections should have reference data. Finally Update context updates the variable. there is no expression with only Update.
upvoted 1 times
...
Ginny511
1 year, 10 months ago
Set is used to set a global variable. So answer is Yes, No No
upvoted 2 times
...
Usmankhan1234
1 year, 10 months ago
Yes no no, Appeared in the exam on 28/04/2022.
upvoted 2 times
...
Ellena
1 year, 10 months ago
This was on exam June 2022
upvoted 1 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 ...