Ch2+Quiz

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">   Ch2 Quiz  .spacer { line-height:.7em; } .title { font-size:14pt; font-weight:bold; font-family:"Times", "Times New Roman", serif; color:#000000; } .qnumber { font-size:12pt; font-family:"Times", "Times New Roman", serif; color:#000000; text-align:right; } .choice { font-size:12pt; font-family:"Times", "Times New Roman", serif; color:#000000; } .default { font-size:12pt; font-family:"Times", "Times New Roman", serif; color:#000000; } .qinfo { font-size:12pt; font-family:"Times", "Times New Roman", serif; color:#000000; } .points { font-size:9pt; font-family:"Times", "Times New Roman", serif; color:#000000; } TD.pad { padding: 0pt 4pt 0pt 4pt; } .font1 { font-family:"Times", "Times New Roman", serif; } .font2 { font-family:"Arial", "Helvetica", sans-serif; } .font3 { font-family:"Symbol"; }  <!--	// Copyright (c) 2005 FSCreations, Inc.	var listMap = '1110000000'; var qtypeMap = '022AAAAAAA'; var ansMap = new Array(10); var ptsMap = new Array(10); ansMap[0] = '47'; ptsMap[0] = 1; ansMap[1] = '40'; ptsMap[1] = 1; ansMap[2] = '47'; ptsMap[2] = 1; ansMap[3] = ''; ptsMap[3] = 1; ansMap[4] = ''; ptsMap[4] = 1; ansMap[5] = ''; ptsMap[5] = 1; ansMap[6] = ''; ptsMap[6] = 1; ansMap[7] = ''; ptsMap[7] = 1; ansMap[8] = ''; ptsMap[8] = 1; ansMap[9] = ''; ptsMap[9] = 1; function HandleSubmit(f) {		var	MAGIC = 840; var	totalCorrect = 0; var	totalPossible = 0; var	numCorrect = 0; var	numPossible = 0; var	numBlank = 0; var	index; var	msg; var	i;

f.student_name.value = StripSpaces(f.student_name.value); f.student_id.value = StripSpaces(f.student_id.value); f.student_email.value = StripSpaces(f.student_email.value);

FixMR(f); FixMTF(f); index = 0; for (i=0; i < f.length; ++i) { if (f.elements[i].name.indexOf(":") > 0) { if (listMap.charAt(index) == "1") { listIndex = f.elements[i].selectedIndex; text = StripSpaces(f.elements[i].options[listIndex].value); } else { f.elements[i].value = StripSpaces(f.elements[i].value); text = f.elements[i].value; }

if (text.length == 0) ++numBlank; ++index; }		}

if (f.student_name.value == "") { alert("Student name cannot be blank."); return(false); }

if (numBlank > 0) { if (numBlank == 1) msg = "1 question"; else msg = numBlank + " questions"; if (!confirm("You have not answered " + msg + " Are you sure you want to end the test?")) return(false); }

index = 0; var scoreDetails = new Array; for (i=0; i < f.length; ++i) { if (f.elements[i].name.indexOf(":") > 0) { if (listMap.charAt(index) == "1") { listIndex = f.elements[i].selectedIndex; text = f.elements[i].options[listIndex].value; } else text = f.elements[i].value;

numPossible = ptsMap[index] * MAGIC; if (ansMap[index] == "") scoreDetails[index] = "?--"; else { var scoreResult = ScoreAnswer(index, text, numPossible); numCorrect = scoreResult.numPoints; scoreDetails[index] = (scoreResult.isCorrect) ? " " : "X"; scoreDetails[index] += (Math.round(numCorrect * 100 / MAGIC) / 100).toString; totalCorrect += numCorrect; totalPossible += numPossible; }

scoreDetails[index] += "/" + (numPossible / MAGIC); ++index; }		}

f.score_details.value = scoreDetails.join("|"); f.score_correct.value = Math.round(totalCorrect * 100 / MAGIC) / 100; f.score_possible.value = Math.round(totalPossible * 100 / MAGIC) / 100; if (totalPossible > 0) f.score_percent.value = Math.round(100.0 * totalCorrect / totalPossible); else f.score_percent.value = 0;

return(true); }

function TranslateAnswer(s, answerIndex) {		var	value; var	newString; var	code; var	i;

value = (answerIndex % 31) + 1; newString = ""; for (i=0; i < s.length; i += 2) { code = parseInt(s.substring(i, i + 2), 16); newString += String.fromCharCode(code ^ value); }

return(newString); }

function ScoreAnswer(answerIndex, responseText, pointsPossible) {		var answerText = TranslateAnswer(ansMap[answerIndex], answerIndex); var qtype = qtypeMap.charAt(answerIndex); var nrExactMatch = false; var result = new Array;

result.numPoints = 0; result.isCorrect = false;

if (qtype == "3" && answerText.substring(0, 2) == "p:") { answerText = answerText.substr(2); if (responseText.toUpperCase == answerText.toUpperCase) result.isCorrect = true; else result.numPoints = MultiResponseCompare(responseText, answerText, pointsPossible); } else if (qtype == "6") { if (answerText.substring(0, 2) == "==") { answerText = answerText.substr(2); nrExactMatch = true; }			if (NumericCompare(responseText, answerText, nrExactMatch)) result.isCorrect = true; } else if (qtype == "7") { if (CompletionCompare(responseText, answerText)) result.isCorrect = true; } else if (responseText.toUpperCase == answerText.toUpperCase) result.isCorrect = true;

if (result.isCorrect) result.numPoints = pointsPossible;

return(result); }

function StripSpaces(s) {		var	len; var	i;

len = s.length; for (i=len - 1; i >= 0 && s.charAt(i) == " "; --i) len = i;

if (len == 0) s = ""; else if (len != s.length) s = s.substring(0, len);

return(s); }

function MultiResponseCompare(responseText, answerText, pointsPossible) {	}

function NumericCompare(response, answer, exactMatch) {	}

function CompletionCompare(responseText, answerText) {		return(false); }

function FixMTF(f) {	}

function FixMR(f) {	}

function AllowReset {		return(window.confirm("Do you want to clear all of your answers?")); }

function Restart {		if (AllowReset) { document.TestForm.onreset = function { }; document.TestForm.reset; document.TestForm.onreset = function { AllowReset; }; }	} // --> 

Javascript not enabled 

         <input type='hidden' name='other_label' value='Other'> <input type='hidden' name='score_correct' value='0'> <input type='hidden' name='score_possible' value='0'> <input type='hidden' name='score_percent' value='0'>

<input type='hidden' name='score_subjective' value='7'> <input type='hidden' name='score_details' value=''> <input type='hidden' name='score_showresults' value='1'> Name: <input type='text' name='student_name' size='30'> ID: <input type='text' name='student_id' size='12'> Email: <input type='text' name='student_email' size='45'>

Ch2 Quiz

<tr valign='baseline'> <select name='MC:3' align='top' onmousewheel='return(false);'> <option value=' '> <option value='A'>A <option value='B'>B <option value='C'>C <option value='D'>D

<p class='qnumber'> 3. <td width='100%'> What is the number of significant digits in the measurement 34.000 m?

<tr valign='top'> <td colspan='3'> Problem <tr valign='baseline'>

<p class='qnumber'> 4. <td width='100%'> Express the following quantities in scientific notation. <div style='margin-left:9pt'>a. 5501 g b.    250,000. m c.     643.8 l d.      0.6438 g e.     0.048 s f.      240 h

<textarea name='PR:4' rows='5' cols='60' wrap='virtual'>

<tr valign='baseline'> <p class='qnumber'> 5.

<td width='100%'> Convert each of the following quantities as indicated. <div style='text-indent:9pt'>a. 36000 cm to meters b.     500 m to kilometers c.     5000 km to meters d.      15 kg to grams e.      1.51 mg to grams

<textarea name='PR:5' rows='5' cols='60' wrap='virtual'>

<tr valign='baseline'> <p class='qnumber'> 6.

<td width='100%'> Calculate each of the following and express the results in scientific notation with the correct number of significant digits and correct units. <div style='text-indent:9pt'>a. 4.098 m + 56.03 m + 10.1 m b.     <img width='53' height='48' align='middle' alt="pr006-1.jpg" src="Ch2_Quiz_html_files/pr006-1.jpg" border='0'> c.     4.000 m <span class='font3'>&#215; 20.30 m d.     5.5<span class='font3'>&#215; 10&#8211;1 mm + 2.0<span class='font3'>&#215; 10&#8211;3 mm

<textarea name='PR:6' rows='5' cols='60' wrap='virtual'>

<tr valign='baseline'> <p class='qnumber'> 7.

<td width='100%'> State the number of significant digits in each of the following measurements and express the value in scientific notation. <div style='margin-left:9pt'>a. 9030. m b.    600.0 m c.      0.00030 mm d.     80.03x10&#8211;4 N e.      38.6030x10&#8211;3

m/s <textarea name='PR:7' rows='5' cols='60' wrap='virtual'>

<tr valign='baseline'>

<p class='qnumber'> 8. <td width='100%'> The figure below shows a graph of the mass of a substance compared to its volume. <img width='252' height='164' align='bottom' alt="pr008-1.jpg" src="Ch2_Quiz_html_files/pr008-1.jpg" border='0'> <div style='text-indent:9pt'>a. What type of relationship is mass versus volume? b.     What is the volume of 6.0 kg of the substance? c.     What is the mass of 2 liters of the substance?

<textarea name='PR:8' rows='5' cols='60' wrap='virtual'>

<tr valign='baseline'> <p class='qnumber'> 9.

<td width='100%'> Add or subtract as indicated. Make sure that your answers contain the correct number of significant digits. a.     0.00029 mm + 0.0025 mm b.     2103 s &#8211; 1.4 J c.     2.3 &#215; 10&#8211;4 kg + 6.7<span class='font3'>&#215; 10&#8211;3 kg d.     4.85<span class='font3'>&#215; 103 m &#8211; 5.23102 m

<textarea name='PR:9' rows='5' cols='60' wrap='virtual'>

<tr valign='baseline'> <p class='qnumber'> 10.

<td width='100%'> Multiply or divide as indicated. Make sure your answers contain the correct number of significant digits. a.     (2.210 kg)(100.0 m/s2) b.      <img width='87' height='61' align='middle' alt="pr010-1.jpg" src="Ch2_Quiz_html_files/pr010-1.jpg" border='0'> c.     <img width='71' height='61' align='middle' alt="pr010-2.jpg" src="Ch2_Quiz_html_files/pr010-2.jpg" border='0'> d.     (7.89<span class='font3'>&#215; 10&#8211;3 km)(6<span class='font3'>&#215; 10&#8211;3 km)

<textarea name='PR:10' rows='5' cols='60' wrap='virtual'>

<br clear='all'>