Practice Test A Adva

Ace your homework & exams now with Quizwiz!

Moishe wants to develop mobile apps using the technologies contained in the "HTML5 family." Which language in the family should Moishe use to create dynamic, interactive capabilities for his apps?

JavaScript

What is advantageous about the fact that JavaScript is not compiled to any specific hardware platform or operating system?

JavaScript code can be developed quickly.

Which of the following statements about JavaScript is true?

JavaScript is platform-independent.

Consider the following style rule: p { border: 1px solid #000; width: 10em; word-wrap: break-word; }

Long words will wrap to the next line, without a hyphen.

Which of the following was introduced to CSS before CSS version 3?

Margins

You are creating a mobile version of your Web site. Which technique should you use for the hyperlinks?

Pad the clickable area around your links to make them easier to find and click with a fingertip.

Which of the following form fields are round buttons in a group of mutually exclusive pre-determined choices?

Radio buttons

What is an application programming interface (API)?

Standards and programming instructions that enable access to a software application

You are the new Web site designer for your company and want to establish a set of conventions for publishing. Which of the following will help you standardize documents from different departments throughout the company to achieve this goal?

Style guide

Which statement is true regarding the HTML5 <datalist> element?

The <datalist > element contains <option> elements with values that are displayed via autocomplete when the user types in the associated <input> element.

What tag is usually used by Web authors to place JavaScript code within an HTML document?

The <script> tag

Aeden is a developer for a company that manufactures various products and has divisions throughout the world. He is tasked with creating a Web page that will allow team members in training to drag pictures of company products to the correct company division that creates each product. What HTML5 API can Aeden use to provide this functionality?

The Drag-and-Drop API

Which HTML5 API could you use to make an AJAX image gallery easier to navigate?

The History API

Tyler wants to enhance his Web application by allowing users to continue working when they are not connected to the Internet. Which HTML5 API will enable him to do this?

The Offline AppCache API

Your Web team is finishing up development of its new mobile Web site. Your supervisor assigns one group to validation and another to testing. Which statement accurately describes either of these processes?

Validation prepares your pages for compatibility with evolving and future technologies.

You want to use JavaScript to perform inline validation on user input into your Web form's E-Mail Address field. Which of the following checks can it perform?

Verify that at least two characters appear after the last dot

An object-oriented program is:

a collection of individual objects that perform different functions.

jQuery code should not run until the document is finished loading. To ensure this occurs, jQuery methods are placed within:

a document.ready event.

Consider the following code: <p style="text-align: center; margin-right: 12px;"/> This code is an example of:

an inline CSS style attribute.

Consider the following JavaScript expression: "3" + "3" = "33" This code snippet is an example of:

concatenation performed on strings.

The CSS3 box-sizing property forces elements to fit an area in a certain way, such as allowing the border and padding to fit within the defined width of an element instead of expanding it. Which of the following values are used with this property?

content-box and border-box

Which of the following is the best example of good coding practice?

h1 { font-family: arial, sans-serif; color: #FFFFFF; font-size: 36px; }

The CSS3 matrix3d transform method defines a 3D transformation using a 4x4 matrix. How many values are required for this method?

16 values

Suppose your Web team has been directed to update the company Web site to HTML5. Your supervisor is looking for ways to improve the various user forms. You suggest applying a feature that will activate the first required field on each form for input when the page loads, so that users can start there immediately and without frustration if they are completing the forms in a hurry. Which code correctly implements this feature?

<input type="text" name="firstname" autofocus>

Which description defines a mobile Web site, in contrast to a mobile app?

A Web site designed for viewing on mobile device browsers

What is a user-defined function?

A named set of statements that performs a task or calculates a value

In JavaScript, what is an expression?

A part of a statement that is evaluated as a value

In JavaScript, what is a method?

An action that an object can perform

Which HTML5 API allows a Web program to run locally on a client system?

AppCache

Why is it important to limit words to clear, necessary verbiage on your Web pages, especially on the home page?

Because most users simply scan pages quickly looking for specific information or links to it

What is the term for a script block that transfers program execution to a subroutine, procedure or another function?

Calling statement

Bella wants to simplify Web page creation so that she need only make one simple change to affect all like elements across the site simultaneously. To accomplish this, Bella should use:

Cascading Style Sheets (CSS).

You are filling in a form for a job application on a company's Web site. You see a text box with Up and Down arrow buttons for a field requesting your number of years of experience. The field already shows the number 10, but you can change the number in the box by clicking the Up and Down arrows. Which HTML5 code was used to create this field on the form?

Experience: <input type="number" name="experience" min="0" max="40" value="10">

If you want a particular block-level element to always appear at the upper-right corner of the browser window, no matter how far down a user scrolls on the page, which type of CSS positioning should you apply?

Fixed

Ahmed is creating an intranet site for his company that may be viewed using several different browsers. What can he do to help ensure that his Web pages render appropriately, regardless of the browser used to render them?

Follow W3C standards carefully.

Which term describes any attribute that can be used by various (and in some cases, all) HTML elements?

Global attribute

What can be considered an advantage of using HTML5 APIs to create mobile apps?

HTML5 APIs use fewer resources than plug-ins do.

The terms "HTML family" and "Web development trifecta" are sometimes used to refer to which combination of Web technologies?

HTML5, CSS3 and JavaScript

Which statement about local variables is true?

If you declare a local variable, you cannot access its value from any other function except the one in which it was declared.

You are developing a form for your Web site. Which guideline should you follow when developing inline validations to assist users by notifying them of their progress toward completion?

Include persistent messages that show success in fields.

Pieter wants to make his Web pages HTML5-compliant and eliminate the need for site visitors to download plug-ins such as Apple iTunes, Apple QuickTime, Adobe Flash or Microsoft Silverlight to listen to audio. What can Pieter do to accomplish this?

Incorporate the <audio> element in his Web pages

Consider the following code: alert("Good morning, " + prompt("What is your name?", "") + "!"); What does this snippet of code accomplish?

It concatenates two methods to display a message, then request and capture user input.

In JavaScript, what function does the prompt() method perform?

It creates a pop-up box with a text field and requests the user to input information into the field.

What is the purpose of the CSS3 @keyframes rule?

It defines an animation and its position, and it is required.

As a page developer, how do you use a grid in Responsive Web Design?

Its invisible guidelines help you place page elements to accommodate various screen sizes.

Which of the following will correctly call a JavaScript function without error?

myFunction("a")

Which JavaScript event handler is triggered when a user clicks her mouse button outside of a particular field after typing input there?

onblur

You are designing a Web site that will be visited by users on mobile devices. You have a lot of content, so you need to:

provide more shortcuts.

Jacoby wants to use CSS3 to apply a border to the bottom of the last paragraph in each <section> element on a Web page. Which selector should he use?

section p:last-of-type

Which value of the CSS3 box-shadow property specifies the shadow's size, but is optional?

spread

Ken is creating an online survey in which users will rate items using the numbers 1 through 5. He wants to use HTML5 to prevent arbitrary numbers from being entered, and to make it easier for mobile device users by providing a slider control. What HTML5 input type should Ken use?

type="range"

Consider the following code: <script> var v1 = "Blue"; function f () { var v1 = "Green"; alert (v1); } f(); alert (v1); </script> What is the expected result when this script is run in the browser?

Two alert boxes, the first displaying Green and the second displaying Blue

Hector has created a CSS style sheet to ensure visual and formatting consistency across the HTML documents on his company's intranet. Unbeknownst to Hector, not all computers in the company have a particular font that Hector included in the style sheet. What will occur when users whose computers do not have the font try to view the intranet?

The users' browsers will display the content to which the font is applied in a default font face.

Consider the following code: var userName = "Titan"; What component of JavaScript is "Titan" in this example?

The variable's value

Why would you use the for attribute with the HTML5 <output> element?

To specify the IDs of the elements whose values were used in the calculation


Related study sets

Unit 2: Common Real Estate Transaction Documents

View Set

Chapter 4-Critical Thinking in Nursing-Final Exam Adaptive Quiz

View Set

Smartbook Recharge Chapter 14 ACCT 405

View Set

Reden, informieren, fragen, antworten

View Set