Make your own free website on Tripod.com
Hello

Welcome to my page!

Javascript

 
Links

Quiz on Me!

 

<script>

//Julio Maravilla Oct. 5
var reply1;
var reply2;
var reply3;
var reply4;
var reply5;

var answer1;
var answer2;
var answer3;
var answer4;
var answer5;

var output=0;

alert("You will be taking a quiz revolving around me. I will throw in some general knowledge questions and some questions thatyou may not know. Have fun");

answer1= prompt("What is the relative maximun of the Function, Y=SinX? \n (answer: A, B, C, OR D) \n \n A.Pi \n B.2 \n C.1 \n D.0 ");
answer1 = answer1.toUpperCase();
switch(answer1)
{
case "A":
reply1= "Horrible Wrong!";
break;

case "B":
reply1= "Tsk**, you need to revie trig.";
break;

case "C":
reply1= "Your right, Amazing!!!";
output++;
break;

case "D":
reply1= "Don't worry, this is the hardest math problem";
break;

default:
reply1="ERROR!! Follow the procedure, put in either A, B, C, or D!!";
}
alert(reply1);

answer2= prompt("Who was the first President of the United States? \n A. John Adams \n B. George Washington \n C. George Bush \n D. James Madison ");
answer2 = answer2.toUpperCase();
switch(answer2)
{
case "A":
reply2= "Close, he was the second one.";
break;

case "B":
reply2= "Correct you are, good ole George";
output ++;
break;

case "C":
reply2= "He's the current president! ><";
break;

case "D":
reply2= "Such an easy problem, and you screwed it up, Kudos.";
break;

default:
reply2="ERROR!! Follow the procedure, put in either A, B, C, or D!!";
}
alert(reply2);

answer3= prompt("What animal is on the Spanish flag? \n A. A lion \n B. An eagle \n C. A chihuahua \n D. A Griffin");
answer3 = answer3.toUpperCase();
switch(answer3)
{
case "A":
reply3= "Right, you are";
output ++;
break;

case "B":
reply3= "No, that would be cool though";
break;

case "C":
reply3= "Thats just plain wrong, a chihuahuha? What were you thinking?";
break;

case "D":
reply3= "An imaginary creature?? You need help...";
break;

default:
reply3="ERROR!! Follow the procedure, put in either A, B, C, or D!!";
}
alert(reply3);

answer4= prompt("What is my last name? No Multible choice for this one. haha");
answer4 = answer4.toUpperCase();
switch(answer4)
{
case "MARAVILLA":
reply4= "I feel like you know me so well =D";
output ++;
break;

default:
reply4="I can't believe you dont know my last name!! =/";
}
alert(reply4);

answer5= prompt("What is my favorite drink out of these? \n A. Red Wine \n B.Black Coffe \n C.Raspberry Mango tea \n D.Green Tea");
answer5 = answer5.toUpperCase();
switch(answer5)
{
case "A":
reply5= "Haha, nope.";
break;

case "B":
reply5= "No, black coffe isn't that good, I prefer highly sweetened coffee drinks =D";
break;

case "C":
reply5= "Never had it, sounds good though";
break;

case "D":
reply5= "Your absolutely correct!!! =D";
output++;
break

default:
reply5="ERROR!! Follow the procedure, put in either A, B, C, or D!!";
}
alert(reply5);
alert("You scored a " + output + " out of a possible 5! =D");


</script>

 

 

Links

Contact me

Favorite links

Computer Science

Five Classmates