CIS108- Final Exam Review

Réussis tes devoirs et examens dès maintenant avec Quizwiz!

padding

Cell _____ specifies the space between the cell content and its borders. border margin padding None of the above.

function

A JavaScript _____ is a block of JavaScript code, that can be executed when "called" for. event function method None of the above.

client

A computer that requests a web page from a web server is called a ______. browser client customer requester

<dl>

A description list starts with the _____ tag. <dd> <dl> <dt> None of the above.

path

A file _____ describes the location of a file in a web site's folder structure. extension name path None of the above.

<td>

A table data cell is defined with the _____ tag. <data> <table data> <td> None of the above.

<th>

A table header is defined with the _____ tag. <table header> <th> <thead> None of the above.

block-level

A(n) _____ element always starts on a new line and takes up the full width available (stretches out to the left and right as far as it can). block-level inline site-level None of the above.

inline

A(n) _____ element does not start on a new line and only takes up as much width as necessary. block-level inline site-level None of the above.

absolute

A(n) _____ file path is the full URL to an internet file. absolute extended relative None of the above.

relative

A(n) _____ file path points to a file _____ to the current page. absolute extended relative None of the above.

border-bottom

Add the _____ property to <th> and <td> for horizontal dividers: border-bottom bottom-border border-horizontal horizontal-border

>

All HTML tags end with ) ] > }

nested

An HTML list that is inside another HTML list is called a(n) _____ list. inserted mixed nested HTML validation rules do not allow a list inside another list.

<table>

An HTML table is defined with the _____ tag. <t> <table> <tb> None of the above.

external

An _____ style sheet is contained in a separate file than an HTML document. external inline internal All of the above.

internal

An _____ style sheet is contained in the head an HTML document. external inline internal All of the above.

#

An id selector begins with a _____ symbol. # : . None of the above.

<ol>

An ordered list starts with the _____ tag. <li> <ol> <ul> None of the above.

<ul>

An unordered list starts with the _____ tag. <li> <ol> <ul> None of the above.

Both bold and centered.

By default, table headings are bold and centered. bold centered Both bold and centered. None of the above.

True

By default, the vertical alignment of the content in a table is middle True False

All of the above.

CSS selectors can be used to "find" (or select) HTML elements based on _____. class element name id All of the above.

Cascading Style Sheets

CSS stands for Cascading Style Sheets Cascading Style Syntax Continuously Shifting Standard None of the above.

nth-child()

For zebra-striped tables, use the _____ selector and add a background-color to all even (or odd) table rows: even-child() nth-child() odd-child() Both A & C.

the contents between a start tag and an end tag, including the tags

HTML elements are _____. another name for HTML tags defined by the <element> tag the contents between a start tag and an end tag the contents between a start tag and an end tag, including the tags

</

HTML end tags start with a _____ symbol. <? (/ [/ </

<h1> to <h6> tags

HTML headings are defined by _______. <h1> to <h6> tags <heading1> to <heading6> tags <header1> to <header6> tags None of the above.

<

HTML start tags start with a _____ symbol. ( [ < }

empty

HTML tags that only have a start tag are referred to as _____ elements. empty lonely unary None of the above.

True

If the table has collapsed borders, border-spacing has no effect. True False

True

If you do not specify a border for the table, it will be displayed without borders. True False

border-collapse

If you want the borders to collapse into one border, add the CSS _____ property. border-collapse collapse collapse-border None of the above.

A border that goes around the padding.

In CSS, Border refers to: A border that goes around the padding. Clears an area around the content. Clears an area outside the border. Where text and images appear

Where text and images appear

In CSS, Content refers to: A border that goes around the padding. Clears an area around the content. Clears an area outside the border. Where text and images appear

Clears an area around the content

In CSS, Padding refers to: A border that goes around the padding. Clears an area around the content. Clears an area outside the border. Where text and images appear

box model

In CSS, the term "_____" is used when talking about design and layout. box model crate model flow model None of the above.

script

In HTML, JavaScript code must be inserted between _____ tags. script style src None of the above.

variables

In JavaScript, _____ are used to store data values. keywords literals variables None of the above.

=

In JavaScript, an _____ is used to assign values to variables. = == === All of the above.

//

In JavaScript, single line comments start with _____. // <!-- !! None of the above.

1010

In JavaScript, the result of 10 + '10' will be: An error. 1010 20 None of the above.

20

In JavaScript, the result of 10 + 10 will be: An error. 1010 20 None of the above.

9cat

In JavaScript, the result of 4 + 3 + 2 + ' cat' will be An error. 432cat 9cat None of the above.

at the root of the current site

In this example, the file path points to a file in the images folder located _____ : Example: <img src="/images/picture.jpg" alt="Mountain"> in the current folder one level above the current folder at the root of the current site None of the above.

in the folder one level above the current folder

In this example, the file path points to a file in the images folder located _____: Example: <img src="../images/picture.jpg" alt="Mountain"> in the current folder in the folder one level above the current folder at the root of the current site None of the above.

in the current folder

In this example, the file path points to a file in the images folder located _____: Example: <img src="images/picture.jpg" alt="Mountain"> in the current folder in the folder one level above the current folder at the root of the current site None of the above.

window.alert()

JavaScript can write into an alert box, element, using _____. console.log() document.write() innerHTML window.alert()

document.write()

JavaScript can write into the HTML output, using _____. console.log() document.write() innerHTML window.alert()

console.log()

JavaScript can write into the browser console, using _____. console.log() document.write() innerHTML window.alert()

Both A & B.

JavaScript identifiers are _____. case sensitive names Both A & B. None of the above.

keywords

Javascript reserved words that cannot be used as names for variables are called _____. JSwords keywords scriptwords None of the above.

hyperlinks

Links in HTML are called _____. anchors cyberlinks hyperlinks URLs

name

Radio button elements in the same group must share the same _____ attribute. id name value None of the above.

</head>, </html>

The <body> tags will come right after the end _____ tag, and end just before the end _____ tag. </head>, </html> </html>, </head> </title>, </head> </title>, </html>

True

The <caption> tag must be inserted immediately after the <table> tag. True False

selector, declaration

The CSS rule-set consists of a(n) _____ and a(n) _____. attribute, selector declaration, attribute selector, attribute selector, declaration

<abbr>

The HTML <abbr> element defines an abbreviation or an acronym. <abbr> <abbrev> <acronym> None of the above.

<blockquote>

The HTML _____ element defines a section that is quoted from another source. <blockquote> <q> <quote> None of the above.

<q>

The HTML _____ element defines a short quotation. <blockquote> <q> <quote> None of the above.

method

The _____ attribute specifies the HTTP method (GET or POST) to be used when submitting the form data action method target None of the above.

target

The _____ attribute specifies where to open the linked document. href target title None of the above.

select

The _____ element defines a drop-down list: checkbox radio select None of the above.

textarea

The _____ element defines a multi-line input field. form text textarea None of the above.

<div>

The _____ element is often used as a container for other HTML elements. <cite> <div> <span> None of the above.

<td>

The _____ elements are the data containers of the table. <td> <th> <tr> None of the above.

option

The _____ elements defines an option that can be selected from a select menu. item option value None of the above.

vertical-align

The _____ property sets the vertical alignment (like top, bottom, or middle) of the content in <th> or <td>. align valign vertical-align None of the above.

height + top padding + bottom padding + top border + bottom border + top margin + bottom margin

The total height of an element should be calculated like this: height + top padding + bottom padding + top border + bottom border height + top padding + bottom padding + top border + bottom border + top margin + bottom margin top border + bottom border + top margin + bottom margin top padding + bottom padding + top border + bottom border + top margin + bottom margin

width + left padding + right padding + left border + right border + left margin + right margin

The total width of an element should be calculated like this: left padding + right padding + left border + right border + left margin + right margin width + left padding + right padding width + left padding + right padding + left border + right border width + left padding + right padding + left border + right border + left margin + right margin

<caption>

To add a caption to a table, use the _____ tag: <c> <cap> <caption> None of the above.

selected

To define a pre-selected option in a select menu, add the _____ attribute to the option: checked selected true None of the above.

id

To define a special style for a special table, add a(n) _____ attribute to the table: class id value None of the above.

colspan

To make a cell span more than one column, use the _____ attribute: cols colspan column-span cspan

rowspan

To make a cell span more than one row, use the _____ attribute: rows rowspan row-span rspan

:hover

Use the _____ selector on <tr> to highlight table rows on mouse over: :hover :mouseover :rollover None of the above.

Hypertext Transfer Protocol

What does HTTP stand for? Hypertext Transfer Protocol Hypertext Transport Protocol HTML Transfer Protocol None of the above

Uniform Resource Locator

What does URL stand for? Uniform Resource Location Unified Resource Locator Uniform Resource Locator None of the above

list-style-type: none;

Which of the following CSS declarations removes the bullets from an unordered list? display: block; list-style-type: none; text-decoration: none; None of the above.

href

Which of the following attributes for a hyperlink is required? href target title All of the above.

Both A and B are required.

Which of the following attributes for an image is not required? alt scr Neither A nor B are required. Both A and B are required.

class

Which of the following attributes may be used to select multiple elements? class id All of the above. None of the above.

<span>

Which of the following is NOT a block element? <footer> <header> <span> None of the above.

the <dx> tag.

Which of the following is NOT a part of a description list? The <dd> tag. The <dl> tag. the <dt> tag. the <dx> tag.

select

Which of the following is NOT an input element? button password select None of the above.

All of the above.

Which of the following is an advantage of placing scripts in an external file? It separates HTML and code It makes HTML and JavaScript easier to read and maintain Cached JavaScript files can speed up page loads All of the above.

All of the above.

Which of the following is an inline element? <a> <cite> <span> All of the above.

<b>

Which of the following is an inline element? <b> <hr> <p> All of the above.

text

Which of the following is an input element? select text textarea All of the above.

All of the above.

Which of the following is an input element? password radio reset All of the above.

<hr>

Which of the following is not a phrase tag? <em> <hr> <strong> All of these are phrase tags.

<ul>

Which of the following is not an empty element? <br> <hr> <ul> All of these are empty elements.

All of the above.

Which of the following is true about the <html> tag? The <html> tag tells the browser that this is an HTML document. The <html> tag represents the root of an HTML document. The <html> tag is the container for all other HTML elements (except for the <!DOCTYPE> declaration). All of the above.

All of the above.

Which of the following is true about the <title> tag? defines a title in the browser toolbar provides a title for the page when it is added to favorites displays a title for the page in search-engine results All of the above.

All of the above.

Which of the following is true about the GET method? Appends form-data into the URL in name/value pairs GET is better for non-secure data, like query strings in Google The default method when submitting form data is GET. All of the above.

HTTP

Which of the following is used to send a request from a client to a web server? HMLP HTML HTTP HTPL

*

Which of the following operators multiplies numbers in JavaScript? % & * /

<title>

Which of the following tags must go in the head element? <body> <h1> <p> <title>

None of these may appear in the <head> element

Which of the following tags must not appear in the <head> element? <body> <h1> <p> None of these may appear in the <head> element

Radio buttons

_____ let a user select ONE of a limited number of choices: Checkboxes Radio buttons Select menus All of the above.

Checkboxes

_____ let a user select ZERO or MORE options of a limited number of choices. Checkboxes Radio buttons Select menus All of the above.

The <!DOCTYPE> declaration

_____ must be the very first thing in your HTML document The <!DOCTYPE> declaration The <head> tag The <html> tag The <title> tag

Semicolons

_____ separate JavaScript statements. Commas Parenthesis Semicolons None of the above.


Ensembles d'études connexes

Chapter 34: The Child with Musculoskeletal or Articular Dysfunction

View Set

Nutritional Therapy for the burn patient.

View Set

Mark Pettitt's Europe Countries and Capitals

View Set

Building Plans and Codes (construction 1)

View Set

US History Chapter 7.3 : A Bloody Conflict

View Set

Core Curriculum for Oncology Nursing Part 2 Ch 7-15

View Set