Q1. 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?
A. hidden
B. blink
C. capitalize
D. line-through
Answer: C
Q2. You are developing an application that consumes a Windows Communication Foundation (WCF) service.
The application interacts with the service by using the following code. (Line numbers are included for reference only.)
You need to authenticate to the WCF service.
What should you do?
A. At line 11, add the following lines of code. ,username: yourusername ,password: yourpassword
B. At line 11, add the following line of code. ,credentials: prompt
C. At line 06, replace the code with the following line of code. url: "http://contoso.com/Service.svc/GetCountry? Username=username&password=psssword",
D. At line 11, add the following line of code. The username and password will be stored in an XML file. ,credentials: credentials.xml
Answer: A
Q3. You develop an HTML5 webpage that contains the following HTML markup:
Users must receive a message after they click the Submit button if the text entered into the
favoriteColor text box is fewer than 2 characters or greater than 10 characters.
You need to implement the testLength() function.
Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q4. You are modifying a blog site to improve search engine readability.
You need to group relevant page content together to maximize search engine readability.
Which tag should you use?
A. <nav>
B. <article>
C. <span>
D. <div>
Answer: B
Q5. You are developing application web form by using HTML5 and JavaScript. You need to prevent users from submitting form data more than once. Which code segment should you use?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: A
Q6. You are developing an HTML5 page.
You need to add author and copyright information.
Which tag should you use?
A. <aside>
B. <header>
C. <footer>
D. <section>
Answer: C
Q7. You implement an application by using HTML5 and JavaScript. You create a webpage that contains the following HTML:
The application must place a border on only the first UL element that is contained in the DIV element.
You need to update the webpage.
What should you do?
A. Option A
B. Option B
C. Option C
D. Option D
Answer: D
Q8. You are creating an HTML5 application that allows users to play video on a page by using the VIDEO element.
You need to enable the user to start, stop, and pause the video.
Which line of code should you add to the page?
A. <video id= "myVideo" height="320" width="400" src="myVideo.vtt" contextmenu="pauseplay"> </video>
B. <video id="myVideon heigh"="320" width="400" src="myVideo.vtt" controls> </video>
C. <video _d="myVideon height="320" width="400" src="myVideo.vtt" autoplay> </video>
D. <video id="myVideo" height="320" width="400" src="myVideo.vtt" contextinenu="Startstopn> </video>
Answer: B
Q9. You develop an HTML5 webpage. You have the following HTML markup:
You need to change the background color for all of the elements whose name attribute ends with the word name.
Which code segment should you add to the webpage?
A. $ ('input [name!="name"]’) .ess ({ 'background-color' : ' #E0ECF8'}) ;
B. ${'input [name~="name"] ') .ess ({ 'background-color' : ' #E0ECF8' }) ;
C. ${'input[name*="name"]').ess({'background=color': #E0ECF8'});
D. $( 'input [name$="name"] ') .ess ({ 'background-color' : '#E0ECF8'});
Answer: D
Q10. You develop an HTML5 webpage. You have the following HTML markup:
You need to add a background color to the first article in each section.
Which code segment should you add to the webpage?
A. $ ("section article:first-child").css("background-color", "#f2f2f2");
B. $ ("section:first-child").ess ( "background-color", "#f2f2f2");
C. $ ("article:first-of-type") .css("background-color", "#f2f2f2");
D. $ ("section:first-of-type").css("background-color", "#f2f2f2");
Answer: C