Biochemistry Quiz
'; instructionText[1] = '
'; instructionText[2] = '
'; instructionIndex[0] = 0; instructionIndex[1] = 4; instructionIndex[2] = 10; numberText[0] = '1.'; questionText[0] = '
'; answerText[0] = '
'; numberText[1] = '2.'; questionText[1] = '
'; answerText[1] = '
'; numberText[2] = '3.'; questionText[2] = '
'; answerText[2] = '
'; numberText[3] = '4.'; questionText[3] = '
'; answerText[3] = '
'; numberText[4] = '5.'; questionText[4] = '
a. | adhesive strength |
b. | capillarity |
c. | cohesive strength |
d. | All of the above are a result of hydrogen ' + 'bonding. |
'; answerText[4] = '
'; numberText[5] = '6.'; questionText[5] = '
a. | it has four electrons in its outermost energy ' + 'level. |
b. | it readily bonds ' + 'with other carbon atoms. |
c. | it can form single, double, or triple bonds with other ' + 'atoms. |
d. | it shares two ' + 'electrons with another atom when it forms a covalent bond. |
'; answerText[5] = '
'; numberText[6] = '7.'; questionText[6] = '
a. | They contain a hydroxyl group (–OH). |
b. | They are polar molecules. |
c. | They can affect processes in living things, either positively or ' + 'negatively. |
d. | They are the only ' + 'kind of functional group in organic molecules that contain oxygen. |
'; answerText[6] = '
'; numberText[7] = '8.'; questionText[7] = '
a. | disaccharides. | c. | nucleotides. |
b. | proteins. | d. | steroids. |
'; answerText[7] = '
'; numberText[8] = '9.'; questionText[8] = '
a. | amino acids | c. | nucleotides |
b. | CH2 chains | d. | sugars |
'; answerText[8] = '
'; numberText[9] = '10.'; questionText[9] = '
a. | amino acids | c. | nucleotides |
b. | CH2 chains | d. | sugars |
'; answerText[9] = '
'; numberText[10] = '11.'; questionText[10] = '
'; answerText[10] = '
'; numberText[11] = '12.'; questionText[11] = '
'; answerText[11] = '
'; numberText[12] = '13.'; questionText[12] = '
'; answerText[12] = '
'; numberText[13] = '14.'; questionText[13] = '
'; answerText[13] = '
'; numberText[14] = '15.'; questionText[14] = '
'; answerText[14] = '
'; numberText[15] = '16.'; questionText[15] = '
'; answerText[15] = '
'; numberText[16] = '17.'; questionText[16] = '
'; answerText[16] = '
'; numberText[17] = '18.'; questionText[17] = '
'; answerText[17] = '
'; numberText[18] = '19.'; questionText[18] = '
'; answerText[18] = '
'; numberText[19] = '20.'; questionText[19] = '
'; answerText[19] = '
'; studentName = StripSpaces(f.student_name.value); FixMTF(f); index = 0; for (i=0; i < f.length; ++i) { if (f.elements[i].name.indexOf(":") > 0) { text = StripSpaces(GetResponse(index, f.elements[i])); if (text.length == 0) ++numBlank; ++index; } } if (studentName == "") { 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; for (i=0; i < f.length; ++i) { if (f.elements[i].name.indexOf(":") > 0) { text = GetResponse(index, f.elements[i]); if (ansMap[index] == "") { prefixText[index] = ""; ++numSubjective; } else { isCorrect = ScoreAnswer(index, text); if (isCorrect) ++numCorrect; ++numPossible; prefixText[index] = BuildPrefixText(index, text, isCorrect); } responseText[index] = TranslateHtmlString(text); ++index; } } if (showNotes) { for (i=0; i < numQuestions; ++i) { if (qtypeMap.charAt(i) == "2") notesText[i] = FixMCNotes(notesText[i], responseText[i]); } } if (numPossible > 0) scorePercent = Math.round(100.0 * numCorrect / numPossible); else scorePercent = 0; studentName = TranslateHtmlString(studentName); document.writeln("n"); document.writeln("
n"); document.writeln(""); document.writeln("Name: " + studentName + "
"); document.write("Score: " + numCorrect + " / " + numPossible + " (" + scorePercent + "%)"); if (numSubjective > 0) { document.write(" [" + numSubjective + " subjective "); if (numSubjective == 1) document.write("question"); else document.write("questions"); document.write(" not graded]"); } document.writeln(" "); document.writeln("
"); document.writeln("
"); currentInstruction = 0; currentNarrative = 0; for (i=0; i < numQuestions; ++i) { if (currentInstruction < numInstructions) { if (instructionIndex[currentInstruction] == i) { document.writeln(""); ++currentInstruction; } } if (currentNarrative < numNarratives) { if (narrativeIndex[currentNarrative] == i) { document.writeln("
"); ++currentNarrative; } } document.writeln("
"); document.writeln(""); document.writeln("
"); document.writeln("
"); } document.writeln("
"); document.writeln(instructionText[currentInstruction]); document.writeln(" "); document.writeln(" | ||||||||||
"); document.writeln(narrativeText[currentNarrative]); document.writeln(" "); document.writeln(" | ||||||||||
" + prefixText[i] + " | " + numberText[i] + " | " + questionText[i]); document.writeln(" "); document.writeln(" "); if (listMap.charAt(i) != "1") { document.writeln(""); document.writeln(" "); } document.writeln(" "); document.writeln(" "); if (showNotes) { document.writeln(" "); document.writeln(" "); } if (showRef) { document.writeln(" "); document.writeln(" "); } document.writeln("
"); document.writeln(" |
"); document.writeln("
"); document.writeln("
"); document.write("
"); document.writeln("
"); document.writeln(" | "); document.write(""); document.writeln(""); document.writeln(" |
"); document.writeln(""); document.writeln(""); document.close(); return(false); } function GetResponse(answerIndex, answer) { var listIndex; var responseText; if (listMap.charAt(answerIndex) == "1") { listIndex = answer.selectedIndex; responseText = answer.options[listIndex].text; } else responseText = answer.value; return(responseText); } function ScoreAnswer(answerIndex, responseText) { var listIndex; var answerText; answerText = ansMap[answerIndex]; if (qtypeMap.charAt(answerIndex) == "4") return(NumericCompare(responseText, answerText)); else if (qtypeMap.charAt(answerIndex) == "5") return(MultiCompare(responseText, answerText)); else if (responseText.toUpperCase() == answerText.toUpperCase()) return(true); else return(false); } function BuildPrefixText(answerIndex, responseText, isCorrect) { var text; var listIndex; text = "
" if (isCorrect) text += "" else text += "" if (listMap.charAt(answerIndex) == "1") { if (responseText.length == 0) responseText = " "; text += " " + responseText + " "; } text += "
" return(text); } 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 TranslateHtmlString(text) { var newText; var replaceString; var position; var length; var breakPos; var skipExtra; var i; newText = ""; position = 0; length = text.length; while (position < length) { skipExtra = 0; breakPos = -1; for (i=position; i < length && breakPos < 0; ++i) { switch(text.charAt(i)) { case '>': replaceString = ">"; breakPos = i; break; case '<': replaceString = "<"; breakPos = i; break; case '&': replaceString = "&"; breakPos = i; break; case 'r': if ((i + 1) < length && text.charAt(i + 1) == 'n') skipExtra = 1; replaceString = "
"; breakPos = i; break; case 'n': replaceString = "
"; breakPos = i; break; case ' ': if ((i + 1 < length) && text.charAt(i + 1) == ' ') { replaceString = " "; breakPos = i; } break; } } if (breakPos < 0) { newText += text.substring(position, length); position = length; } else { if (breakPos > position) newText += text.substring(position, breakPos); newText += replaceString; position = breakPos + 1 + skipExtra; } } return(newText); } function FixMCNotes(notesText, studentText) { var displayText; var searchText; var upperNotes; var charCode; var startIndex; var endIndex; displayText = ""; if (studentText.length > 0 && notesText.length > 0) { upperNotes = notesText.toUpperCase(); studentText = studentText.toUpperCase(); charCode = studentText.charCodeAt(0); searchText = "/" + String.fromCharCode(charCode) + "/"; startIndex = upperNotes.indexOf(searchText); if (startIndex >= 0) { startIndex += searchText.length; searchText = "/" + String.fromCharCode(charCode + 1) + "/"; endIndex = upperNotes.indexOf(searchText, startIndex); if (endIndex < startIndex) endIndex = notesText.length; displayText = notesText.substring(startIndex, endIndex); } else if (notesText.charAt(0) != "/") displayText = notesText; } return(displayText); } function NumericCompare(s1, s2) { var s1Sign; var s2Sign; var tempString; var decimalCount; var decimalPos; var numToDelete; var len; var ch; var i; s1.toUpperCase(); s2.toUpperCase(); if (s1 == s2) return(true); else { s1Sign = 1; s2Sign = 1; tempString = ""; for (i=0; i < s1.length; ++i) { ch = s1.charAt(i); if (ch == "-" && tempString.length == 0) s1Sign = -1; else if ((ch >= "0" && ch <= "9") || ch == ".") tempString += ch; } s1 = tempString; decimalCount = 0; decimalPos = -1; for (i=0; i < s1.length; ++i) { if (s1.charAt(i) == '.') { ++decimalCount; if (decimalPos < 0) decimalPos = i; } } if (decimalCount == 1 && decimalPos >= 0) { len = s1.length; for (i=len - 1; i >= decimalPos; --i) { if (i == decimalPos || s1.charAt(i) == '0') len = i; else break; } if (len < s1.length) s1 = s1.substring(0, len); if (s1.length == 0) s1 = "0"; } numToDelete = 0; for (i=0; i < s1.length; ++i) { if (s1.charAt(i) == "0") ++numToDelete; else break; } if (numToDelete > 0) { if (numToDelete == s1.length) --numToDelete; if (numToDelete > 0) s1 = s1.substring(numToDelete); } ///////////////////////////////////////////// tempString = ""; for (i=0; i < s2.length; ++i) { ch = s2.charAt(i); if (ch == "-" && tempString.length == 0) s2Sign = -1; else if ((ch >= "0" && ch <= "9") || ch == ".") tempString += ch; } s2 = tempString; decimalCount = 0; decimalPos = -1; for (i=0; i < s2.length; ++i) { if (s2.charAt(i) == '.') { ++decimalCount; if (decimalPos < 0) decimalPos = i; } } if (decimalCount == 1 && decimalPos >= 0) { len = s2.length; for (i=len - 1; i >= decimalPos; --i) { if (i == decimalPos || s2.charAt(i) == '0') len = i; else break; } if (len < s2.length) s2 = s2.substring(0, len); if (s2.length == 0) s2 = "0"; } numToDelete = 0; for (i=0; i < s2.length; ++i) { if (s2.charAt(i) == "0") ++numToDelete; else break; } if (numToDelete > 0) { if (numToDelete == s2.length) --numToDelete; if (numToDelete > 0) s2 = s2.substring(numToDelete); } if (s1Sign == s2Sign && s1 == s2) return(true); } return(false); } function MultiCompare(responseText, answerText) { var startIndex; var endIndex; var partialText; responseText = responseText.toUpperCase(); answerText = answerText.toUpperCase(); startIndex = 0; do { endIndex = answerText.indexOf("r", startIndex); if (endIndex < 0) partialText = answerText.substring(startIndex); else partialText = answerText.substring(startIndex, endIndex); if (responseText == partialText) return(true); startIndex = endIndex + 1; } while (endIndex > 0); return(false); } function FixMTF(f) { var text; var letter; var theList; var listIndex; var number; var i; for (i=0; i < f.length; ++i) { if (f.elements[i].name.indexOf("MTF:") == 0) { number = parseInt(f.elements[i].name.substring(4), 10); theList = f["MTF-" + number + "-1"]; if (theList) { listIndex = theList.selectedIndex; letter = theList.options[listIndex].text; } else letter = ""; text = StripSpaces(f["MTF-" + number + "-2"].value); if (text == "") f.elements[i].value = letter; else f.elements[i].value = letter + "," + text; } } } function AllowReset() { return(window.confirm("Do you want to clear all of your answers?")); } // -->
Name: Biochemistry Quiz |
True/False Indicate whether the sentence or statement is true or false. | ||||||||||
1. | Because water is a polar molecule, it tends to cause ionic compounds mixed in water to dissociate into ions. | |||||||||
2. | Capillarity is apparent when you put a straw in water and the water level inside the straw rises higher than the level in the surrounding container. | |||||||||
3. | Organic compounds are substances produced and found in living things. | |||||||||
4. | Functional groups are side groups of carbon compounds that confer specific properties to these compounds. | |||||||||
Multiple Choice Identify the letter of the choice that best completes the statement or answers the question. | ||||||||||
5. | Which of the following characteristics of water is not a result of hydrogen bonding?
| |||||||||
6. | Carbon is different from most other elements in that
| |||||||||
7. | Which of the following is not true of alcohols?
| |||||||||
8. | Amino acids are monomers of
| |||||||||
9. | Which organic molecule below is most closely related to lipids?
| |||||||||
10. | Which organic molecule below is most closely related to nucleic acids?
| |||||||||
Completion Complete each sentence or statement. | ||||||||||
11. | Water is very effective at dissolving other polar substances because of its ____________________. | |||||||||
12. | Breaking of ____________________ bonds is the first thing that happens when water is heated, which means that it takes a great deal of thermal energy to raise the temperature of water. | |||||||||
13. | In the molecule that has the chemical formula C2H4, the carbon atoms are bonded together with a ____________________ bond. | |||||||||
14. | Because oxygen atoms tend to attract positively charged atoms, organic compounds that contain oxygen atoms tend to form ____________________ bonds. | |||||||||
15. | In a condensation reaction, two molecules become linked together and a molecule of ____________________ is produced. | |||||||||
16. | The formation of polymers from monomers occurs as a result of ____________________ reactions, and the breakdown of polymers into monomers occurs as a result of ____________________ reactions. | |||||||||
17. | Lipids are ____________________ molecules because they have no negative and positive poles. | |||||||||
18. | A phospholipid is a molecule with a(n) ____________________ head. | |||||||||
19. | Lipids are ____________________ molecules because they have no negative and positive poles. | |||||||||
20. | A phospholipid is a molecule with a(n) ____________________ head. |