PL-100 Exam QuestionsBrowse all questions from this exam

PL-100 Exam - Question 93


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?

Show Answer
Correct Answer: BD

To set the TIM1 to a default value for timing, you should assign the Text property of TIC1 to the Duration property of TIM1. The Duration property of the Timer control determines the length of time the timer runs, and using the value from TIC1 directly to set this ensures that the timer duration is controlled by the user's input.

Discussion

6 comments
Sign in to comment
joenepoen
Feb 23, 2023

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.

dalones213Option: B
Mar 4, 2023

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.

EdriskaOption: B
Jul 10, 2023

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.

dalones213Option: B
Mar 19, 2023

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.

4e8b388Option: B
Mar 18, 2024

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.

SIH007
Jul 18, 2024

No, you are absolutely right, I would expect the correct answer to be something like "Set the properties of TIM1to..."