import java.io.*; //Required for Input
class Quiz
{
public static void main(String[] args) throws IOException
{
BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
String answer="";
String quit="";
double average=0.0;
double correct=0.0;
while(quit.equals("n"));
{
System.out.println("Welcome to the Biology Quiz game, you will be asked 10 biology related questions");
System.out.println("1. What is a bacteriaphage?");
System.out.println("a) Virii that attack and kill bacteria");
System.out.println("b) The bacterial DNA stored in the nucleoid");
System.out.println("c) an Agent that is designed to attack and break down bacteria");
System.out.println("d) The cycle in which bacteria prepare for binary fission");
answer=stdin.readLine();
if(answer.equals("a"))
{
correct=correct+1;
}
else
{
System.out.println("Sorry, the correct answer was a)");
}
System.out.println(answer);
System.out.println("2. Mendel's Law of Segregation states that");
System.out.println("a) Individuals with contrasting traits are crossed, the offspring will express only the dominant trait");
System.out.println("b) Genes of contrasting traits will seperate from the chromatid");
System.out.println("c) inherited traits are determined by the nucleotide");
System.out.println("d) inherited traits are determined by the genes");
answer=stdin.readLine();
if(answer.equals("d"))
{
correct=correct+1;
}
else
{
System.out.println("Sorry, the correct answer was d)");
}
System.out.println("3. What are the stages of Mitosis?");
System.out.println("a) Prophase,Anaphase,Telophase,Metaphase");
System.out.println("b) Prophase,Anaphase,Metaphase,Telophase");
System.out.println("c) Prophase,Metaphase,Anaphase,Telophase");
System.out.println("d) Prophase,Telophase.Metaphase,Anaphase");
answer=stdin.readLine();
if(answer.equals("c"))
{
correct=correct+1;
}
else
{
System.out.println("Sorry, the correct answer was c)");
}
System.out.println("4. What is a protien?");
System.out.println("a) Anabolic Steroid");
System.out.println("b) Macromolecule");
System.out.println("c) Lipid");
System.out.println("d) Saccharide");
answer=stdin.readLine();
if(answer.equals("b"))
{
correct=correct+1;
}
else
{
System.out.println("Sorry, the correct answer was b)");
}
System.out.println("5. What does a Plantcell have that an Animal cell doesnt?");
System.out.println("a) Cell Wall and Chloroplasts");
System.out.println("b) Cell Wall,Cholorplasts,and Cytotrides");
System.out.println("c) Vacuole,Cell Wall,Chloroplasts");
System.out.println("d) Glucogens,Cell Wall,Chloroplasts");
answer=stdin.readLine();
if(answer.equals("a"))
{
correct=correct+1;
}
else
{
System.out.println("Sorry, the correct answer was a)");
}
System.out.println("6. What are the processes of Mitosis?");
System.out.println("a) Prophase,Anaphase,Metaphase,Telophase");
System.out.println("b) Prophase,Telophase,Metaphase,Anaphase");
System.out.println("c) Prophase,Metaphase,Anaphase,Telophase");
System.out.println("d) Metaphase,Prophase,Anaphase,Telophase");
answer=stdin.readLine();
if(answer.equals("c"))
{
correct=correct+1;
}
else
{
System.out.println("Sorry, the correct answer was c)");
}
System.out.println("7. What is the unit used to measure cellular energy?");
System.out.println("a) CCP");
System.out.println("b) PCTP");
System.out.println("c) ACP");
System.out.println("d) ATP");
answer=stdin.readLine();
if(answer.equals("d"))
{
correct=correct+1;
}
else
{
System.out.println("Sorry, the correct answer was d)");
}
System.out.println("8. What are the products of photosynthesis?");
System.out.println("a) Oxygen and Sugar");
System.out.println("b) Water, Oxygen, and Sugar");
System.out.println("c) Oxygen,Carbon Dioxide");
System.out.println("d) Oxygen and Cellulose");
answer=stdin.readLine();
if(answer.equals("a"))
{
correct=correct+1;
}
else
{
System.out.println("Sorry, the correct answer was a)");
}
System.out.println("9. What are two reproduction methods Viruses use to reproduce?");
System.out.println("a) Lytic and Lysogenic Cycle");
System.out.println("b) Virokinesis and Binary Fission");
System.out.println("c) Lytic and and Binary Fission");
System.out.println("d) Mitosis and Meiosis");
answer=stdin.readLine();
if(answer.equals("a"))
{
correct=correct+1;
}
else
{
System.out.println("Sorry, the correct answer was a)");
}
System.out.println("10. How many chromosomes in a Human somatic cell");
System.out.println("a) 23N");
System.out.println("b) 46");
System.out.println("c) 96");
System.out.println("d) 46N");
answer=stdin.readLine();
if(answer.equals("b"))
{
correct=correct+1;
}
else
{
System.out.println("Sorry, the correct answer was b)");
}
average=(correct)/(10)*(100);
System.out.println("You answered:"+correct+" out of 10 correct");
System.out.println("Your Score is:"+average+"%");
System.out.println("Would you like to quit(y/n)?");
quit=stdin.readLine();
if(quit.equals("y"))
{
correct=0;
average=0.0;
}
else
{
System.out.println("Restarting..");
correct=0;
average=0.0;
}
}
}
}
|