READ Free Dumps For Microsoft- 70-480
Question ID 14972 | You are developing a web application by using HTML5.
You have the following requirements.
✑ The color of a menu item must change when a user hovers over the item.
✑ The color of the menu item must change back to its original color after five
seconds.
You need to ensure that the animation is applied to all menu items.
Which CSS3 code should you use?
|
Option A | Option A
|
Option B | Option B
|
Option C | Option C
|
Option D | Option D
|
Correct Answer | C |
Explanation Explanation: transition-property The transition-property property specifies the name of the CSS property the transition effect is for (the transition effect will start when the specified CSS property changes). Tip: A transition effect could typically occur when a user hover over an element. Note: Always specify the transition-duration property, otherwise the duration is 0, and the transition will have no effect. CSS3 transition-property Property
Question ID 14973 | You are developing a JavaScript library.
You have the following requirements:
✑ Custom exceptions must include an error message and custom error number.
✑ These exceptions must be thrown when data validation errors occur.
✑ Developers must call the library to easily catch the exception and identify the
problem.
You develop the following code. (Line numbers are included for reference only.)
You need to complete the code to meet the requirements.
Which line of code should you insert at line 09?
|
Option A | throw new ValidationException.Exception (123, "Day of week must be les3 than 7");
|
Option B | return new ValidationException(123, "Day of week must be less than 7");
|
Option C | throw ValidationException(123, "Day of week must be less than 7");
|
Option D | catch ValidationException(123, "Day of week: must be less than 7");
|
Correct Answer | A |
Explanation Explanation: Example: if (value < -100 || value > 100) { throw new ValidationException(String.Format("Value is {0} than {1}.", (value > 100 ? "greater" : "less"), value)); }