Download as pdf or txt
Download as pdf or txt
You are on page 1of 4

public class Quiz {

public static void main(String[] args) {

Question question = new MultipleChoiceQuestion


("What was the name when the world was 1 continent?",
"I dont know",
"Gonwanaland",
"Antartica",
"I dont believe it existed",
"One world!",
"b");
question.check();
question.showResults();

Question question1 =new MultipleChoiceQuestion(


"What year is it",
"2374",
"3451",
"4834",
"2021",
"1998",
"d");
question1.check();
question1.showResults();

Question question2 = new MultipleChoiceQuestion(


"Who was hitler",
"Leader of germany",
" A flower",
" A group of children",
" I dont know",
"A man",
"a");

question2.check();
question2.showResults();

Question question3 = new MultipleChoiceQuestion(


"Of the following name/symbol combinations of elements, which
one is WRONG?",
"uranium/U",
"sulfur/S",
"nitrogen/N",
"potassium/K",
"iron/I",
"e");
question3.check();
question3.showResults();

Question question4 = new MultipleChoiceQuestion(


"What is the volume of a 2.50 gram block of metal whose
density is 6.72 grams per cubic centimeter?",
"16.8 cubic centimeters",
"2.69 cubic centimeters",
"0.0595 cubic centimeters",
"0.372 cubic centimeters",
"1.60 cubic centimeters",
"d");
question4.check();
question4.showResults();

Question question5 = new TrueFalseQuestion (


"Is the earth round",
"True");
question5.check();
question5.showResults();

Question question6 = new TrueFalseQuestion(


"is java programming fun",
"True"
);
question6.check();
question6.showResults();

Question question7 = new TrueFalseQuestion(


"Is chocolate healthy",
"False"
);
question7.check();
question7.showResults();

Question question8 = new TrueFalseQuestion(


"Is a tropical island really paradise",
"True");
question8.check();
question8.showResults();

Question question9 = new TrueFalseQuestion(


"do you like listening to music",
"True");
question9.check();
question9.showResults();

{
}
}

You might also like