exam questions

Exam PL-100 All Questions

View all questions & answers for the PL-100 exam

Exam PL-100 topic 3 question 36 discussion

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

HOTSPOT -
A company is building a Power Apps app to track key project tasks.
Users assign tasks a risk status on a scale of 0 to 100 by using a slider input control named RiskStatus on the app. The highest risks use the risk status value of
100.
For each task, the user selects a button named RiskLevel to send the name of the task and RiskStatus number to key project stakeholders. The color of the button must change to the color listed in the following table based on the value of the RiskStatus control. The default color for the button is green.

You need to configure the solution to change the color of the RiskLevel button.
How should you configure the app? To answer, select the appropriate options in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer:
Box 1: On the RiskLevel button.
On the RiskLevel button fill property.
Box 2: Risklevel.Fill = RiskStatus.Value > 75 ? Red : Green;
Most every type of control in a Power App, has a Fill property, for the fill color.
Reference:
https://wonderlaura.com/2020/07/23/power-apps-gallery-conditional-formatting/

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
ppl666
Highly Voted 3 years, 9 months ago
1st - correct 2nd - If(RiskStatus.Value > 75, Red, Green)
upvoted 54 times
AliceVO
3 years, 4 months ago
Both 2nd and 4th answers seem to fit here. However, I would go for the 4th since it specifies it is for the fill property
upvoted 1 times
CrazyDeveloper
3 years, 4 months ago
you can't write ternary operation like that in a Fill property it will give syntax error. That must be a If condition so it is If(RiskStatus.Value > 75, Red, Green)
upvoted 5 times
...
...
D24G
3 years, 6 months ago
yep - 100%
upvoted 1 times
...
DarioReymago
2 years, 4 months ago
I'm agree, because 2nd is the only one correctly written
upvoted 1 times
...
hintya
3 years, 5 months ago
Firstly, if its above 51, it should be red and option says >75.None is correct. Secondly, by default button color is green then why can't we use first option? If (RiskStatus.value>75)(return Red)?
upvoted 6 times
xkqn2c
3 years, 4 months ago
Agreed. I don't see why we need to specify to return Green if that's the default.
upvoted 1 times
...
...
...
ThuyenDT
Highly Voted 3 years, 8 months ago
Sorry. 51-100 is "red". But answers are listed 75. So I think nothing is correct.
upvoted 14 times
...
RazielLycas
Most Recent 2 years, 7 months ago
I vote options 2 & 2.. obviously all wrong due the 75 but following the logic the right syntax seems that one with if(condition,true,false) and in agreement with where you can put the formula (the first question) is the only one that makes sense
upvoted 1 times
...
Im_Not_A_Robot
2 years, 9 months ago
This question is such a mess... How could it be a formula that doesn't even exist in PowerFX? Second answer is: "If(RiskStatus.Value > 75, Red, Green)"
upvoted 1 times
...
dfretyhg
3 years, 4 months ago
There seems to just be a typo in the options. If we change all the 75's to 51 then it would be the If(RiskStatus.Value > 75, Red, Green) option for number 2. First is correct
upvoted 1 times
...
lkoukakis
3 years, 8 months ago
In the first question, I believe that the correct answer is: "On the RiskStatus slider". When the slider changes, the risk level changes, and afterwards it will be decided the button color (if it will be green or red).
upvoted 4 times
alivehim
3 years, 7 months ago
agree.
upvoted 2 times
...
Vitesse
3 years, 6 months ago
However, if the color change is set on theSlider, none of the formulas below would make sense, so they clearly are expecting Button for the first answer.
upvoted 1 times
...
D24G
3 years, 6 months ago
to change the color of the button, it must be on the button.color property
upvoted 2 times
...
...
ThuyenDT
3 years, 8 months ago
51-100 is green. But answers are listed 75. So I think nothing is correct.
upvoted 3 times
...
krishna1234
3 years, 8 months ago
pp1666 is 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 ...