Quiz 1

¡Supera tus tareas y exámenes ahora con Quizwiz!

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. Not compiled, runs different in different browsers, and is usable in mobile.

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.

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.

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.

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

a document.ready event.

<p style="text-align: center; margin-right: 12px;"/>

an inline CSS style attribute.

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

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

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

Calling statement

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, and choose one standard version of any given language, and apply that standard consistently throughout the document, pages or site. Although it is highly recommended that developers use HTML5 markup code and validate their code, it is not mandatory to do so to ensure that Web pages render appropriately regardless of the browser used to render them.

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

Global attribute

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. Prompt("Please enter your last name:"); will display a pop-up box with the message in parentheses followed by a text field in which the user can enter the requested information.

What is the purpose of the CSS3 @keyframes rule?

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

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

onblur

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

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

The for attribute is used with the HTML5 <output> element to specify the IDs of the elements whose values were used in the calculation. Each value must be separated by a space.


Conjuntos de estudio relacionados

Florida Statutes, Rules, and Regulations Common to all Lines

View Set

Principles of Management - Module 4: Decision Making

View Set