Name: 
 

IT125SS17 Study Guide Web Promotion, JavaScript, Server-side Coding - Chaps 13-



ins002-1.jpgThis Study Guide is organized with questions grouped as follows: MC and Matching.  The questions are drawn from questions at the end of each chapter, the author’s Test Bank, and lecture. 
This constitutes the “test bank” for Quiz 5.
Select answers using the pull-down windows in the boxes to left of each question (do not use roller-wheel on mouse as it will shift answers). 
All questions have equal weight. 
When completed, select the "Check Answers" button at the bottom of the Webpage.  Results are returned only to you.  You may change selections anytime prior to completing Study Guide and you may take as often as desired.

Multiple Choice
Identify the letter of the choice that best completes the statement or answers the question.
 

 1. 

Chapter 13 Multiple Choice Questions
Select the component(s) of a search engine.
a.
robot
b.
database
c.
search form
d.
None of the above.
 

 2. 

Select the true statements about meta tags.
a.
They may be placed anywhere in the web page.
b.
They may be used by search engines to index a web page database
c.
They must be present or the page will not be indexed.
d.
All of the above are true.
 

 3. 

The first step in submitting your web site to search engines and search directories is to___.
a.
join an affiliate program
b.
visit the search engine and submit your web site
c.
prepare your pages for search engines by adding keyword and description meta
d.
None of the above.
 

 4. 

Search indexes are different from search engines because_____.
a.
Search engines are larger
b.
Search indexes have a human being review your web site
c.
Search engines are easier to use
d.
None of the above.
 

 5. 

A rating determined by a search engine based on the number of links to a particular site and the qualities of those links is called ________.
a.
link checking
b.
reciprocal linking
c.
link popularity
d.
None of the above
 

 6. 

Information about which keywords are bringing visitors to your website can be found in the _______.
a.
web position log
b.
website log
c.
search engine file
d.
None of the above
 

 7. 

__________ are the most popular method used by visitors to find web sites.
a.
banner ads
b.
hearing about web sites on TV
c.
search engines
d.
personal recommendations
 

 8. 

Using ________ as a promotion method will bring return visitors to your site.
a.
newsletters
b.
banner exchanges
c.
TV ads
d.
None of the above.
 

 9. 

Banner ads benefit websites by________.
a.
bringing many new visitors to your site
b.
increasing awareness of the website
c.
both bringing many new visitors and increasing awareness of the site
d.
None of the above.
 

 10. 

Select the best description of an “impression“.
a.
a search form is completed
b.
a visitor recommends your site to a friend
c.
your site is listed in a search engine
d.
your ad is viewed by a website visitor
 

 11. 

The ability to keep web page visitors at your site is called _______.
a.
link popularity
b.
stickiness
c.
attention
d.
None of the above
 

 12. 

Website promotion methods include:
a.
banner ads
b.
word of mouth
c.
newsletters
d.
all of the above
 

 13. 

Use(s) for meta tags include:
a.
to indicate that a web page should not be indexed
b.
to indicate the character encoding for a web page
c.
to all of the above indicate a description of a website
d.
all of the above
 

 14. 

Other parts of a web page that a search engine robot may examine include:
a.
page title
b.
text in headings and paragraphs
c.
links
d.
all of the above
 

 15. 

Select the true statement below.
a.
Paying to be listed preferentially in a search engine is considered by many organizations to be a justified cost of doing business.
b.
Submit your site to search engines before it is finished.
c.
It only takes a few minutes to be listed in a search engine.
d.
All of the statements above are true.
 

 16. 

Click thru rate (CTR) is the _____
a.
ratio of the number of times an ad is clicked to the number of times it is viewed.
b.
the rate you pay for each time a visitor clicks on your ad.
c.
the rate you pay for each time a visitor clicks on your ad and makes a purchase.
d.
the number of new visitors to your site each day
 

 17. 

Select the true statement below.
a.
Using tables can improve your search engine optimization.
b.
Content contained within Flash media is invisible to search engines.
c.
Your HTML code must be valid in order to be listed in search engine results.
d.
Descriptive page titles and heading tags with appropriate keywords can help with search engine optimization.
 

 18. 

The term _________________ refers to configuring a web page so that it can be easily linked to from social bookmarking and social networking sites.
a.
search engine optimization
b.
social media optimization
c.
Web analytics
d.
search engine results page
 

 19. 

The measurement, collection, analysis and reporting of Internet data for the purposes of understanding and optimizing web usage is called _________________.
a.
search engine optimization
b.
social media optimization
c.
Web analytics
d.
search engine results page
 

 20. 

A two-dimensional barcode in a square pattern that is readable by a smartphone camera scan application.
a.
URL
b.
domain name
c.
QR code
d.
HTML code
 

 21. 

The _________ element provides for nested browsing.
a.
object
b.
source
c.
canvas
d.
iframe
 

 22. 

Chapter 13 Text Multiple Choice Questions
Which of the following contains information about which keywords are bringing visitors to your website?
a.
web position log
b.
website log
c.
search engine file
d.
none of the above
 

 23. 

In which section of a web page should meta tags be placed?
a.
head
b.
body
c.
comment
d.
CSS
 

 24. 

What is a first step for search engine optimization?
a.
Join an affiliate program.
b.
Start a blog.
c.
Add a description meta tag to each page.
d.
Create a QR code.
 

 25. 

The robot, database, and search form are components of which of the following?
a.
search directory
b.
search engine
c.
both search directories and search engines
d.
search engine optimization
 

 26. 

In promote another site’s products or services in exchange for a commission?
a.
newsletter
b.
affiliate program
c.
search engine optimization
d.
stickiness
 

 27. 

Which of the following is the most popular method used by visitors to find websites?
a.
newsletter
b.
hearing about websites on television
c.
search engines
d.
personal recommendations
 

 28. 

Which of the following is a rating determined by a search engine based on the number of links to a particular site and the qualities of those links?
a.
line checking
b.
reciprocal linking
c.
link popularity
d.
none of the above
 

 29. 

Which of the following is a promotion method whose main purpose is to bring return visitors to your website?
a.
newsletter
b.
banner exchange
c.
TV ad
d.
none of the above
 

 30. 

Typically, how long can it take between the time you submit your website and the time it is listed in a search engine?
a.
several hours
b.
several weeks
c.
several months
d.
a year
 

 31. 

Which of the following is the main benefit of a banner ad?
a.
bringing many new visitors to your site
b.
increasing awareness of the website
c.
higher ranking in search engine results page
d.
none of the above
 

 32. 

Chapter 14 Multiple Choice Questions
JavaScript can be described as:
a.
an object-oriented scripting language
b.
an easy form of Java
c.
a language created by Microsoft
d.
none of the above
 

 33. 

Select the true statement from those listed below.
a.
<script> tags are used to contain JavaScript statements
b.
<script> tags can be placed in both the header and the body section of a web page
c.
<script> tags are read by the browser
d.
All of the statements above are true
 

 34. 

In the context of web page interactivity, a(n) _________ can be described as an action taken by the user.
a.
object
b.
event
c.
tag
d.
browser
 

 35. 

Select the technology that was developed by a joint effort between Netscape and Sun Microsystems.
a.
Java
b.
JavaScript
c.
Flash
d.
Ajax
 

 36. 

The _______ defines every object and element on a web page.
a.
Document Object Model
b.
Browser
c.
Operating System
d.
None of the above
 

 37. 

A ______ is an attribute or characteristic of an object.
a.
property
b.
method
c.
variable
d.
function
 

 38. 

Select the valid JavaScript variable name below:
a.
prompt
b.
myName
c.
my Name
d.
visitor’sName
 

 39. 

A _____ is an action that can be performed with an object.
a.
property
b.
method
c.
variable
d.
function
 

 40. 

A ______ is a reusable block of JavaScript statements.
a.
property
b.
method
c.
variable
d.
function
 

 41. 

How many scripts can be embedded in an XHTML document?
a.
Not more than one
b.
Two scripts
c.
One script in the header section and one script in the body section
d.
As many as you need
 

 42. 

The __________ event handler is triggered when the visitor places their mouse on an object.
a.
onclick
b.
onmouseout
c.
onmouseover
d.
onmousehover
 

 43. 

The _____ method displays a message to the user and contains one button.
a.
prompt()
b.
alert()
c.
message()
d.
none of the above
 

 44. 

Use the ____________ method to write text to a web page.
a.
document.write()
b.
document.code()
c.
document.text()
d.
document.new()
 

 45. 

The _______________property can set the background color of the document.
a.
document.background
b.
document.bgcolor
c.
document.color
d.
document.backgroundcolor
 

 46. 

A function can ______ a value to indicate success or failure.
a.
pass
b.
set
c.
return
d.
none of the above
 

 47. 

Select the comparison operator to use when testing a condition for equality.
a.
=
b.
==
c.
<>
d.
none of the above
 

 48. 

The code to access the contents of an input box named email on a form is______.
a.
document.forms[0].email
b.
document.forms[0].email.value
c.
document.forms[0].email.contents
d.
document.forms[0].email.data
 

 49. 

Which of the following will assign the value “Smith” to the variable customerName?
a.
customerName = > “Smith”;
b.
customerName < = “Smith”;==
c.
customerName = = “Smith”;<>
d.
customerName = “Smith”;
 

 50. 

A __________ is a term used to describe a select list that allows the user to select an option to load another web page.
a.
navigation
b.
page header
c.
jump menucustomerName = = “Smith”;<>
d.
none of the above
 

 51. 

Select an appropriate use of JavaScript:
a.
form validation
b.
sending e-mail
c.
both a and b
d.
none of the above
 

 52. 

jQuery is__________.
a.
an application developed by Microsoft
b.
a free open-source JavaScript library
c.
an application developed by Adobe
d.
none of the above
 

 53. 

Select the jQuery code that will set the background color of all li elements to green.
a.
$('li').style('background-color', 'green');
b.
$('li').html('background-color', 'green');
c.
$('li').attr('background-color', 'green');
d.
$('li').css('background-color', 'green');
 

 54. 

When using jQuery, what is used to determine when the web page’s DOM has been fully loaded by the browser?
a.
$(document).onload()
b.
$(document).ready()
c.
$(html).loaded()
d.
$(document).onload()
 

 55. 

Which jQuery method has the purpose of getting or setting the value of an HTML attribute?
a.
attr()
b.
html()
c.
css()
d.
style()
 

 56. 

Select the true statement:
a.
You need to purchase the jQuery library.
b.
The jQuery library is available online through a CDN
c.
All browsers automatically include the jQuery library
d.
None of the above statements is true.
 

 57. 

Chapter 14 Text Multiple Choice Questions
Which of the following is a technique for creatingre usable JavaScript code?
a.
define a function
b.
create a script block
c.
define an if statement
d.
use an onclick event handler
 

 58. 

When the user positions the mouse pointer on a link, the browser detects which one of these events?
a.
mouseon
b.
mousehover
c.
mouseover
d.
mousedown
 

 59. 

The browser detects which one of these events when the user had been hovering over a link ?
a.
mouseoff
b.
mouseout
c.
mouseaway
d.
mouseup
 

 60. 

Which method of the window can be used to display a message to the user?
a.
alert()
b.
message()
c.
status()
d.
display()
 

 61. 

Which of the following will assign the value 5 to the variable productCost?
a.
productCost => 5;
b.
productCost <= 5;
c.
productCost == 5;
d.
productCost = 5;
 

 62. 

A condition (productCost > 5) is used in an if statement. Which of the following values of productCost will result in this condition being evaluated as true?
a.
4
b.
5
c.
5.1
d.
none of the above
 

 63. 

Which of the following can describe JavaScript as used in a web page?
a.
a scripting language
b.
markup language
c.
an easy form of Java
d.
a language created by Microsoft
 

 64. 

Which of the following is the code for accessing the contents of an input box named userData on a form?
a.
document.forms[0].userData
b.
document.forms[0].userData.value
c.
document.forms[0].userData.contents
d.
document.forms[0].userData.data
 

 65. 

Which of the following is the code to invoke a function called isValid() when the user clicks the submit button?
a.
<input type="button" onmouseout="isValid();">
b.
<input type="submit" onsubmit="isValid();">
c.
<form method="post" action="URL" onsubmit="return isValid();">document.forms[0].userData.contents
d.
<form method="post" action="URL" onclick="return isValid();">
 

 66. 

A web page document is considered to be which of the following in the Document Object Model?
a.
object
b.
property
c.
methodd. attribute
d.
None of the above
 

 67. 

What does the jQuery code snippet $('div') select? 
a.
the element assigned to an id named div
b.
all div elements
c.
the first div element
d.
the last div element
 

Matching
 
 
Chapter 13 Match each sentence with the word or phase that best completes the sentence.
a.
The ability to keep web page visitors at your site is called _______________.
b.
Use _______________ to indicate that you do not want a web page to be indexed.
c.
Frequently used information research resources are _______________.
d.
Two-dimensional barcodes that can be scanned by smartphones to access a website are called _______________ codes.  
 

 68. 

stickiness
 

 69. 

<meta name="robots" description="noindex, nofollow">
 

 70. 

search engines
 

 71. 

QR codes
 
 
Chapter 14 Match each sentence with the word or phase that best completes the sentence.
a.
The comparison operator that checks for the exactly equal to condition is _______________.
b.
Use the _______________ jQuery method to configure the value of HTML attributes.
c.
The _______________ object is assumed to exist and it is not necessary to include it as an object when referring to its methods and properties.
d.
The jQuery _______________ is triggered when the DOM of a web page is completely loaded by a browser.
e.
A form control button can be used with a(n) _______________ event handler to run a script when the user clicks a button.
f.
jQuery is a(n) _______________ library.
g.
Use the _______________ jQuery method to configure CSS styles.
 

 72. 

= =
 

 73. 

attr()
 

 74. 

windowc
 

 75. 

ready eventd
 

 76. 

onclick
 

 77. 

JavaScript
 

 78. 

css()
 



 
Check Your Work     Start Over