Post Assessment

studied byStudied by 2 people
0.0(0)
get a hint
hint

Which CSS property defines how text should be handled when it extends beyond its allotted area?

1 / 101

Tags and Description

102 Terms

1

Which CSS property defines how text should be handled when it extends beyond its allotted area?

text-overflow

New cards
2

You are using some graphics that require WebGL for important functionality on your mobile site. Which statement describes the support you can expect or provide for this?

You can provide users with a link to test for WebGL support and obtain a supporting browser.

New cards
3

Stanley is the senior developer of apps for an organization that is considered to be at the cutting edge of mobile-device technology. Which of the following should Stanley use to create apps for mobile devices?

HTML5 APIs

New cards
4

Consider the following code:

var yearBirth = "1956";

What variable data type does this snippet of code represent?

String

New cards
5

Which of the following statements about Cascading Style Sheets (CSS) is true?

CSS commands contain formatting instructions that determine how to display HTML elements in Web pages.

New cards
6

What is the name for Microsoft's implementation of JavaScript?

JScript

New cards
7

You have created a new Web site for your company, and you want to add a script so that a "welcome" pop-up box appears to the user as soon as he or she launches the site. Which JavaScript method should you use to display the message?

The alert() method

New cards
8

Which CSS3 property can be used to apply a delay effect when an element changes from one style to another, such as when a user hovers over an element?

transition

New cards
9

Which JavaScript object can trigger the onerror event handler?

image

New cards
10

What HTML5 form element provides users with a drop-down menu of pre-defined choices and an autocomplete feature that filters choices while they type?

The
New cards
11

Many markup code validators exist, but the most authoritative is the W3C Markup Validation Service. How does the W3C Markup Validation Service determine to what HTML standard to validate your code?

It reads the declaration on an HTML page and validates according to the specified DTD.
New cards
12

Which statement is true about JavaScript?

JavaScript is widely used for client-side and server-side scripts.

New cards
13

What type of JavaScript expression evaluates to true or false?

Logical

New cards
14
Consider the following code:



\
What is the expected result when this script is run in the browser?

Two alert boxes, both displaying the message Green

New cards
15

Responsive Web Design uses three main techniques to develop responsive pages. Which technique allows you to specify CSS styles based on viewport size?

Media queries

New cards
16
Consider the following code:

\
CSS file:

.right {

text-align: right;

}

\
HTML file:

The class selector

New cards
17

A positive Z-index value usually places an element where?

In front of other elements

New cards
18

In an article about using inline validation in HTML5 forms, Maik reads that users typically find these forms to be easier and faster to complete. What feature on inline validation would cause this result from form users?

Users can resolve errors as they go along and submit the completed, validated form just once.

New cards
19

Probably the most important rule for designing any Web site is:

Give your users what they want, when they want it.

New cards
20

Which CSS property can create rectangles with rounded corners around text?

border-radius

New cards
21

Which CSS3 property defines whether or not a transformed element is visible when it is rotated to face away from the viewer?

backface-visibility

New cards
22

The DOM is a standard that enables you to manipulate HTML elements and attributes in a Web document. What do you use to work with the DOM?

A scripting language such as JavaScript

New cards
23

The CSS3 appearance property can be used to make an element:

look like a button.

New cards
24

Which JavaScript event occurs when the mouse pointer leaves from a link, image or other visible element on the page?

mouseout

New cards
25

Each time a user logs on to a service, shops or conducts online business, he or she is filling information into:

an HTML form.

New cards
26

Which CSS3 property can you use to apply a shadow effect to text?

text-shadow

New cards
27

Which choice correctly describes two benefits of Cascading Style Sheets (CSS)?

CSS provides a consistent look and feel to site pages, and simplifies change management issues.

New cards
28

What is another common name for the technique of requesting and reusing data using the JavaScript XMLHttpRequest object with HTML pages and CSS?

AJAX

New cards
29
Consider the following code:

\




\
Which two attributes' values must match each other in order to bind the element with the element?

The list attribute and the id attribute

New cards
30

You are creating an HTML5 form. You want the form to be able to automatically suggest and complete input as the user enters the information into fields. Which code will correctly add this feature?


New cards
31

You are creating a Web form that will use JavaScript to calculate mortgage payments. What HTML5 element should you use to display the results of the calculation?

New cards
32

What CSS3 property can be used to create rounded corners on an image or other element?

border-radius

New cards
33

Which statement about the Document Object Model (DOM) is true?

The DOM provides a standard interface so you do not need to develop multiple versions of your scripts tailored for each browser.

New cards
34
Your form has a field for users to enter an e-mail address. You use to create the field. What other HTML5 attributes could you use with the "email" input type to most effectively ensure that users do not inadvertently enter an extra space, an invalid format or an irrelevant answer?

pattern, placeholder, required

New cards
35

Considering the following code:

var myFloatingPoint = 34.75; alert(/* your selection here */);

Considering the alert() function requires an argument of type string, which code is necessary in the alert to display the value of the myFloatingPoint variable in the resulting alert box?

myFloatingPoint

New cards
36

Why is it important to test your JavaScript code in as many browsers as possible?

Because different browsers sometimes implement JavaScript differently

New cards
37

What is the term for a relatively small application developed exclusively for mobile devices?

App

New cards
38

Kate has created a complex script that she wants to attach to multiple HTML files, but she also wants to add a simple script to only certain sections of one page. What must she do to apply both scripts?

She must use separate
New cards
39

The CSS3 @font-face rule requires you to specify which two properties?

font-family and src

New cards
40

Sarah has written several JavaScript scripts for her Web site, but she realizes that implementing the scripts may be complicated by the fact that people may view her pages using different user agents and user agent versions. What should Sarah do to ensure that her scripts will run correctly without knowing what user agent a person will use to view her pages?

Test her scripts in the latest versions of popular browsers

New cards
41

Which of the following statements about HTML5 is true?

HTML5 does not require third-party plug-ins for video and audio content.

New cards
42

Which method of form input validation is sometimes referred to as "pogo-sticking" and may lead to users becoming frustrated or impatient with the form?

Requiring users to click Submit before validation occurs

New cards
43
Consider the following code:

\
CSS file:

\#red { color: #FF0000; }

\
HTML file:

This paragraph has red text

Not affected



\
This code shows an example of what?

The id selector

New cards
44
What will occur if you define all your functions in the

The functions will load when the browser reaches the script point in the page or when the appropriate user event occurs.

New cards
45

The HTML5 datetime input type allows the user to:

choose a date and time with a GMT time zone.

New cards
46

Consider the following Cascading Style Sheets (CSS)

rule:body {color: #008080;}

Which is the "property" portion of this rule?

The portion that reads "color"

New cards
47

Where can you find information about the latest status of HTML5 and CSS3 browser support?

On third-party Web sites such as CanIUse.com and Wufoo.com

New cards
48

If the JavaScript operator + is used in an arithmetic expression, what is the result?

The expression treats + as an addition operator and sums the values.

New cards
49

Why are syntax errors so common when writing JavaScript code?

Because JavaScript is case-specific

New cards
50

A Web designer who assigns percentage values to elements using the HTML structural elements is using what page-layout method?

Liquid

New cards
51

Vivi is creating a Web page that will allow her employees to upload their timesheets to the company intranet. What HTML5 API can she use to restrict uploads to a specific file type?

The File API

New cards
52

Consider the following code:

var myVar = 2; myVar += "3";

What is the value of myVar after execution?

The value will be: 23

New cards
53

What variable data type should you use if you want to specify numeric values for mathematical operations?

Number

New cards
54

Which HTML element allows you to specify a pre-defined list of options for an input element?

datalist

New cards
55

To position an element behind another element, you can assign a negative value to:

the Z-index property.

New cards
56

JavaScript has some basic rules for naming variables. For example, the first character of the variable name must be:

a letter, the underscore ( _ ) character or the dollar sign ( $ ).

New cards
57
What is the default height and width of the

150 (h) x 300 (w)

New cards
58

You are creating an HTML5 form. You want the form to be able to automatically suggest and complete input as the user enters the information into fields. Which code will correctly add this feature?


New cards
59

Consider the following style rules:

img {

height: 150px;

width: 150px; transition: height 3s, width 3s;

}

img:hover {

height: 300px;

width: 300px;

}

Using these styles, what will occur when a user hovers over an image on the page?

The image's height and width will gradually increase to 300 pixels over a 3-second time period.

New cards
60

Which scripting language is most commonly used within Microsoft's proprietary programs, such as Word and Excel?

VBScript

New cards
61

Terri is filling in a form on a Web site. She notices that as she types responses in the form fields, suggestions are made that she could accept for the input. The element is implementing which of the following attributes?

autocomplete

New cards
62

Anatoly is using the CSS position property to position block-level elements on his Web pages. By specifying the "absolute" positioning scheme, Anatoly is ensuring that the element to which he is applying the position property will:

float above the document and can be positioned as needed.

New cards
63

Using a linked style sheet, you have modified the look and feel of an HTML page. Because of the concept of inheritance, you notice that:

the rules you applied remain in force unless explicitly overruled using other styles.

New cards
64
What does the HTML5 autofocus attribute do when applied to the HTML

Activates the drop-down selection list for input when the page loads

New cards
65

You want to create a simple click-to-call link on your mobile Web page, so that users can easily make a phone call with one click. Which line of code will add this feature?

New cards
66
You are using the

The poster attribute

New cards
67

It is always wise to review your JavaScript code manually, but manual reviews do not always catch errors, and with long programs they can be time-consuming. To save time, you can use various debugging tools. How are these tools helpful?

They help you detect and locate errors in your code.

New cards
68
What is the purpose of using the

It displays the result of a calculation in the form.

New cards
69

What is the purpose of using the CSS3 h3 ~ p selector?

To select all
New cards
70

Natalie is using the CSS position property to position block-level elements on her Web pages. Which positioning scheme describes the normal, or default, position of an element within a page?

Static

New cards
71

Which CSS3 selector can you use to apply a style to the first paragraph of every container in a Web page?

p:first-of-type

New cards
72

When you load a page containing your JavaScript code into a browser, how can you ensure that your functions will be available before any user event can occur that might call a function?

Define all your functions in the
New cards
73

Consider the following Cascading Style Sheets (CSS) rule:

body {

color: #008080;

}

Which is the "declaration" portion of this rule?

The portion inside the curly braces

New cards
74

When you define a named function in JavaScript, you begin the function block with the keyword function followed by the function name. The rest of the statements that form the function must be enclosed in:

curly brace { } characters.

New cards
75

Which statement about global variables is true?

If you declare a global variable, you can access its value from any function or script block on that page.

New cards
76

To change the position of a transformed element in CSS3, you use the:

transform-origin property.

New cards
77

What Geolocation API method is used to retrieve the current geographic location of the user?

getCurrentPosition()

New cards
78
You have created a Web page using the HTML5

At the top right of the nav section

New cards
79
To allow users to change the size of elements on a Web page, such as a

resize

New cards
80
Which DOM method is used by the

getContext()

New cards
81

Which of the following is a JavaScript event that occurs when a page opens in the browser?

load

New cards
82

To allow several files to be selected at once with the File API, use the:

multiple attribute.

New cards
83

You are creating a Web-based mapping application. What information can you obtain by using the HTML5 Geolocation API in your application?

The latitude and longitude of a user's device

New cards
84

How can you override a particular style in an HTML element if the HTML document is linked to a style sheet?

By applying an inline CSS style attribute to the element whose style you want to override

New cards
85

You are creating a mobile version of a community discussion site for busy moms. Users post questions and other topics for discussion. Some days there are as many as 20 new discussion threads. Considering your audience, what might be the best way to lay out navigation elements on the home page?

Create a small, collapsible navigation bar at the top of the home page so users can see new topics without scrolling.

New cards
86

Kate has created a complex script that she wants to attach to multiple HTML files, but she also wants to add a simple script to only certain sections of one page. What must she do to apply both scripts?

She must use separate
New cards
87

You are a novice Web developer, and your mentor has suggested that you familiarize yourself with HTML5 and Cascading Style Sheets (CSS). Being somewhat unfamiliar with CSS, you discover that it is:

a Web design technology that enables you to determine how the HTML elements in your Web pages will display .

New cards
88

Which of the following statements about validating markup is true?

If a code validator finds an error, the remaining code on the page may fail validation, even if the remaining code is actually valid.

New cards
89

Selena is embedding a video in her HTML5 page. Which attribute should she use to identify the location and file name of the video?

The src attribute

New cards
90

Which statement about modern Web design is true?

The design of mobile Web pages requires some differences from pages designed for desktop computers.

New cards
91

CSS3 added support for multiple background images. Which declaration uses the correct syntax for applying two background images to the same element?

background-image: url("images/logo.png"), url("images/pattern.png");

New cards
92

In JavaScript, what is a value?

A specific quality that belongs to the property of an object

New cards
93

When you define a named function in JavaScript, you must begin the function block with what?

The keyword function followed by the function name

New cards
94
Which HTML5 attribute can help users input valid form data in the

The placeholder attribute

New cards
95

If you declare a variable within a function definition, the only way you can access or change it is from within that function. What term is used to describe this type of variable?

Local variable

New cards
96

What type of data can be returned by the XMLHttpRequest object?

Any type of textual data

New cards
97

Which of the following methods returns a value in the form of a text string?

prompt()

New cards
98

You want to create Web pages that can easily adapt to and serve multimedia content to smartphones, tablets, gaming devices and smart TVs, as well as to traditional desktop computers, without the use of plug-ins. Which of the following would be best suited for this purpose?

HTML5 APIs

New cards
99

JavaScript makes extensive use of objects. What is the term for the various attributes that can be assigned to an object?

Properties

New cards
100

Which example is a valid variable name in JavaScript?

_firstName

New cards

Explore top notes

note Note
studied byStudied by 1696 people
Updated ... ago
4.9 Stars(7)
note Note
studied byStudied by 11 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 26 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 8 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 22 people
Updated ... ago
5.0 Stars(2)
note Note
studied byStudied by 13 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 9 people
Updated ... ago
5.0 Stars(1)
note Note
studied byStudied by 270 people
Updated ... ago
5.0 Stars(1)

Explore top flashcards

flashcards Flashcard66 terms
studied byStudied by 1 person
Updated ... ago
5.0 Stars(1)
flashcards Flashcard151 terms
studied byStudied by 23 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard95 terms
studied byStudied by 7 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard151 terms
studied byStudied by 3 people
Updated ... ago
5.0 Stars(1)
flashcards Flashcard24 terms
studied byStudied by 71 people
Updated ... ago
4.0 Stars(1)
flashcards Flashcard56 terms
studied byStudied by 9 people
Updated ... ago
5.0 Stars(2)
flashcards Flashcard103 terms
studied byStudied by 47 people
Updated ... ago
4.8 Stars(4)
flashcards Flashcard113 terms
studied byStudied by 64 people
Updated ... ago
5.0 Stars(2)