exam questions

Exam PL-100 All Questions

View all questions & answers for the PL-100 exam

Exam PL-100 topic 2 question 43 discussion

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

You are developing a canvas app to monitor time. The app includes a Text Input control named TIC1 and a Timer control named TIM1.

You need to set TIM1 to a default value.

What should you do?

  • A. Assign the Text property of TIC1 to the OnSelect property of a TIM1.
  • B. Assign the Text property of TIC1 to the Duration property of TIM1.
  • C. Assign the Text property of TIC1 to the OnTimerStart property of the TIM1.
  • D. Write code in the OnChange property of TIC1 that assigns the value of the Duration property of the Timer control to Text property of the TIC1, in the OnChange property of TIC1, assign the value to the Duration property for TIM1.
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

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
joenepoen
Highly Voted 2 years, 2 months ago
Am I the only one who finds the question (at least) buggy? You need to set TIM1 to a default value. There is no specification of which default TIM1 should be.
upvoted 12 times
...
SIH007
Most Recent 9 months, 3 weeks ago
No, you are absolutely right, I would expect the correct answer to be something like "Set the properties of TIM1to..."
upvoted 1 times
...
4e8b388
1 year, 1 month ago
Selected Answer: B
What a crappy question! If the question was "You need to set the TIM1's control duration time property to a default value, then the answer should be B.
upvoted 1 times
...
Edriska
1 year, 10 months ago
Selected Answer: B
the Duration property of the Timer control determines how long a timer runs in milliseconds. The default value is 60 seconds. To set the TIM1 to a default value, you need to assign the Text property of TIC1 to the Duration property of TIM1. This will allow you to change the duration of the timer by entering a value in the text input control. Therefore, the correct answer is B.
upvoted 2 times
...
dalones213
2 years, 1 month ago
Selected Answer: B
B. Assign the Text property of TIC1 to the Duration property of TIM1. To set the default value of the Timer control (TIM1) using the value entered in the Text Input control (TIC1), you should assign the Text property of TIC1 to the Duration property of TIM1. This will ensure that the timer's duration is set based on the user's input in the TIC1 control.
upvoted 1 times
...
dalones213
2 years, 2 months ago
Selected Answer: B
No, D is not correct. The OnChange property of a control specifies how the app responds when the user changes the value of a control12. It does not set a default value for the timer. If you use option D, you will have to write code that assigns the value of the Duration property of the Timer control to Text property of TIC1, and then assign that value back to the Duration property for TIM1. This is unnecessary and redundant. Option B is simpler and more efficient. You just need to assign the Text property of TIC1 to the Duration property of TIM1 once.
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