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.
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.
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.
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.
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.
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
...
This section is not available anymore. Please use the main Exam Page.PL-100 Exam Questions
Log in to ExamTopics
Sign in:
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.
joenepoen
Highly Voted 2 years, 2 months agoSIH007
Most Recent 9 months, 3 weeks ago4e8b388
1 year, 1 month agoEdriska
1 year, 10 months agodalones213
2 years, 1 month agodalones213
2 years, 2 months ago