Practice Test C

Lakukan tugas rumah & ujian kamu dengan baik sekarang menggunakan Quizwiz!

The pattern attribute can be used with the "url" input type. Which of the following would typically be the value used with the pattern attribute to ensure that either "http://" or "https://" is included in the user's input?

"https?://.+"

jQuery's DOM-related methods provide a simpler way to access and manipulate HTML elements and attributes. HTML elements are selected and jQuery performs various actions on them using the following code: $(selector).action() Which portion of this code specifies and accesses jQuery?

$

Which type of CSS effect allows you to rotate an element clockwise to a new position without animation?

2D transformation

Tina is creating a Web form that will be used internally in her organization. She wants to use an image of a green check box to create a Submit button on the form that will submit user input to a server for processing. Which element can she use to create a Submit button that uses text and images?

<button type="submit">

Which element is used to group related form fields on a Web page by creating a box around the related fields, to group and separate them?

<fieldset>

In JavaScript, what is a property?

A descriptive characteristic of an object that the developer specifies when creating the object

In Cascading Style Sheets (CSS), what is a rule?

A format instruction that consists of a specified selector and the properties and values applied to it

Which statement accurately describes a key difference between mobile site design and responsive site design?

A mobile site requires a separate domain and URL, and different HTML from the main site.

In JavaScript, what is a function?

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

You want to be able to ask your site users for a password, then store the user's input so that the password can be used as needed to execute various functions within the application. In which of the following should the user's input be stored?

A variable

What is the default security algorithm used with the HTML5 <keygen> element?

RSA

Why is it challenging to use images in your page designs for mobile sites?

Because of size constraints in device screens and memory

Nevine wants to improve her JavaScript program's efficiency and scalability by defining her own processes, or functions. Why are functions such an integral part of writing JavaScript code?

Because they perform specific tasks repeatedly throughout your program, as needed

You can use CSS to align images to text. Which of the following alignment options is the default alignment?

Bottom

How can you link an HTML document to an AppCache manifest file named date.appcache?

By adding the manifest="date.appcache" attribute to the <html> tag

In JavaScript, what term is used to describe the technique of changing a variable's value from one data type to another?

Casting

Hugo has created an HTML document to which he has attached an external CSS style sheet containing styles that define all HTML elements in the document. Hugo wants to apply styles to his home page only that will override the style definitions of the attached style sheet. How can he accomplish this?

Embed an internal style sheet.

On your Web page, you include various links and clickable images that have the ability to trigger various functions when users click them with the mouse. What term describes user-initiated action on a Web page?

Event

Patrick is creating a form for his Web site, and he wants to have visitors provide their names. Which HTML5 code would ensure that users enter their first names prior to submitting the form?

First Name: <input type="text" name="firstname" required >

A Web designer who assigns specific pixel widths to elements using the HTML structural elements is using what page-layout method?

Fixed-width

Which technique keeps images from exceeding the width of the screen?

Fluid image

Much HTML5 code has backward compatibility built in that enables it to render acceptable substitutes on the page when older browsers cannot support the newer HTML features. Which term is used to describe this feature?

Graceful degradation

HTML comes in several versions. Which of the following includes the Transitional, Strict and Frameset "flavors"?

HTML 4.01

Which technology provides browsers with functionality that previously required users to install proprietary plug-ins?

HTML5 APIs

Experts in Web technology expect that the future of Web development will rely heavily on:

HTML5 APIs.

When you embed JavaScript within an HTML document, in what document sections can you add the script?

In the <head> and/or the <body> sections

Tamiko wants to make her Web pages HTML5-compliant and eliminate the need for site visitors to download plug-ins such as Adobe Flash, Microsoft Silverlight or Apple QuickTime to view her video files. What can Tamiko do to accomplish this?

Incorporate the <video> element in her Web pages

Which statement most accurately describes the relationship between JavaScript and Java?

JavaScript and Java are unrelated.

Which of the following are considered to be user interface (UI) elements?

Menus and buttons

Because mobile devices have smaller screens, you must lay out your pages differently than you would for a page that will be viewed primarily on larger screens. Which of the following is a technique you can use to simplify your page design?

Minimize formatting such as fonts and colors.

Which statement correctly describes an advantage that mobile Web sites have over mobile apps?

Mobile Web sites work on any device with a browser so you can create them once and run them anywhere.

While filling out a form, Oscar neglected to enter a value in the "Middle Initial" field, and then submitted the form. What variable data type will the "Middle Initial" field contain?

Null

Question 37 : Conchita uses the CSS Box Model to help configure the space around each HTML element as she develops her Web pages. Which Box Model element defines the space between the HTML element and the border?

Padding

Generally speaking, what functionality does JavaScript provide when used as part of the "Web development trifecta"?

Page manipulation capabilities and advanced interactivity

You are creating user-defined functions in your JavaScript code. What must you include immediately after each function name?

Parentheses ( ) that encompass the arguments to be used in the function

How can you "comment out" a particular rule in a style sheet so that it will be ignored when you link the style sheet to a Web document?

Place the rule between the /* and */ characters.

Joey wants to develop a "one size fits all" Web page that will adjust to the screen size of different devices, such as traditional Web browsers, smartphones and tablets. Joey decides to use HTML5 and CSS3 to create the pages. What term describes the type of Web page creation in which Joey wants to engage?

Responsive design

Which type of JavaScript error is typically caused by improper use of commands, and occurs after the script has loaded and is executing?

Run-time error

Roshon wants to create an HTML5-compliant page that has four sections: a section that contains the site navigation links, top and bottom sections that contain a logo and copyright information, and a section that contains the main message of the page. Which elements should Roshon use to create these sections?

The <header>, <footer>, <nav> and <main> elements

In a CSS style sheet, which of the following determines the image behind the contents of a page?

The background-image property

Consider the following JavaScript expression: (((6 - 2) * 4) / (6 - 2)) * 2 What is the result of this expression?

The result of this expression is: 8

Regarding HTML5 forms, how are HTML5 input types displayed in various browsers?

They may display differently in various browsers.

What is the purpose of the CSS3 transition-delay property?

To define when the transition will begin

What is the purpose of the CSS3 @font-face rule?

To enable developers to specify custom fonts for Web page elements

Why is it essential to include operators in your script?

To instruct the program how to store or manipulate a value in an expression

Consider the following code: <script> function dateTodayTomorrow(a, b) { a.concat(b); return a.valueOf(); } alert(dateTodayTomorrow('Wednesday','Thursday')); </script> What message will appear in the alert box when this script is run in the browser?

Wednesday

What selector could you use to select every <a> element whose href attribute value ends with .zip?

a[href$=".zip"]

Which CSS3 property is used to bind a selector to the animation defined in an @keyframes rule?

animation-name

Which attribute is used to finish field values based on characters that the user has entered before?

autocomplete

You are embedding audio in your HTML5 page and want to specify that the audio file should automatically play immediately upon loading. Which attribute is needed to accomplish this?

autoplay="autoplay"

Which CSS3 property determines whether the page background extends into the border or not?

background-clip

You can test your mobile site pages on a client emulator to ensure:

cross-browser and device compatibility.

What Drag-and-Drop API method is called when a page element is dropped after being dragged?

drop()

Which History API method changes the URL in the browser window by adding a URL to the history stack?

history.pushState()

Which JavaScript object can be affected by the onabort event handler?

image


Set pelajaran terkait

Health and Nutrition Chapter 4 Carbohydrates

View Set

Ch 8 Intermediate Accounting Concepts

View Set