CSCI 102 FINAL
Which of the following configures a class called side to float to the left?
.side {float: left;}
Choose the correct HTML element to define emphasized text
<em>
Which HTML tag is used to define an internal style sheet?
<style>
Which of the following is a mobile web design best practice?
Configure a single-column page layout.
What does HTML stand for?
Hyper Text Markup Language
Which of these is not a recommended method to obtain graphics for your web site?
Right click and copy a graphic you like from any web site
Which of the following should you do to provide for usability and accessibility?
Supply text descriptions of audio and video files that appear on your web pages.
Which of the following is an open-source video codec?
Theora
Which of the following organizations takes a proactive role in developing recommendations and prototype technologies related to the Web?
World Wide Web Consortium (W3C)
Which of the following would a consistent website design not have?
a different background color on each page
How do you display hyperlinks without an underline?
a {text-decoration:none;}
Select the code that will configure a background image called parchment.gif for a web page using CSS.
body {background-image:url(parchment.gif); }
Which is the correct CSS syntax?
body {color: black;}
Which CSS property controls the text size?
font-size
Which of the following is an example of using a descendant selector to configure the anchor tags within the nav element?
nav a
How can you make a numbered list?
ol
Which of the following is the intended use of tables on web pages?
organizing information
Which HTML attribute is used to define inline styles?
style
Which attribute below can be applied to an anchor tag to open a link in a new browser window?
target
A file that contains a Flash animation uses the ____________________ file extension
.swf
How do you select elements with class name "test"?
.test
Which character is used to indicate an end tag?
/
How do you insert a comment in a CSS file?
/* this is a comment */
Which pseudo-element can be used to generate content that precedes an element?
:before
Which CSS pseudo-class applies to the first element of a specified type?
:first-of-type
How would you link to the named fragment #jobs on the page employ.html from the home page of the site?
<a href="employ.html#jobs">Jobs</a>
Which code provides a hyperlink to an audio file called hello.mp3?
<a href="hello.mp3">Hello (Audio File)</a>
What is the correct HTML for creating a hyperlink?
<a href="http://www.wwu.edu">Western Washington University</a>
Choose the item that creates an image link to the school.htm page when the school.gif graphic is clicked.
<a href="school.htm"><img src="school.gif" alt="school"></a>
Which of the following is the code to invoke a function called isValid() when the user clicks the submit button?
<form method="post" action="URL" onsubmit="return isValid();">
Choose the correct HTML element for the largest heading:
<h1>
The tag used to create a horizontal line on a web page is:
<hr>
Select the code below that associates a favorite icon named favicon.png with a web page document.
<link rel="icon" type="image/png" href="favicon.png">
What is the correct HTML for referring to an external style sheet?
<link rel="stylesheet" type="text/css" href="style.css">
Which HTML tag would configure a scrolling text box with the name "comments", 2 rows, and 30 characters?
<textarea name="comments" rows="2" cols="30"></textarea>
Which HTML tag pair is used to specify table headings?
<th> </th>
Which operator is used to assign a value to a variable?
=
Use of a copyrighted work for purposes such as criticism, reporting, teaching, scholarship, or research is called ____________________.
Fair use
Which of the following statement is true about JavaScript?
JavaScript is an object-based scripting language
Which of the following is a network that covers a small area, such as a group of buildings or campus?
LAN
Who is making the Web standards?
The World Wide Web Consortium
What happens when a browser does not support the video or audio element?
The fallback content, if it exists, will display.
Which of the following should you do when creating text hyperlinks?
Use a key phrase as a hyperlink.
Which attribute of the form element is used to specify the name and location of the script that will process the form field values?
action
How do you write "Hello World" in an alert box?
alert("Hello World");
Which method of the window can be used to display a message to the user?
alert()
A(n) _________________________ is a protocol that allows software components to communicate--interacting and sharing data.
application programming interface (API)
What type of files are .wav, .aiff, .mid, and .au?
audio files
Which CSS property specifies the background color of a table?
background-color
Which property is used to change the background color?
background-color
Use the ________ property to configure rounded corner with CSS.
border-radius
You would like to conduct a survey and ask your web page visitors to indicate the web browsers that they use. Which of the following form controls is best to use for this purpose?
check box
Which of the following properties can be used to clear a float?
clear or overflow
Which CSS property is used to change the text color of an element?
color
What indicates the top-level domain name for the URL http://www.mozilla.com?
com
Which of the following is a technique for creating reusable JavaScript code?
define a function
Which of the following causes an element to display as a block of content with white space above and below?
display: block;
Which of the following is the code for accessing the contents of an input box named userData on a form?
document.forms[0].userData.value
Which of the following is correct to write "Hello World" on the web page?
document.write("Hello World")
Which of the following font units is recommended for mobile display?
em unit
What is the term used to describe a square icon that is associated with a web page and is displayed in the browser address bar or tab?
favicon
Forms contain various types of _______________, such as text boxes and buttons, which accept information from a web page visitor.
form controls
How do you add a background color for all <h1> elements?
h1 {background-color:#FFFFFF;}
Use the HTML5 ______ element to configure a web page heading area.
header
Which of the following are the three most common methods for organizing websites?
hierarchical, linear, and random
The _____ pseudo-class can be used to modify the display of a hyperlink when a mouse pointer passes over it
hover
Which of the following attributes defines a fragment identifier on a page?
id
A(n) ________ is an image that is configured so that parts of the image can be used as one or more hyperlinks.
image map
Which of the following is the attribute used to indicate whether the style sheet is for printing or screen display?
media
When the user positions the mouse pointer on a link, the browser detects which one of these events?
mouseover
Which CSS property specifies the distance between the cell text and the cell border?
padding
The box model consists of a content area surrounded by:
padding, border, and margin
Which of the following is a container element used to configure responsive images?
picture
You work on a JavaScript project. How do you prompt users with messages and at the same requesting user inputs?
prompt()
Which of the following is an image file that contains multiple small graphics?
sprite
Which of the following form controls would be appropriate for an area that your visitors can use to type in their e-mail address?
text box
The __________ property configures a shadow effect on the text displayed within an element.
text-shadow
Which property provides a way for you to rotate, scale, skew, or move an element?
transform
The file extensions .webm, .ogv, and .m4v indicate types of ____________________ files.
video
Which meta tag is used to configure display for mobile devices?
viewport