exam questions

Exam PL-200 All Questions

View all questions & answers for the PL-200 exam

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 (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
albaron00
Highly Voted 3 years, 10 months ago
Yes, no, no, because for update a global variable you use set instead of update
upvoted 144 times
Fyrus
2 years, 6 months ago
3th is no: "To update the running total whenever a user selects the Add button, set its OnSelect property to this formula: Set( RunningTotal, RunningTotal + TextInput1 )" https://docs.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-variables:
upvoted 3 times
...
jhonty101
3 years, 7 months ago
UpdateContext
upvoted 1 times
...
jhonty101
3 years, 7 months ago
UpdateContect
upvoted 1 times
...
Luthercrop
3 years, 10 months ago
Please explain how one is 'Yes'
upvoted 1 times
Pablissimo
3 years, 8 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
3 years, 3 months ago
You can create a collection by using '['. For Ex: [1,2,3] is a collection.
upvoted 1 times
WingsAreKing
2 years, 2 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
...
...
...
skh18
3 years, 10 months ago
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-set
upvoted 4 times
...
...
...
Simone95
Highly Voted 3 years, 10 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 74 times
mister_exam
3 years, 5 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 1 year, 1 month ago
Yes No No
upvoted 1 times
...
uberlord
1 year, 4 months 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
8 months, 2 weeks ago
I was thinking the same :(
upvoted 1 times
...
...
Ikhalil
1 year, 8 months ago
Yes NO NO
upvoted 1 times
...
Aibloy
1 year, 8 months 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, 11 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
2 years 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
2 years, 1 month 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
2 years, 2 months ago
Yes No No
upvoted 1 times
...
AdyK
2 years, 2 months ago
Took the exam in August 2022. This question was on it.
upvoted 2 times
...
Gerf974
2 years, 3 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
2 years, 3 months ago
In Exam 07/22/2022
upvoted 2 times
...
Vivek_murali
2 years, 4 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
2 years, 4 months ago
Set is used to set a global variable. So answer is Yes, No No
upvoted 2 times
...
Usmankhan1234
2 years, 5 months ago
Yes no no, Appeared in the exam on 28/04/2022.
upvoted 2 times
...
Ellena
2 years, 5 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 ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago