Web Development Test 1

Web Development Test 1

memorize.aimemorize.ai (lvl 286)
Section 1

Preview this deck

What are three ways of representing color in CSS?

Front

Star 0%
Star 0%
Star 0%
Star 0%
Star 0%

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Active users

0

All-time users

0

Favorites

0

Last updated

6 years ago

Date created

Mar 1, 2020

Cards (60)

Section 1

(50 cards)

What are three ways of representing color in CSS?

Front

Keyword color names, decimal RGB values, hexadecimal RGB values

Back

If an element is positioned absolute within another element that has a position property, what is the starting point of positioning for the inner element?

Front

The upper left corner of the containing element.

Back

How does one insert a comment into a CSS style sheet?

Front

/ comment /

Back

In an e-commerce application, should the Web developer use the GET method or the POST method of sending data to the server, and why?

Front

POST because, by the definition of the HTTP protocol, POST responses may not be cached.

Back

How is the high compression of JPEG files achieved.

Front

By using a lossy compression algorithm based on how the human eye perceives images.

Back

How are host names and sub-domains assigned?

Front

By the registrants of the second-level domains.

Back

Names in the domain name system form:

Front

a tree-structured name space

Back

The DOCTYPE declaration provides:

Front

an indication of the HTML standard in use.

Back

What is the dotted quad format?

Front

A way of writing IPv4 addresses as four decimal numbers.

Back

Why does the font-family CSS specification take a list rather than a single font name?

Front

Not all fonts are available on all computers; the browser will scan the list from left to right and use the first supported font named.

Back

What must the Web developer do to keep pages from being "cut off" on the right when printed or displayed in a reduced-size browser window?

Front

At least one <div> section across the width of the page must be of variable width.

Back

What does the on-line validation service provided by the W3C do?

Front

Compares HTML documents to DTDs to find deviations from the standard.

Back

What are the three levels of style sheet?

Front

External, document-level, and inline.

Back

Why does an image appear to load faster when height= and width= are given using the natural dimensions of the image?

Front

The browser can reserve space for the image and lay out the rest of the page.

Back

Which of the following is correct CSS Syntax?

Front

body {color: black}

Back

What are HTML character entities are used for?

Front

To include markup delimiters and special characters in HTML documents.

Back

When a URL does not include a document (file) name, the Web server:

Front

Uses its configuration information to determine how to handle the request.

Back

In the context of CSS boxes, what is the difference between margin and padding?

Front

Padding is the unoccupied area between the box boundary and its content and margin is the space surrounding the box boundary on the outside.

Back

You should choose a heading from levels <h1> to <h6>:

Front

so that the order of headings reflects the logical structure of the document.

Back

What are the appropriate values of the width= and height= attributes of the <img> tag?

Front

The natural or intrinsic width and height of the image.

Back

What information is given in the alt= attribute of an <img> tag?

Front

Text to be displayed when the image is not or cannot be displayed.

Back

What is the purpose of a computer markup language like HTML?

Front

To add information to text.

Back

Why are many World Wide Web servers named WWW?

Front

WWW is the "well-known name" for Web servers.

Back

Why would a Web developer code an @ media print section in a cascading style sheet?

Front

To specify the styles to be used when the page is printed.

Back

What are the two kinds of TLDs?

Front

Generic and geographic

Back

Nesting lists is:

Front

Permitted, provided proper tag nesting rules for lists are followed.

Back

How many duplicate names are permitted on the Internet?

Front

None

Back

The word "deprecated" means:

Front

that a feature may be removed from the language in a future revision.

Back

The HTML tag <ol> is used to enclose:

Front

An Ordered List, one that is displayed using numbered items.

Back

MIME is:

Front

Multimedia Internet Mail Extensions, a way of encoding binary data like pictures for use in email and on the Web

Back

A web developer does not include a generic font family name in a font list for a section of content, and the browser has none of the specific fonts coded. What happens?

Front

The text is displayed in the browser's default font.

Back

There is no ending tag for line-break because:

Front

the line-break tag does not enclose content.

Back

What is the function of the root name servers?

Front

To provide the addresses of the top-level domain name servers.

Back

Text in the <title> element appears in the browser

Front

as the title, in the title bar near the top of the browser window.

Back

NCSA Mosaic was:

Front

The first graphical Web browser.

Back

An HTTP 1.1 request must contain:

Front

An HTTP method and a Host header.

Back

What is the functional difference between HTML checkboxes and radio buttons?

Front

Checkboxes permit multiple items to be selected, while radio buttons permit at most one.

Back

What are compression artifacts?

Front

Visible defects in the picture caused by the nature of the compression algorithm.

Back

How are the World Wide Web and the Internet related to one another?

Front

The World Wide Web is a part of the Internet.

Back

The World Wide Web was invented in:

Front

Bern, Switzerland, at CERN

Back

How is IPv6 different from IPv4?

Front

IPv6 addresses have 128 bits and IPv4 addresses have 32 bits

Back

In general, HTML specifies:

Front

the logical structure of a document, with some formatting suggestions.

Back

What is HTTP?

Front

HyperText Transfer Protocol, the protocol of the World Wide Web.

Back

What does "aspect ratio" mean?

Front

The ratio of the width of an image to its height.

Back

What is a peering point?

Front

A specialized data center where ISPs connect their networks together.

Back

What is the largest number in each part of a dotted-quad address?

Front

255

Back

Who controls the second-level domain name servers?

Front

The registrants of the second-level domains.

Back

A Web developer wants the browser to determine the initial position of an element, but wants to move the element later with JavaScript. Which one of the following types of positioning should the developer choose?

Front

relative

Back

How can one tell by looking whether an HTML path is an absolute path or a relative path?

Front

An absolute path begins with a slash and a relative path does not.

Back

What is the purpose of CIDR?

Front

To conserve IPv4 addresses

Back

Section 2

(10 cards)

What does the following CSS specification do?

Front

Makes emphasized text red, but only when it is within a form element.

Back

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

Front

It provides a mechanism for downloading fonts.

Back

To use the CSS shorthand for the border-width property, in what order must the widths be listed?

Front

top, right, bottom, left

Back

Which of the following is the CSS property to control size of text?

Front

font-size

Back

Why should one use relative size specifications like % or em rather than fixed specifications like points or picas for text size?

Front

Relative sizes will change in proportion if the reader changes the browser's default font size.

Back

What is the effect of the "float: left" style specification?

Front

The object being floated is on the left and text flows around it on the right.

Back

What are the three sources of style sheets?

Front

Author, user, and browser

Back

What does the CSS color property do?

Front

Sets the color of text rendered by the browser and the initial color of borders.

Back

What style specification is used to specify the stacking order of overlapping areas on a Web page?

Front

z-index

Back

What was the motivation for introducing cascading style sheets (CSS) when HTML already contained elements like <i> for controlling display of information?

Front

To provide for separation of display from structure of documents.

Back