exam questions

Exam PL-400 All Questions

View all questions & answers for the PL-400 exam

Exam PL-400 topic 3 question 19 discussion

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

HOTSPOT -
You are developing a Power Platform solution. You plan to add three buttons to a form. The buttons have the following requirements:

You need to complete each button's action.
Which commands should you use? 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: Now() only.
The Now function returns the current date and time as a date/time value.
Box 2: Switch() or IF()
If and Switch functions in Power Apps determines whether any condition in a set is true (If) or the result of a formula matches any value in a set (Switch) and then returns a result or executes an action.
Box 3: isMatch( TextInput1.Text,"emergency",Contains & IgnoreCase )
Example: IsMatch( TextInput1.Text, "hello", Contains & IgnoreCase )
Tests whether the user's input contains the word "hello" (case insensitive).
Reference:
https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-if

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
No_Doubt
Highly Voted 1 year, 10 months ago
Ensure the the word Emergency is entered as "Emergency", which mean CASE SENSITIVE! So, for me, in the 3rd question, option 1 is the right option.
upvoted 15 times
marimar
8 months ago
In the 3rd question, the correct answer is the first one, however, it should have been put like this: IsMatch( TextInput1.Text, "Emergency",Contains) because the statement says that it was written as "Emergency" and not as "emergency".
upvoted 3 times
...
...
Juan0414
Most Recent 5 days, 20 hours ago
Now() only because Today() only includes current date not time. Switch() or IF() (nested ifs) Third one is tricky, because I gives you the idea of the field requires to be exactly equal to "Emergency", so I thought that some validation and conversion was needed, but looking at the options, none of them check that the the text is exactly "Emergency", so I just went with the option that ensures that if "Emergency" is inputted then the validation is true (Option 2, although in theory option 3 would work too, as it is the same condition in the second part of the or, but it does not have any sense to use a statement like that)
upvoted 1 times
Juan0414
5 days, 20 hours ago
Now that I'm thinking maybe the actual question in the Exam has "isMatch( TextInput1.Text, "Emergency", Contains)" as the first option, and that should be the answer. Because, it does not have any sense to have two possible correct answers
upvoted 1 times
...
...
At09
11 months, 1 week ago
3rd would be asked as inputing 'emergency' and in conditions check for 'Emergency' then Ignorecase would work. But as its the otherway rond would go with option 1, we can't Ignore case ;)
upvoted 3 times
SagaTeja
5 months, 3 weeks ago
To pass the exam, which one should select as you think? I am following your comments. LOL
upvoted 1 times
...
...
zewzew
12 months ago
For the 3rd question. It has to be case insensitive. If else, there is no correct answer.
upvoted 3 times
...
JerryAnt
1 year ago
These functions perform a case-sensitive match. Use MatchOptions.IgnoreCase to perform case-insensitive matches. So question 1 should be option 1.
upvoted 1 times
JerryAnt
1 year ago
sorry, question 3 should be option 1.
upvoted 2 times
NyarukouSAMA
11 months, 2 weeks ago
Agree about case-sensitive search, but unfortunately, no one variant provides us with "Emergency" with a capital E. In this case, the most fit variant will be option 3.
upvoted 1 times
...
...
...
f935db7
1 year ago
3rd question poorly worded, no option is right
upvoted 4 times
...
jkaur
1 year ago
Now() switch or if isMatch( TextInput1.Text, "emergency", Contains)
upvoted 3 times
...
ziggy1117
1 year, 1 month ago
3rd question should be Contains
upvoted 1 times
...
V05
1 year, 8 months ago
Given answer is correct. Ex: from Microsoft Doc: IsMatch( TextInput1.Text, "Hello world" ) Tests whether the user's input matches, exactly, the string "Hello world". true IsMatch( TextInput1.Text, "Good bye" ) Tests whether the user's input matches, exactly, the string "Good bye". false IsMatch( TextInput1.Text, "hello", Contains ) Tests whether the user's input contains the word "hello" (case sensitive). false IsMatch( TextInput1.Text, "hello", Contains & IgnoreCase ) Tests whether the user's input contains the word "hello" (case insensitive). true
upvoted 3 times
...
rober13
1 year, 8 months ago
For me is : Now() switch or if isMatch( TextInput1.Text, "emergency", Contains)
upvoted 4 times
...
hertino
2 years ago
Correct, but 3rd is weird. https://docs.microsoft.com/en-us/power-platform/power-fx/reference/function-now-today-istoday https://docs.microsoft.com/en-us/power-platform/power-fx/reference/function-ismatch
upvoted 2 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