exam questions

Exam PL-200 All Questions

View all questions & answers for the PL-200 exam

Exam PL-200 topic 2 question 39 discussion

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

You have a canvas app.

The canvas app must store data in a variable that is available only to the current screen.

You need to create the variable.

Which two functions should you use? Each correct answer presents a complete solution.

NOTE: Each correct selection is worth one point.

  • A. UpdateContext
  • B. Navigate
  • C. SaveData
  • D. Set
  • E. Collect
Show Suggested Answer Hide Answer
Suggested Answer: AB 🗳️

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
anakinskwlkr
Highly Voted 1 year, 8 months ago
WHY NAVIGATE for God's sakes??? nonsense
upvoted 8 times
33a7f9e
8 months ago
To create a variable in a canvas app that is available only to the current screen, you should use the following functions: A. UpdateContext: This function creates or updates context variables, which are scoped to the current screen. B. Navigate: While this function is primarily used to navigate between screens, it can also be used to pass context variables to the target screen. So, the correct answers are A. UpdateContext and B. Navigate.
upvoted 2 times
...
MrEz
1 year, 3 months ago
I agree. Navigate to where. There is only 1 screen. it does not say there is any other screen there. it says current screen. but does this mean, that there are (implicitly) other screens there to navigate to? One screen is current screen.
upvoted 2 times
...
...
gina_the_boss
Most Recent 5 months ago
Selected Answer: AB
If variable type is Context then Scope = Screen - "Great for passing values to a screen, much like parameters to a procedure in other languages. Can be referenced from only one screen" and Functions that establish = UpdateContext & Navigate Ref: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-variables
upvoted 2 times
...
BikramjitSingh
11 months, 2 weeks ago
Selected Answer: AB
26th june exam
upvoted 1 times
...
b304b2c
1 year ago
A and E.
upvoted 2 times
b304b2c
1 year ago
In a canvas app, if you need to store data in a variable that is available only to the current screen, you should use the following two functions: A. UpdateContext - This function creates or updates a context variable within the current screen only. It does not affect other screens or the global context. E. Collect - While Collect can be used to create collections that are accessible across the entire app, it can also be used in conjunction with UpdateContext to manage data specific to a screen if handled correctly.
upvoted 4 times
b304b2c
1 year ago
The Set function would not be suitable for this scenario because it creates a global variable that is available throughout the entire app, not just the current screen. The SaveData function is used for saving collections to local storage and is not related to screen-specific variables. The Navigate function is used to change screens, not to create variables. Therefore, the correct answers are A (UpdateContext) and E (Collect), used with the right context.
upvoted 3 times
...
...
...
JAY88
1 year, 6 months ago
- UpdateContext - Navigate https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-variables#types-of-variables You implicitly establish and set context variables by using the UpdateContext or Navigate function. When the app starts, the initial value of all context variables is blank.
upvoted 4 times
...
Brooklyn_
1 year, 7 months ago
"Set" can be used to create both local and global variables in Power Apps, depending on how you use it. If you use Set within a specific screen, it creates a local variable that is only accessible within that screen. In this case, it meets the requirement of storing data in a variable that is available only to the current screen. If you use Set at the app level, it creates a global variable that is accessible throughout the entire app. So, it can be used to create both local and global variables based on where you place it. If you want to create a variable that is only available to the current screen, you should use Set within that screen's context.
upvoted 1 times
Brooklyn_
1 year, 7 months ago
Nevermind, I'm stupid, A and B are the right answers. here's the documentation to prouve it https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-variables
upvoted 3 times
Brooklyn_
1 year, 7 months ago
I got fooled by ChatGPT 😒
upvoted 1 times
...
...
...
365Ginger
1 year, 8 months ago
Selected Answer: AB
Answer is UpdateContext and Navigate. Source: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/working-with-variables#types-of-variables
upvoted 1 times
...
ttien
1 year, 8 months ago
on exam 20/9/2023
upvoted 1 times
...
Sweden2022
1 year, 8 months ago
To create a variable that is available only to the current screen in a canvas app, you should use the following functions: A. UpdateContext: This function allows you to create and update context variables within the current screen. Context variables are only accessible within the screen where they are defined. D. Set: The Set function is used to create and set local variables within a screen. Local variables are available only within the screen where they are defined. So, the correct options are A (UpdateContext) and D (Set). These functions will enable you to create a variable that is scoped to the current screen in your canvas app.
upvoted 1 times
drjphat
1 year, 8 months ago
Set sets global variables. D is not correct.
upvoted 1 times
...
...
Kindum
1 year, 9 months ago
The Answer is A
upvoted 1 times
...
Mayah974
1 year, 11 months ago
Selected Answer: AB
Updatecontext Navigate
upvoted 4 times
...
Jacky678
1 year, 11 months ago
The answer is correct. Context variables are implicitly created by using the UpdateContext or Navigate function. https://learn.microsoft.com/en-us/power-platform/power-fx/reference/function-updatecontext
upvoted 2 times
...
w0mz
1 year, 11 months ago
A - UpdateContext D - Set
upvoted 2 times
ck1985
1 year, 11 months ago
D is incorrect, Set is used for Global variables.
upvoted 3 times
...
...
CP14
1 year, 11 months ago
Correct
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 ...