COSC 109 FINAL EXAM

Ace your homework & exams now with Quizwiz!

Documents that are written in a language called HTML. Which of the following terms match the description above? A.) Web pages B.) HTML C.) HTML Markup tags D.) Web browsers E.) Web page editors F.) HTML documents G.) URL H.) XHTML I.) Cascading Style Sheets (CSS) J.) JavaScript K.) HTML 5

F AND K

Fill in the blanks for the HTML code below to embed an image called logo.jpg on a Web page. Suppose logo.jpg is in the same folder as the HTML document that embeds it. <___ ___ = "___" ___>

<img src="logo.jpg" />

Fill in the blanks for the HTML code to create a list as shown. 1. Preheat oven to 450 degrees. 2. Heat butter and oil in a large saucepan. 3. Cook the shrimp for 10 minutes. <___> <___>Preheat oven to 450 degrees.<___> <___>Heat butter and oil in a large saucepan.<___> <___>Cook the shrimp for 10 minutes.<___> <___>

<ol> <li>Preheat oven to 450 degrees.</li> <li>Heat butter and oil in a large saucepan.</li> <li>Cook the shrimp for 10 minutes.</li> <ol>

Fill in the blanks for the HTML code to create a list as shown. Elephants Tigers Frogs <___> <___>Elephants<___> <___>Tigers<___> <___>Frogs<___> <___>

<ul> <li>Elephants</li> <li>Tigers</li> <li>Frogs</li> <ul>

<p id="introduction">This is a paragraph.</p> In the example above, ___ is a tag and ___ is its attribute. A. <p>; id B. id; <p>

A

A difference between a function and a procedure is that a ______ returns a value to the calling statement. A. function B. procedure

A

A poster image is an image that is shown in place of the video ___. A. before an HTML5 video starts B. as a fallback for browsers that do not support HTML5 video

A

If there are multiple videos on a page, you should avoid turning on ___ to reduce network traffic. A. use the preload attribute B. use the controls attribute C. use the autoplay attribute D. use the loop attribute E. use the poster attribute F. set up a source list using <source> elements

A

Which of the following is correct about cases for the tag and attribute names in HTML5? A. No restriction on cases B. All lowercase C. All uppercase D. Capitalized

A

Which of the following is correct about the use of end tags in HTML5? A. Not required. B. Required.

A

Which of the following is correct about the use of quotation marks for the attribute value in HTML5? A. No quotation marks are required. B. The value has to be enclosed in quotation marks.

A

___ are markup codes in an HTML document that tell the Web browser how to format the text when displaying it. A. Tags B. Attributes

A

___ are used to store values, which can be updated and retrieved when the program is running. A. variable B. function or procedure C. argument D. statement E. data type

A

___ can be used to make the program execute nonsequentially. A. if statements B. Loops

A and B

sum = addTogether(2,5); By looking at the previous statement, you can tell that addTogether() ___. A. definitely returns a value B. does not return a value C. takes arguments D. does not take arguments E. It is not possible to tell whether or not it returns a F. value F. It is not possible to tell whether or not it takes arguments.

A and C

sum = addTogether(); By looking at the previous statement, you can tell that addTogether() ___. A. definitely returns a value B. does not return a value C. takes arguments D. does not take arguments E. It is not possible to tell whether or not it returns a F. value F. It is not possible to tell whether or not it takes arguments.

A and D

True/False: HTML documents are plain text files.

True

True/False: A function is executed only when it is called within the program.

True

True/False: Another difference between a function and a procedure is that one takes parameters, whereas the other does not.

True

True/False: If it is strict data typing, a programming language requires that you explicitly declare the data type of a variable when the variable is first created.

True

True/False: JavaScript syntax is case-sensitive.

True

HTML documents are plain text files. So how do they make the Web browser to display text formatting with certain page layout?

Use of HTML which tells the browser the structure of the page such as text, font and page layout.

To declare a constant, you use the keyword ___.

const

Which of the following is a valid variable name in JavaScript? A. 3_high_score B. high score C. high_score D. high-score E. highScore

C and E

CSS stands for ___.

Cascading Style Sheets

Application programs such as Firefox, Internet Explorer, Safari, Chrome, and Opera. Which of the following terms match the description above? A.) Web pages B.) HTML C.) HTML Markup tags D.) Web browsers E.) Web page editors F.) HTML documents G.) URL H.) XHTML I.) Cascading Style Sheets (CSS) J.) JavaScript K.) HTML 5

D

Application programs such as Adobe Dreamweaver. Which of the following terms match the description above? A.) Web pages B.) HTML C.) HTML Markup tags D.) Web browsers E.) Web page editors F.) HTML documents G.) URL H.) XHTML I.) Cascading Style Sheets (CSS) J.) JavaScript K.) HTML 5

E

The type of the value is called a(n) ___. A. variable B. function or procedure C. argument D. statement E. data type

E

To display an image in place of the video before it starts, ___. A. use the preload attribute B. use the controls attribute C. use the autoplay attribute D. use the loop attribute E. use the poster attribute F. set up a source list using <source> elements

E

addTogether(); By looking at the previous statement, you can tell that addTogether() ___. A. definitely returns a value B. does not return a value C. takes arguments D. does not take arguments E. It is not possible to tell whether or not it returns a F. value F. It is not possible to tell whether or not it takes arguments

E and D

XHTML stands for ___.

Extensible Hypertext Markup Language

Describe briefly how XHTML is different from HTML in terms of each of the following: i.) Tag pairing ii.) Cases of tags iii.) Tag nesting iv.) Root element of a page v.) DOCTYPE declaration

i.) Any start tag must be paired with an end tag ii.) Lowercase iii.) Nested tags be properly closed iv.) Must have one root, <html> v.) Must have DOCTYPE declaration in before the root element

if (a or b = 0) { c += 1; } The previous if statement is supposed to do the following: If both variables a and b are greater than 0, then increment the value of the variable c by 1. However the statement contains errors. Correct the errors. (Assume the variables have been declared.)

if (a==0 || b == 0) { c += 1; }

if (a and b > 0) { c += 1; } The previous if statement is supposed to do the following: If both variables a and b are greater than 0, then increment the value of the variable c by 1. However the statement contains errors. Correct the errors. (Assume the variables have been declared.)

if(a > 0 && b > 0) { c+=1; }

If your video/audio editor does not support exporting all or any of the HTML5 video/audio formats, how do you create all the HTML5 video/audio formats for your video/audio?

1. Export your video/audio into a common format 2. Convert the exported video/audio into HTML5 formats using the video/audio conversion tools

Fill in the blanks for the HTML code below to create a link to your favorite Web site. Use a valid URL. <___ ___ = "___">My Favorite Web site<___>

<a href="google.com"> My Favorite Web site </a>

The ___ tag is used to create a line break—to force a new line without starting a new paragraph. By default, the line created using this tag has ______-line spacing.

<br />, single

The ___ tag is used to create a heading 1 element.

<h1>

HTML documents are ___. A. text files B. JPG files C. PSD files D. MP3 files

A. Text files

A(n) ___ contains a block of program instructions, which form a discrete unit with a name. A. variable B. function or procedure C. argument D. statement E. data type

B

JavaScript is a ___ language. A. strictly typed B. loosely typed

B

The statement in JavaScript ends with a ___. A. colon (:) B. semicolon (;) C. closing parenthesis ()) D. closing curly brace (})

B

To display the controller for the video or audio, ___. A. use the preload attribute B. use the controls attribute C. use the autoplay attribute D. use the loop attribute E. use the poster attribute F. set up a source list using <source> elements

B

Values passed into functions or procedures are called ___. A. variable B. argument C. statement D. data type

B

Which of the following is correct about HTML5? Three doctypes: Strict, Transitional, and Frameset Only one simplified doctype declared like this: <!DOCTYPE HTML>

B

Which of the following is correct character encoding declaration in HTML5? A. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> B. <meta charset="UTF-8" />

B

___ specify properties of the element that is marked up by the ___. A. Tags; attribute B. Attributes; tag

B

addTogether(2,5); By looking at the previous statement, you can tell that addTogether() ___. A. definitely returns a value B. does not return a value C. takes arguments D. does not take arguments E. It is not possible to tell whether or not it returns a F. value F. It is not possible to tell whether or not it takes arguments.

B and C

In the HTML code: <p>This is a paragraph.</p> <p> is the __, and </p> is the ___. The text "This is a paragraph." is the ___. A.) element content; start tag; end tag B.) element content; end tag; start tag C.) start tag; end tag; element content D.) start tag; element content; end tag E.) end tag; start tag; element content F.) end tag; element content; start tag

C

Special codes that tell the Web browser how to display the HTML document. Which of the following terms match the description above? A.) Web pages B.) HTML C.) HTML Markup tags D.) Web browsers E.) Web page editors F.) HTML documents G.) URL H.) XHTML I.) Cascading Style Sheets (CSS) J.) JavaScript K.) HTML 5

C

To provide multiple video or audio sources for different browsers, ___. A. use the preload attribute B. use the controls attribute C. use the autoplay attribute D. use the loop attribute E. use the poster attribute F. set up a source list using <source> elements

F

True/False: A function definition is executed automatically when the program runs.

False

True/False: The operator = has the same meaning as the mathematical equal sign (=).

False

<table> <tr> <td>Elephants</td> <td>Tulips</td> </tr> <tr> <td>Tigers</td> <td>Roses</td> </tr> </table>

Fill in the blanks for the HTML code to create a table as shown but without a table border. <table> <tr> <td>___</td> <td>___</td> <___> <tr> <td>___</td> <td>___</td> <___> <___>

mocha-java.html

For the site example shown here, to add a link on the page french-roast.html (source page) to link to the Web page mocha-java.html (target page), the document-relative file path is ___ .

../../images/logo.jpg

For the site example shown here, to embed the image logo.png (target page) on the Web page french-roast.html, the document-relative file path is ___ .

images/logo.png

For the site example shown here, to embed the image logo.png (target page) on the homepage index.html (in the my-site folder), the document-relative file path is ___ .

A standard address for Web pages and other resources on the World Wide Web. Which of the following terms match the description above? A.) Web pages B.) HTML C.) HTML Markup tags D.) Web browsers E.) Web page editors F.) HTML documents G.) URL H.) XHTML I.) Cascading Style Sheets (CSS) J.) JavaScript K.) HTML 5

G

Intended to be a replacement for HTML and has stricter rules than HTML. Which of the following terms match the description above? A.) Web pages B.) HTML C.) HTML Markup tags D.) Web browsers E.) Web page editors F.) HTML documents G.) URL H.) XHTML I.) Cascading Style Sheets (CSS) J.) JavaScript K.) HTML 5

H

HTML stands for ___.

Hypertext Markup Language

Style sheets that define styles to display HTML elements. Multiple of such style sheets can be combined. Which of the following terms match the description above? A.) Web pages B.) HTML C.) HTML Markup tags D.) Web browsers E.) Web page editors F.) HTML documents G.) URL H.) XHTML I.) Cascading Style Sheets (CSS) J.) JavaScript K.) HTML 5

I

Name two fallback strategies for HTML5 video and audio to provide alternatives for browsers that do not support HTML5 video and audio.

Include links for video download Use an image

A scripting language for Web pages. Which of the following terms match the description above? A.) Web pages B.) HTML C.) HTML Markup tags D.) Web browsers E.) Web page editors F.) HTML documents G.) URL H.) XHTML I.) Cascading Style Sheets (CSS) J.) JavaScript K.) HTML 5

J

Currently the newest standard of HTML. Which of the following terms match the description above? A.) Web pages B.) HTML C.) HTML Markup tags D.) Web browsers E.) Web page editors F.) HTML documents G.) URL H.) XHTML I.) Cascading Style Sheets (CSS) J.) JavaScript K.) HTML 5

K

For the URL: http://www.schoolname.edu/departments/art/index.html a.) The domain name of the Web server is ___. b.) This URL is a Web address of a file named ___. c.) This file is located in the folder named ___, which is inside another folder named ___.

a. www.schoolname.edu b. index.html c. art, departments

To define a function, you use the keyword ___.

function

Fill in the correct start tags and end tags to create a basic HTML document. <___> <___> <___>This is a title.<___> <___> <___> This is the content of the Web page. <___> <___>

html head title, /title /head body /body /html

To declare a variable, you use the keyword ___.

var

What are the 5 new features of HTML5 that are overviewed in this chapter?

video and audio tags content-specific tags tags for form elements canvas element storage of user data


Related study sets

Chapter 8 Lifting and Moving Patients

View Set

Nrs 111 Chronic Neuro- NCLEX Questions

View Set

Revolution, Revolution, Revolution

View Set

Chapter 7- LTM: Encoding, Retrieval, and Consolidation

View Set

adolescent psych practice questions exam 2

View Set

Chapter 12: Developing an Effective Business Plan

View Set

Cuestionario 4: La comprensión e interpretación en las ciencias sociales

View Set