Certification Exam Prep Questions For Programming in HTML5 with JavaScript and CSS3 (MS-20480)
QuickStart is now offering assessment questions for Programming in HTML5 with JavaScript and CSS3 (MS-20480). Whether you are deciding which exam to sign up for, or simply want to practice the materials necessary to complete certification for this course, we have provided a practice assessment to better aid in certification. 100% of the questions are real questions; from a recent version of the test you will take for Programming in HTML5 with JavaScript and CSS3 (MS-20480).
You are developing a customer web form that includes the following HTML input field.
< input id="txtValue"/>
If a customer enters a value in the input field, then it must be a numeric value. You need to add validation to the input field. Which HTML should you use?
- A. <input id="txtValue" type-"text" pattern="/#" />
-
Incorrect.
- B. <input id="txtValue" type="number" />
-
Correct!
- C. <input id="txtVa!ue" type="integer" />
-
Incorrect.
- D. <input id="txtValue" type="text" required="required"/>
-
Incorrect.
You are developing a customer web form that includes the following HTML.
< input id = "txtValue" />
A customer must enter a value in the text box prior to submitting the form. You need to add validation to the text box control. Which HTML should you use?
- C. <input id="txtValue" type="required" />
-
Incorrect.
You are developing an HTML5 web page. The appearance of the text box must change when a user moves the focus to another element on the page. You need to develop the page to respond to user action. Which line of code should you use?
- A. <input type="text" onblur="resetStyle(this);" />
-
Correct!
- B. <input type="text" onfocus="resetStyle(this);" />
-
Incorrect.
- C. <input type="text" onreset="resetStyle(this);" />
-
Incorrect.
- D. <input type="text" onselect="resetStyle(this);" />
-
Incorrect.
You are creating a class named Consultant that must inherit from the Employee class. The Consultant class must modify the inherited PayEmployee method. The Employee class is defined as follows.
function Employee() {}
Employee.prototype.PayEmployee = function ( ){
alert('Hi there!');
Future instances of Consultant must be created with the overridden method. You need to write the code to implement the Consultant class. Which code segments should you use? (Each correct answer presents part of the solution] (Choose two.)
You are developing an HTML5 page that includes several paragraph elements. You have the following requirements:
• Add a drop shadow that is one inch below the text in the paragraph
• Set the radius of the drop shadow to five pixels
You need to style the paragraphs to meet the requirements. Which CSS style should you use?
- A. text-shadow: 72pt 0pt 5pt
-
Incorrect.
- B. text-shadow: 5px 1in 0px;
-
Incorrect.
- C. text-shadow: 72pt 5em 0px
-
Incorrect.
- D. text-shadow: 72pt 0em 5px;
-
Correct!
You are testing the value of the following variable in JavaScript.
var height = "300";
A block of code must execute if the following conditions are true:
• The height variable is set to 300
• The height variable is of type string
You need to implement the code to run the test.
Which line of code should you use?
- A. if (height = = 300)
-
Incorrect.
- B. if (height = = "300")
-
Correct!
- C. if (height ! "300")
-
Incorrect.
- D. if (height ! = 300)
-
Incorrect.
You are developing a web page that consumes a Windows Communication Foundation (WCF) service.
The page includes the following code segment.
var xhr = new XMLHttpRequest();
The page uses the xhrHandler() method to listen for changes to the request status of the WCF service calls. It uses the xmlToJavaScript() method to convert the response from the WCF service to a JavaScript object. The xhrHandler() method must be called automatically each time the request status changes.
You need to add the event handler to the request object. Which line of code should you use?
- A. xhr.onCa|lback = xhrHandler;
-
Incorrect.
- B. xhr.onreadystatechange = xhrHandler;
-
Correct!
- C. xhr.readyState = xhrHandler;
-
Incorrect.
- D. xhr.status = xhrHandler;
-
Incorrect.
You are developing a customer web form that includes the following HTML.
< input id="txtValue"/>
You need to change the HTML markup so that customers can enter only a valid three-letter country code. Which HTML should you use?
- A. < input id="txtValue" type="code" />
-
Incorrect.
- C. < input id="txtValue" type="text" required="required"/>
-
Incorrect.
- D. < input id="txtValue" type="country" />
-
Incorrect.
You are developing a customerweb form that includes the following HTML input field.
< input id="txtValue"/>
If a customer enters a value in the input field, then it must be a numeric value. You need to add validation to the input field. Which HTML should you use?
- A. < input id="txtValue" type-"text" pattern="/#" />
-
Incorrect.
- B. < input id="txtValue" type="number" />
-
Correct!
- C. < input id="txtValue" type="integer" />
-
Incorrect.
- D. < input id="txtValue" type="text" required="required"/>
-
Incorrect.
You are developing a web page that will be divided into three vertical sections. The main content of the site will be placed in the center section. The two outer sections will contain advertisements.
You have the following requirements:
The main content section must be set to two times the width of the advertising sections. The layout must be specified by using the C883 flexible box model. You need to ensure that the Visual layout of the page meets the requirements. Which C883 property should you use?
- A. box-orient
-
Incorrect.
- B. box-flex-group
-
Incorrect.
- C. box-flex
-
Correct!
- D. box-direction
-
Incorrect.
You are developing an HTML5 web application and are styling text. You need to use the text-transform CSS property. Which values are valid for the text-transform property?
- Home
- Practice Exam - Programming in HTML5 with JavaScript and CSS3
Practice Exam - Programming in HTML5 with JavaScript and CSS3
More Information:
- Learning Style: On Demand
- Learning Style: Practice Exam
- Difficulty: Beginner
- Course Duration: 1 Hour
- Course Info: Download PDF
- Certificate: See Sample
Contact a Learning Consultant
Need Training for 5 or More People?
Customized to your team's need:
- Annual Subscriptions
- Private Training
- Flexible Pricing
- Enterprise LMS
- Dedicated Customer Success Manager
Course Information