exam questions

Exam PL-900 All Questions

View all questions & answers for the PL-900 exam

Exam PL-900 topic 1 question 140 discussion

Actual exam question from Microsoft's PL-900
Question #: 140
Topic #: 1
[All PL-900 Questions]

You are creating a canvas app to enable users to order tickets. You create an input field for users to input the number of tickets to order.
Users must order a maximum of four tickets and a minimum of two tickets. If a user enters a number except 2, 3, or 4, the input field must display in red. If a user enters the numbers 2, 3, or 4, the input field must display in green.
You need to color the input field based on the user input.
What should you use?

  • A. formula
  • B. gallery
  • C. connector
  • D. calculated column
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️

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
EdrisKazemi
Highly Voted 1 year, 7 months ago
Selected Answer: A
A. formula You can use a formula to color the input field based on the user input. You can use the "If" function to check if the input value is equal to 2, 3, or 4 and change the color of the input field accordingly. For example: If(Value=2 || Value=3 || Value=4, Green, Red) This formula checks if the input value is equal to 2, 3, or 4, if true, it will change the color of the input field to green, if false, it will change the color of the input field to red. B, C and D are not related to the color of the input field and validation.
upvoted 9 times
...
rmeng
Most Recent 9 months ago
Selected Answer: A
Formula
upvoted 1 times
...
D_Tony_S
1 year, 8 months ago
In exam 2022/Nov/21
upvoted 4 times
...
crovax
1 year, 10 months ago
A. Formula is correct. If(IsNumeric(TextInput1.Text),GREEN,RED)
upvoted 2 times
Moiz1031
8 months, 3 weeks ago
this will only check if the input is numeric or not, but it will not check the allowed numbers which should only be 2,3,4
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 ...