Site hosted by Angelfire.com: Build your free website today!
'; OutString += '
'; OutString += NavBar; if (Feedback.length>0){ OutString += '' } OutString += '
'; OutString += ''; OutString += Feedback; OutString += '
'; //Write it to the frame TopFrame.document.clear(); TopFrame.document.open(); TopFrame.document.write(OutString); TopFrame.document.close(); } function StartUp(){ //Write the top frame WriteFeedback(Instructions); //Reduce array if required if (QsToShow < I.length){ ReduceItems(); } //Shuffle stuff if required if (ShuffleQs == true){ I = Shuffle(I); } if (ShuffleAs == true){ for (var i=0; iPicSun.move, picSun.left+40
picSun.Top+100'; I[1][1] = new Array(); I[1][1][0] = new Array(); I[1][1][0][0]='The sun appears to be rising'; I[1][1][0][1]=''; I[1][1][0][2] = 1; I[1][1][1] = new Array(); I[1][1][1][0]='The sun appears to be setting'; I[1][1][1][1]=''; I[1][1][1][2] = 0; I[1][1][2] = new Array(); I[1][1][2][0]='The sun is not moving'; I[1][1][2][1]=''; I[1][1][2][2] = 0; I[1][1][3] = new Array(); I[1][1][3][0]='The sun appears to be moving left'; I[1][1][3][1]=''; I[1][1][3][2] = 0; I[1][2] = 0; I[2] = new Array(); I[2][0]='What is the effect of the object from the following code?
PicCar.move picCar.left-50, picCar.top+100, picCar.width+40'; I[2][1] = new Array(); I[2][1][0] = new Array(); I[2][1][0][0]='The car remains stationary'; I[2][1][0][1]=''; I[2][1][0][2] = 0; I[2][1][1] = new Array(); I[2][1][1][0]='The car is getting larger'; I[2][1][1][1]=''; I[2][1][1][2] = 1; I[2][1][2] = new Array(); I[2][1][2][0]='The car is shrinking'; I[2][1][2][1]=''; I[2][1][2][2] = 0; I[2][1][3] = new Array(); I[2][1][3][0]='The car disappears'; I[2][1][3][1]=''; I[2][1][3][2] = 0; I[2][2] = 0; I[3] = new Array(); I[3][0]='What will the following code create?
frmSample.line(200, 150)-(1500,1100),bcyan,BF'; I[3][1] = new Array(); I[3][1][0] = new Array(); I[3][1][0][0]='A bold, wide cyan line is drawn'; I[3][1][0][1]=''; I[3][1][0][2] = 0; I[3][1][1] = new Array(); I[3][1][1][0]='A clear box is drawn with a cyan border'; I[3][1][1][1]=''; I[3][1][1][2] = 0; I[3][1][2] = new Array(); I[3][1][2][0]='A solid cyan box is drawn'; I[3][1][2][1]=''; I[3][1][2][2] = 1; I[3][1][3] = new Array(); I[3][1][3][0]='A solid black box is drawn with a cyan border'; I[3][1][3][1]=''; I[3][1][3][2] = 0; I[3][2] = 0; I[4] = new Array(); I[4][0]='Using the following code, what direction is the line on the form drawn?
frmSample.line(1500,500)-(1500,1700),vbblue'; I[4][1] = new Array(); I[4][1][0] = new Array(); I[4][1][0][0]='Vertical'; I[4][1][0][1]=''; I[4][1][0][2] = 1; I[4][1][1] = new Array(); I[4][1][1][0]='Slanted to the right'; I[4][1][1][1]=''; I[4][1][1][2] = 0; I[4][1][2] = new Array(); I[4][1][2][0]='Slanted to the left'; I[4][1][2][1]=''; I[4][1][2][2] = 0; I[4][1][3] = new Array(); I[4][1][3][0]='Horizontal'; I[4][1][3][1]=''; I[4][1][3][2] = 0; I[4][2] = 0; I[5] = new Array(); I[5][0]='Using the following code, in which direction on the form will the mascot move?
picMascot.move picMascot.left+60'; I[5][1] = new Array(); I[5][1][0] = new Array(); I[5][1][0][0]='Left'; I[5][1][0][1]=''; I[5][1][0][2] = 0; I[5][1][1] = new Array(); I[5][1][1][0]='Right'; I[5][1][1][1]=''; I[5][1][1][2] = 1; I[5][1][2] = new Array(); I[5][1][2][0]='No movement'; I[5][1][2][1]=''; I[5][1][2][2] = 0; I[5][1][3] = new Array(); I[5][1][3][0]='Up'; I[5][1][3][1]=''; I[5][1][3][2] = 0; I[5][2] = 0; I[6] = new Array(); I[6][0]='What does the following code produce?
frmSample.circle(500, 1000), 200'; I[6][1] = new Array(); I[6][1][0] = new Array(); I[6][1][0][0]='A circle with a radius of 400'; I[6][1][0][1]=''; I[6][1][0][2] = 0; I[6][1][1] = new Array(); I[6][1][1][0]='A circle with a diameter of 200'; I[6][1][1][1]=''; I[6][1][1][2] = 0; I[6][1][2] = new Array(); I[6][1][2][0]='A circle with a radius of 500'; I[6][1][2][1]=''; I[6][1][2][2] = 0; I[6][1][3] = new Array(); I[6][1][3][0]='A circle with a diameter of 400'; I[6][1][3][1]=''; I[6][1][3][2] = 1; I[6][2] = 0; I[7] = new Array(); I[7][0]='What does the following code produce?
frmSample.circle(1500,2000),500,vbred'; I[7][1] = new Array(); I[7][1][0] = new Array(); I[7][1][0][0]='A solid red circle'; I[7][1][0][1]=''; I[7][1][0][2] = 0; I[7][1][1] = new Array(); I[7][1][1][0]='A solid red circle with a gray border'; I[7][1][1][1]=''; I[7][1][1][2] = 0; I[7][1][2] = new Array(); I[7][1][2][0]='A circle with a red border'; I[7][1][2][1]=''; I[7][1][2][2] = 1; I[7][1][3] = new Array(); I[7][1][3][0]='A circle on a red form'; I[7][1][3][1]=''; I[7][1][3][2] = 0; I[7][2] = 0; I[8] = new Array(); I[8][0]='What does the following code produce?
FrmSample.circle(500,300),200,,,,1.0'; I[8][1] = new Array(); I[8][1][0] = new Array(); I[8][1][0][0]='An arc'; I[8][1][0][1]=''; I[8][1][0][2] = 0; I[8][1][1] = new Array(); I[8][1][1][0]='A circle'; I[8][1][1][1]=''; I[8][1][1][2] = 1; I[8][1][2] = new Array(); I[8][1][2][0]='An error'; I[8][1][2][1]=''; I[8][1][2][2] = 0; I[8][1][3] = new Array(); I[8][1][3][0]='An ellipse'; I[8][1][3][1]=''; I[8][1][3][2] = 0; I[8][2] = 0; I[9] = new Array(); I[9][0]='What does the following code produce?
frmSample.circle(500,300),200vbblue,1.0'; I[9][1] = new Array(); I[9][1][0] = new Array(); I[9][1][0][0]='A circle'; I[9][1][0][1]=''; I[9][1][0][2] = 0; I[9][1][1] = new Array(); I[9][1][1][0]='An arc'; I[9][1][1][1]=''; I[9][1][1][2] = 0; I[9][1][2] = new Array(); I[9][1][2][0]='An error'; I[9][1][2][1]=''; I[9][1][2][2] = 1; I[9][1][3] = new Array(); I[9][1][3][0]='An ellipse'; I[9][1][3][1]=''; I[9][1][3][2] = 0; I[9][2] = 0; I[10] = new Array(); I[10][0]='Which value is required in the Move method?'; I[10][1] = new Array(); I[10][1][0] = new Array(); I[10][1][0][0]='Height'; I[10][1][0][1]=''; I[10][1][0][2] = 0; I[10][1][1] = new Array(); I[10][1][1][0]='Width'; I[10][1][1][1]=''; I[10][1][1][2] = 0; I[10][1][2] = new Array(); I[10][1][2][0]='Left'; I[10][1][2][1]=''; I[10][1][2][2] = 0; I[10][1][3] = new Array(); I[10][1][3][0]='Top'; I[10][1][3][1]=''; I[10][1][3][2] = 1; I[10][2] = 0; I[11] = new Array(); I[11][0]='What does the following code produce?
frmSample.circle(500,300),200,vbyellow,,,,1.5'; I[11][1] = new Array(); I[11][1][0] = new Array(); I[11][1][0][0]='A circle'; I[11][1][0][1]=''; I[11][1][0][2] = 1; I[11][1][1] = new Array(); I[11][1][1][0]='An arc'; I[11][1][1][1]=''; I[11][1][1][2] = 0; I[11][1][2] = new Array(); I[11][1][2][0]='An error'; I[11][1][2][1]=''; I[11][1][2][2] = 0; I[11][1][3] = new Array(); I[11][1][3][0]='An ellipse'; I[11][1][3][1]=''; I[11][1][3][2] = 0; I[11][2] = 0; I[12] = new Array(); I[12][0]='Pictures can appear to be moving using which event?'; I[12][1] = new Array(); I[12][1][0] = new Array(); I[12][1][0][0]='Action'; I[12][1][0][1]=''; I[12][1][0][2] = 0; I[12][1][1] = new Array(); I[12][1][1][0]='click'; I[12][1][1][1]=''; I[12][1][1][2] = 0; I[12][1][2] = new Array(); I[12][1][2][0]='Timer'; I[12][1][2][1]=''; I[12][1][2][2] = 0; I[12][1][3] = new Array(); I[12][1][3][0]='Keypress'; I[12][1][3][1]=''; I[12][1][3][2] = 1; I[12][2] = 0; I[13] = new Array(); I[13][0]='Which object should be used to process code at regular intervals?'; I[13][1] = new Array(); I[13][1][0] = new Array(); I[13][1][0][0]='Timer'; I[13][1][0][1]=''; I[13][1][0][2] = 1; I[13][1][1] = new Array(); I[13][1][1][0]='action'; I[13][1][1][1]=''; I[13][1][1][2] = 0; I[13][1][2] = new Array(); I[13][1][2][0]='Label'; I[13][1][2][1]=''; I[13][1][2][2] = 0; I[13][1][3] = new Array(); I[13][1][3][0]='Picture'; I[13][1][3][1]=''; I[13][1][3][2] = 0; I[13][2] = 0; I[14] = new Array(); I[14][0]='How can the timer object be turned off during runtime?'; I[14][1] = new Array(); I[14][1][0] = new Array(); I[14][1][0][0]='Set the enabled property to true'; I[14][1][0][1]=''; I[14][1][0][2] = 0; I[14][1][1] = new Array(); I[14][1][1][0]='Set the enabled property to false'; I[14][1][1][1]=''; I[14][1][1][2] = 1; I[14][1][2] = new Array(); I[14][1][2][0]='Set the visible property to true'; I[14][1][2][1]=''; I[14][1][2][2] = 0; I[14][1][3] = new Array(); I[14][1][3][0]='set the visible property to false'; I[14][1][3][1]=''; I[14][1][3][2] = 0; I[14][2] = 0; I[15] = new Array(); I[15][0]='Which code will produce a smile on a face?'; I[15][1] = new Array(); I[15][1][0] = new Array(); I[15][1][0][0]='frmSample.circle(1500,1300),1200,,3.14,0'; I[15][1][0][1]=''; I[15][1][0][2] = 1; I[15][1][1] = new Array(); I[15][1][1][0]='frmSample.circle(1500,1300),1200,,pi/2'; I[15][1][1][1]=''; I[15][1][1][2] = 0; I[15][1][2] = new Array(); I[15][1][2][0]='frmsample.circle(1500,1300),1200,0,3.14'; I[15][1][2][1]=''; I[15][1][2][2] = 0; I[15][1][3] = new Array(); I[15][1][3][0]='frmSample.circle(1500,1300),1200,,arc,up'; I[15][1][3][1]=''; I[15][1][3][2] = 0; I[15][2] = 0; I[16] = new Array(); I[16][0]='How is the interval specified in the timer object?'; I[16][1] = new Array(); I[16][1][0] = new Array(); I[16][1][0][0]='Seconds'; I[16][1][0][1]=''; I[16][1][0][2] = 0; I[16][1][1] = new Array(); I[16][1][1][0]='Minutes'; I[16][1][1][1]=''; I[16][1][1][2] = 0; I[16][1][2] = new Array(); I[16][1][2][0]='Milliseconds'; I[16][1][2][1]=''; I[16][1][2][2] = 1; I[16][1][3] = new Array(); I[16][1][3][0]='nanoseconds'; I[16][1][3][1]=''; I[16][1][3][2] = 0; I[16][2] = 0; I[17] = new Array(); I[17][0]='How many seconds are in 2000 milliseconds?'; I[17][1] = new Array(); I[17][1][0] = new Array(); I[17][1][0][0]='One half second'; I[17][1][0][1]=''; I[17][1][0][2] = 0; I[17][1][1] = new Array(); I[17][1][1][0]='One second'; I[17][1][1][1]=''; I[17][1][1][2] = 0; I[17][1][2] = new Array(); I[17][1][2][0]='Two seconds'; I[17][1][2][1]=''; I[17][1][2][2] = 1; I[17][1][3] = new Array(); I[17][1][3][0]='Two and one-half seconds'; I[17][1][3][1]=''; I[17][1][3][2] = 0; I[17][2] = 0; Status = new Array(); function CreateStatusArrays(){ for (var x=0; x-1){ FirstBit = InString.substring(0, i); LastBit = InString.substring(i + Token.length, InString.length); InString = FirstBit + Replacement + LastBit; i = InString.indexOf(Token); } return InString; } function ChangeQ(ChangeBy){ var NewNum = CurrQNum + ChangeBy; if ((NewNum >= 0)&&(NewNum
'; } Output = Output + BuildQuestion(I.length-1); Output = TableOpener + Output + TableCloser; DisplayExercise(Output); } function ShowQuestion(QNum){ //First, create the Q number readout at the top var Readout = (QNum+1) + '/' + I.length; while (Readout.length < 7){ Readout = ' ' + Readout + ' '; } Readout = QButtonsOpener + Readout + QButtonsCloser; var Output = BuildQuestion(QNum); Output = TableOpener + Output + TableCloser; DisplayExercise(Readout + Output); //Mark the answers already done for (i=0; i=0; i--){ //Find any incorrect choices var b = eval('BottomFrame.document.QForm.A_' + QNum + '_' + i); if (b != null){ //if it's wrong, count it if (b.checked == true){ Status[QNum][1][i] = 'C'; } else{ Status[QNum][1][i] = 'U'; } if (((b.checked == true) && (b.value == "0"))||((b.checked == false)&&(b.value == "1"))){ TotWrong++; } } } if (TotWrong == 0){ Output = DefaultRight; } else{ Output = DefaultWrong + '
' + (TotAns-TotWrong) + '/' + TotAns; } //If you haven't tried the question before if (Status[QNum][0] == 0){ Status[QNum][2]++; Tries++; if (TotWrong == 0){ Status[QNum][0] = 1; CorrectChoices++; } } //Check whether the quiz is finished var Finished = true; for (var i=0; i' + YourScoreIs + ' ' + Score + '%.'; } if (Finished == true){ var CFT = 0; for (i=0; i 0){ WriteFeedback(Output); } } function CheckAnswer(QNum, ANum){ var Output = I[QNum][1][ANum][1]; if (Output==''){ if (I[QNum][1][ANum][2] == 1){ Output = DefaultRight; } else{ Output = DefaultWrong; } } //If it's not been previously answered correctly if (Status[QNum][0] == 0){ Status[QNum][2]++; //increment tries for this Q //If it's a correct answer if (I[QNum][1][ANum][2] == 1){ Status[QNum][0] = 1;//Mark the Q as done Status[QNum][1][ANum] = 'R'; MarkAnswer(QNum, ANum, true); CorrectChoices++; } else{ Status[QNum][1][ANum] = 'W'; MarkAnswer(QNum, ANum, false); } Tries++; } //Check whether the quiz is finished var Finished = true; for (var i=0; i' + YourScoreIs + ' ' + Score + '%.'; } if (Finished == true){ var CFT = 0; for (i=0; i 0){ WriteFeedback(Output); } } function MarkAnswer(QNum, ANum, Right){ var Mark = CorrectIndicator; if (Right == false){Mark = IncorrectIndicator;} if (eval('BottomFrame.document.QForm.FB_' + QNum + '_' + ANum) != null){ eval('BottomFrame.document.QForm.FB_' + QNum + '_' + ANum).value = Mark; } } function CheckCheckbox(QNum, ANum){ if (eval('BottomFrame.document.QForm.A_' + QNum + '_' + ANum) != null){ eval('BottomFrame.document.QForm.A_' + QNum + '_' + ANum).checked = true; } } function Blank(){ return '©Half-Baked Software. Loading...'; } //--> //]]>