Practice test D
Consider the following code for a text box in a Web form: <input type="text" name="UserName"/> Which modified tag should you use if you want the text box to appear with default text that reads "Enter Name Here"?
<input type="text" name="UserName" value="Enter Name Here"/>
Which code example demonstrates a valid container or non-empty tag in HTML?
<p></p>
Which of the following is the correct way to define the table border in HTML5?
<table style="border: 1px solid black;">
End users have complained that when they click a link on your company's Website, the wrong client loads. You review the page with the suspect link and find the following HTML code: <p>To begin an FTP session, click the following link:</p><a href="http://ftp.ucorp.biz"> FTP Session </a> What is the problem?
A Web server has been specified.
You need to pay an Internet Service Provider (ISP) for services rendered. Which payment technology would you use?
Electronic Funds Transfer (EFT)
Which of the following is a benefit of using a GUI HTML editor?
It allows you to easily create HTML pages without having to know the languages.
Which of the following describes a Server-Side Include (SSI) on a Webpage?
It is an SGML statement processed by the server.
In the HTML5 standard, what is the recommended way to center a paragraph of text?
Use an inline CSS style attribute in the paragraph tag.
Which approach is ideal for ensuring that a Webpage is maintained and does not appear neglected to users?
Using automated link-checking software
You want to specify horizontal alignment for the content in a table row using a CSS property. Specifically, you want to move content over to the right. Which property and value pair would you use?
text-align: right;
When scanning images from a print source or importing pictures from a digital camera for use on the Web, to what should you set the resolution in order to display the image on screen at approximately the same size as the original image?
72 dots per inch (dpi)
Which line of HTML creates a valid hyperlink to the target named "targetArea2"?
<a href="#targetArea2"> Top of the FAQ </a>
As you develop Web documents, which of the following should you always keep in mind to ensure your pages will render properly in user agents?
Adopt a single W3C standard and apply it consistently throughout your document.
In Cascading Style Sheets (CSS), what is a rule?
An instruction format that consists of a specified selector and the properties and values applied to it
The marketing department wants to communicate with the customers regarding the significance of their company logo and wants to publish this significant information on the company's Website. Why it is necessary to publish such information?
Because publishing this information ensures continuing brand recognition
When you use the HTML5 Offline Web application API, you must create a list of the files needed for the Web application to work offline, such as the main .html file, the .css file, and any images or JavaScript files used. What is this list called?
Cache manifest
What is the best way to specify a background color for the page using a GUI HTML editor?
Choose appropriate option to apply background color from the context menu
You are designing the front end for your company's new Website. You want all design elements to support site navigation and ensure page accessibility as much as possible. Which point should you verify as you design your pages?
Color combinations should be as attractive and readable as possible.
Your company's intranet Web server has crashed. You must help re-create the server. A server administrator has copied a script from last night's backup tape. The server is an exact duplicate of the server that just crashed. However, this script is not processing information on the new server. What is most likely the problem on the server?
Executable permissions have not been set correctly.
You are creating a Web document on a mobile device and will be out of your Internet Service Provider's coverage range for the remainder of the day. Which HTML5 API will allow you to continue working on the document?
Offline Web application
A user has just visited your Website and updated her contact information. This information was stored in a database. Which language was most likely used to update the database?
SQL
What is the best source from which you can obtain feedback about your Website to evaluate the site's effectiveness and determine ways you can improve the site?
Sales representatives
You request a Webpage using your browser. This Webpage includes an image that uses a color that is not supported by your browser. How will your computer compensate for this limitation?
The image will appear and be dithered.
Consider the following HTML code: <tr> <td>Bill Gates</td> Also consider the corresponding CSS document code: tr { vertical-align: top;} What does this code indicate about the text "Bill Gates?"
The text "Bill Gates" is vertically aligned to the top of the cell.
What is the purpose of the <link> tag in an HTML document?
To create a link to a style sheet
You want to add a table into your Web document using a GUI HTML editor. You are using HTML5 and CSS. Which of the following describes a valid use of tables?
To make information appear in an organized manner
Consider the following HTML code: <blockquote> uCorp subwoofers will blow you away! <img src="products/speaker.png" alt="Buy a uCorp subwoofer today!" style="float: right"/></blockquote> Where on the page will the image appear?
To the right of the text
You are embedding audio in your Webpage and want to specify that the audio file should play immediately upon loading. Which attribute is needed to accomplish this?
autoplay="autoplay"
When creating an image map hot spot in HTML, a circle area is defined by:
coordinates of one point and the circle's radius.
Which <form> element attribute and value is preferred for sending form data and can send more characters?
method="post"