

//Enter total number of questions:
var totalquestions=10

//Enter the solutions corresponding to each question:
var correctchoices=new Array()
correctchoices[1]='c' //question 1 solution
correctchoices[2]='d' //question 2 solution, and so on.
correctchoices[3]='a'
correctchoices[4]='a'
correctchoices[5]='a'
correctchoices[6]='d'
correctchoices[7]='d'
correctchoices[8]='d'
correctchoices[9]='b'
correctchoices[10]='d'

/////Don't edit beyond here//////////////////////////

function gradeit(){
var incorrect=null
for (q=1;q<=totalquestions;q++){
	var thequestion=eval("document.myquiz.question"+q)
	for (c=0;c<thequestion.length;c++){
		if (thequestion[c].checked==true)
		actualchoices[q]=thequestion[c].value
		}
		
	if (actualchoices[q]!=correctchoices[q]){ //process an incorrect choice
		if (incorrect==null)
		incorrect=q
		else
		incorrect+="/"+q
		}
	}

if (incorrect==null)
incorrect="a/b"
document.cookie='q='+incorrect
if (document.cookie=='')
alert("Your browser does not accept cookies. Please adjust your browser settings.")
else
window.location="results.shtml"
}


function showsolution(){
var win2=window.open("","win2","width=600,height=850, scrollbars")
win2.focus()
win2.document.open()
win2.document.write('<title>Solution</title>')
win2.document.write('<body bgcolor="#FFFFFF">')
win2.document.write('<center><font face=verdanna,arial, helvetica size=4><b>Solution To The Praxis Internet IQ Quiz</b></font></center><P>')
win2.document.write('<center><font face="Verdanna,arial">')
for (i=1;i<=totalquestions;i++){
for (temp=0;temp<incorrect.length;temp++){
if (i==incorrect[temp])
wrong=1
}
if (wrong==1){
win2.document.write("Q "+i+"="+correctchoices[i].fontcolor("red")+"<br>")
wrong=0
}
else
win2.document.write("Q "+i+"="+correctchoices[i]+"<br>")
}
win2.document.write('</center></font>')
win2.document.write("<p align='left'><font face=verdanna,arial, helvetica size=2><b>Note:</b> The solutions in red are the ones to the questions you had incorrectly answered.<BR><P>1) What organization developed the foundation of the Internet?<BR><B>A: The US military's ARPA was formed to create better communication between man and computers. It was initiated under the command of president Dwight Eisenhower who wanted to compete with the Russians in technology after they launched Sputnik into outer space in 1957. The ARPA branch of the military was later changed to the DARPA as we know it today. Visit www.darpa.mil for further information.</B><BR><P>2) The first email program was written in:<BR><B>A: The first email program was written in 1972 by a member of the ARPA. It created the first open person-to-person message communication with computers.</b><br><P>3) What percentage of the US population utilizes the Internet?<BR><B>74% of the US population utilizes the Internet.</B><BR><P>4) 2% is an accurate clickthrough rate for a: <BR><B>A: Business-to-business email campaigns have an approximately 2% clickthrough rate. If you're getting more than that you are doing something right!<BR><P></B> 5) It took 38 years for radio to reach a market of 50 million people. It took 13 years for television to do the same. How many years did it take the Internet?<BR><B>A: It only took 4 years for the Internet to reach 50 million people.</B><br><P>6) In 2006 there were 2.7 billion searches per month on Google.<BR>How many monthly searches are done now in 2009?<BR><B>A: 31 billion. This demonstrates the exponential growth of the Internet.</B><BR><P>7) What is the typical clickthrough rate for a banner ad?<BR><B>A: Pretty low. In 2008, the average CTR for banner ads was roughly 0.25%, with a reported range of 0.17% to 0.40%<BR><P></B>8) What percentage of clickthroughs are from the very top natural listings on Google?<BR><B>A: The clickthrough rate (CTR) for searches is 20%, the #1 position CTR among all clickthroughs is 40%. In other words, only half the searches result in clickthroughs.<BR><P></B>9) Which of the following statements about the creator of the World Wide Web is TRUE?<br><B> A: There are many fathers who have contributed to the World Wide Web however it was Tim Berners-Lee who created the initial prototype for the public and was later dubbed a knight by Queen Elizabeth and acknowledged as Father of the World Wide Web.</><BR><P></B>10) Which one of the following statements is FALSE?<BR><B>A: The correct answer was none of the above because the above answers are all true. </small>")
win2.document.close()
}

