exam questions

Exam PL-100 All Questions

View all questions & answers for the PL-100 exam

Exam PL-100 topic 2 question 48 discussion

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

HOTSPOT
-

A company is creating an app to manage project status reports.

Users will update a series of controls and click a submit button. The submit button will calculate a risk score for the project and return to the previous screen with that risk score. The risk score will be used in two different forms.

You need to create the formula on the button click. To answer, select the appropriate options in the answer area.

NOTE: Each correct selection is worth one point.

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
Better_ask_a_Dev
1 year, 5 months ago
Global variables can be referenced from anywhere within the app. This being said, the global variable will work to return the score to the previous page. The provided answer is correct.
upvoted 1 times
...
Edriska
1 year, 11 months ago
The best choice for this requirement seems to be a "Context variable". Context variables are used to store and share data within a specific screen or page. Since you're calculating the risk score and using it in the same screen, a context variable would be suitable for your needs. Global variables, on the other hand, are typically used when you need to share data across multiple screens, which doesn't appear to be the case here. Collection variables are usually used when dealing with sets of data, like lists or tables. They might be overkill for your needs if you're only storing a single risk score. Lookups are typically used to retrieve data from another data source, not to store it temporarily like you're doing with your risk score. So in this case, your formula on the button click would set a context variable to the calculated risk score, which could then be referenced elsewhere on the screen. Remember that the exact implementation of this might depend on the specific programming language or framework you're using to build your app.
upvoted 1 times
laysmuncher
1 year, 8 months ago
bro you are everywhere
upvoted 6 times
MeHungarian
1 year, 7 months ago
I think its a chatgpt thing he is using
upvoted 3 times
...
...
devoprevo
1 year, 10 months ago
"The submit button will calculate a risk score for the project and return to the previous screen" you need a global variable.
upvoted 7 times
...
...
Senthamil
2 years, 2 months ago
Navigate cannot be used with Global variables. Also, The question doesn't say anything about maintaining the variable in different screens. It just says previous screen. Along with Navigate and context variable, we have to use Back() to go the previous screen.
upvoted 3 times
Fergzoid
2 years, 1 month ago
I disagree that it doesn't discuss the variable on different screens. It says: "The submit button will calculate a risk score for the project and return to the previous screen with that risk score" While back() is ideal, navigate() is the next best option that works just fine. The answer provided is correct
upvoted 5 times
...
...
Savage76
2 years, 3 months ago
Correct
upvoted 2 times
...
ryan_hoang4949
2 years, 3 months ago
Correct! Risk score is a global variable that can be used in different screens within the app.
upvoted 3 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 ...