answersLogoWhite

0

import java.io.*;

public class QandA{

public static void main (String args[]) throws IOException{

BufferedReader dataIn = new BufferedReader(new InputStreamReader(System.in));

int Score = 0;

String q1 = "";

System.out.println("Q1: What is anything that occupies space and has mass?");

System.out.println("a: matter");

System.out.println("b: water");

System.out.println("c: molecule");

System.out.println("d: atom");

q1 = dataIn.readLine();

char a1 = q1.charAt(0);

switch(a1){

case 'a':

System.out.println(":)");

Score = Score + 1;

break;

case 'b':

System.out.println("Wrong Answer");

break;

case 'c':

System.out.println("Wrong Answer");

break;

case 'd':

System.out.println("Wrong Answer");

break;

default:

System.out.print("Wrong Answer");

}

String q2 = "";

System.out.println("Q2: What is the average of this numbers: 10,20 and 30?");

System.out.println("a: 20");

System.out.println("b: 50");

System.out.println("c: 15");

System.out.println("d: 30");

q2 = dataIn.readLine();

char a2 = q2.charAt(0);

switch(a2){

case 'a':

System.out.println(":)");

Score = Score + 1;

break;

case 'b':

System.out.println("Wrong Answer");

break;

case 'c':

System.out.println("Wrong Answer");

break;

case 'd':

System.out.println("Wrong Answer");

break;

default:

System.out.print("Wrong Answer");

}

String q3 = "";

System.out.println("Q3: Who is the current president of the Philippines?");

System.out.println("a: Benigno Aquino I");

System.out.println("b: Benigno Aquino II");

System.out.println("c: Benigno Aquino III");

System.out.println("d: Benigno Aquino IV");

q3 = dataIn.readLine();

char a3 = q3.charAt(0);

switch(a3){

case 'c':

System.out.println(":)");

Score = Score + 1;

break;

case 'b':

System.out.println("Wrong Answer");

break;

case 'a':

System.out.println("Wrong Answer");

break;

case 'd':

System.out.println("Wrong Answer");

break;

default:

System.out.print("Wrong Answer");

}

String q4 = "";

System.out.println("Q4: What is the product of 32 multiplied by 20?");

System.out.println("a: 540");

System.out.println("b: 640");

System.out.println("c: 740");

System.out.println("d: 620");

q4 = dataIn.readLine();

char a4 = q4.charAt(0);

switch(a4){

case 'b':

System.out.println(":)");

Score = Score + 1;

break;

case 'a':

System.out.println("Wrong Answer");

break;

case 'c':

System.out.println("Wrong Answer");

break;

case 'd':

System.out.println("Wrong Answer");

break;

default:

System.out.print("Wrong Answer");

}

String q5 = "";

System.out.println("Q5: What is the outermost layer of the earth?");

System.out.println("a: crust");

System.out.println("b: mantle");

System.out.println("c: outer core");

System.out.println("d: inner core");

q5 = dataIn.readLine();

char a5 = q5.charAt(0);

switch(a5){

case 'a':

System.out.println(":)");

Score = Score + 1;

break;

case 'b':

System.out.println("Wrong Answer");

break;

case 'c':

System.out.println("Wrong Answer");

break;

case 'd':

System.out.println("Wrong Answer");

break;

default:

System.out.print("Wrong Answer");

}

String q6 = "";

System.out.println("Q6: What is the study of morality and values?");

System.out.println("a: etiquette");

System.out.println("b: ethics");

System.out.println("c: logic");

System.out.println("d: epistemology");

q6 = dataIn.readLine();

char a6 = q6.charAt(0);

switch(a6){

case 'b':

System.out.println(":)");

Score = Score + 1;

break;

case 'a':

System.out.println("Wrong Answer");

break;

case 'c':

System.out.println("Wrong Answer");

break;

case 'd':

System.out.println("Wrong Answer");

break;

default:

System.out.print("Wrong Answer");

}

String q7 = "";

System.out.println("Q7: Who is the national hero of the Philippines?");

System.out.println("a: Miriam Santiago");

System.out.println("b: Andres Bonifacio");

System.out.println("c: Jose Rizal");

System.out.println("d: Juan Luna");

q7 = dataIn.readLine();

char a7 = q7.charAt(0);

switch(a7){

case 'c':

System.out.println(":)");

Score = Score + 1;

break;

case 'b':

System.out.println("Wrong Answer");

break;

case 'a':

System.out.println("Wrong Answer");

break;

case 'd':

System.out.println("Wrong Answer");

break;

default:

System.out.print("Wrong Answer");

}

String q8 = "";

System.out.println("Q8: Who created the 'Organon'?");

System.out.println("a: Plato");

System.out.println("b: Aristotle");

System.out.println("c: Pythagoras");

System.out.println("d: Galileo");

q8 = dataIn.readLine();

char a8 = q8.charAt(0);

switch(a8){

case 'b':

System.out.println(":)");

Score = Score + 1;

break;

case 'a':

System.out.println("Wrong Answer");

break;

case 'c':

System.out.println("Wrong Answer");

break;

case 'd':

System.out.println("Wrong Answer");

break;

default:

System.out.print("Wrong Answer");

}

String q9 = "";

System.out.println("Q9: Solve the ff. equation: 1x1+1-1x2+2-2 ");

System.out.println("a: 1");

System.out.println("b: 2");

System.out.println("c: 3");

System.out.println("d: 4");

q9 = dataIn.readLine();

char a9 = q9.charAt(0);

switch(a9){

case 'b':

System.out.println(":)");

Score = Score + 1;

break;

case 'a':

System.out.println("Wrong Answer");

break;

case 'c':

System.out.println("Wrong Answer");

break;

case 'd':

System.out.println("Wrong Answer");

break;

default:

System.out.print("Wrong Answer");

}

String q10 = "";

System.out.println("Q10: Who is the 1st person to land on the moon?");

System.out.println("a: Greg Armstrong");

System.out.println("b: David Armstrong");

System.out.println("c: Mark Armstrong");

System.out.println("d: Neil Armstrong");

q10 = dataIn.readLine();

char a10 = q10.charAt(0);

switch(a10){

case 'd':

System.out.println(":)");

Score = Score + 1;

break;

case 'b':

System.out.println("Wrong Answer");

break;

case 'c':

System.out.println("Wrong Answer");

break;

case 'a':

System.out.println("Wrong Answer");

break;

default:

System.out.print("Wrong Answer");

}

System.out.println("Your total score is:" + " " + Score);

}

}

User Avatar

Wiki User

12y ago

What else can I help you with?

Related Questions

How do you write a letter to the principal requesting the leaving certificate?

To write a letter to the principal requesting a leaving certificate, start by addressing the principal respectfully, stating your name, grade, and reason for needing the certificate. Provide any necessary details, such as personal information or identification number. Close the letter with a polite request for their prompt assistance and thank them for their attention.


How do you write a letter to principal requesting transfer certificate?

write a letter to principal for transfer certificate


How you Write Letter to Principal for School fees certificate for IT return?

certificate return letter


How do you write an application to the principal of college requesting him to arrange one day migration certificate form college.?

To write a letter requesting a one day migration certificate, address the principal respectfully in the salutation and mention your reason for needing the certificate for just a day. Explain your situation briefly, express gratitude for their consideration, and request instructions on how to proceed. End the letter with a polite closing.


How to write a letter to school principal for transfer certificate to make a new passport?

To write a letter to school principal for transfer certificate to make a new passport begin by dating the letter, and addressing it to the principal by name. Then, make the body of the letter short and simply ask for a transfer certificate. Sign the letter with your written name and type your name out under that.


How do you write a letter to the principal for school bornfide certificate?

To write a letter to the principal requesting a school bonafide certificate, you should start by addressing the principal respectfully. Clearly state your purpose for needing the certificate and provide any necessary details such as your name, class, and purpose of the request. Finally, thank the principal for their time and consideration.


How do you write a letter to principal requesting Transfer Certificate for uncompleted studies?

A letter should be written to the principal, when a person wants to receive a transfer certificate. The name of the uncompleted studies in be in the letter as well as the date of the transfer.


How do write a letter for certificate submission to principal?

To write a letter for certificate submission to the principal, address the letter to the principal, clearly state the purpose of the letter which is to submit a certificate, provide details about the certificate being submitted (such as the type of certificate and its relevance), and express gratitude for the opportunity to submit the certificate. Lastly, sign off with your name and contact information in case the principal needs to reach you.


How do you write request letter for getting transfer certificate and study certificate from college MBA?

how do you write request letter for getting transfer certificate and study certificate from college in MBA


How do you write a request letter to principal asking for Tc and sslc marks card?

When writing a request letter to the principal asking for Transfer Certificate (TC) and Secondary School Leaving Certificate (SSLC) marks card, it is important to start with a formal salutation addressing the principal. Clearly state the purpose of the letter, provide your personal details such as name, class, and admission number, and specify the documents you are requesting. Express gratitude for their attention to your request and request a timeline for when you can expect to receive the documents. Close the letter with a formal closing and your signature.


How do you write the Letter for getting the provisional certificate to the principal?

ToThe Principal ofGraduate School College for Women.Sub:- Requesting You to Issue me, my Intermediate Provisional CertificateRespected Mam,I am Anita Mahato, I was student of your college. I have done my I.A. from your college session 2005-2006, and after that I have also done my B.A.(Polytical Science) session 2008-2010 in your college.I have taken my all original certificate from your college except my Original provisional Certificate of Intermediate. So I am requesting you to mam please kindly issue me, my Original provisional Certificate of Intermediate.I hope you will see my humble request & provide me, my Original provisional Certificate of Intermediate as soon as possible.Thanking YouYour Sincerely StudentAnita Mahato


What is another name for college degree that begins with the letter c?

college diploma, certificate