Quiz Java Source Code
Quiz Java Source Code
*;
import java.lang.*;
int sc=0;
System.out.println("===========================================
=====================");
System.out.println("1.***SPORTS***");
System.out.println("2.***INDIAN ECONOMY***");
System.out.println("3.***GENERAL KNOWLEDGE***");
int choice=Integer.parseInt(in.readLine());
if(choice==1)
System.out.println("`````````````````````````````````````````");
System.out.println();
System.out.println("=====1.sachin tendulkar======");
System.out.println("=====2.saurav ganguly======");
System.out.println("=====3.yuvraj singh======");
System.out.println("=====4.rahul dravid======");
int aa=Integer.parseInt(in.readLine());
if(aa==4)
sc=sc+50;
System.out.println("YOUR SCORE IS" +sc);
else
System.out.println();
System.out.println("=====2.jacques kallis======");
System.out.println("=====3.brian lara======");
System.out.println("=====4.chris harris======");
int ab=Integer.parseInt(in.readLine());
if(ab==3)
sc=sc+50;
else
System.out.println();
System.out.println("=====2.personal box======");
System.out.println("=====3.pin ball======");
System.out.println("=====4.play banned======");
int ac=Integer.parseInt(in.readLine());
if(ac==2)
sc=sc+50;
}
else
System.out.println();
System.out.println("=====1.200m ======");
System.out.println("=====2.800m======");
System.out.println("=====3.600m======");
System.out.println("=====4.400m======");
int ad=Integer.parseInt(in.readLine());
if(ad==2)
sc=sc+50;
else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS 800m ");
System.out.println();
System.out.println("=====3.wimbledon======");
int ae=Integer.parseInt(in.readLine());
if(ae==3)
sc=sc+50;
else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS WIMBLEDON ");
System.out.println();
System.out.println("=====1.gold ======");
System.out.println("=====2.platinum ======");
System.out.println("=====3.silver======");
System.out.println("=====4.copper======");
int af=Integer.parseInt(in.readLine());
if(af==1)
sc=sc+50;
else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS GOLD ");
System.out.println();
System.out.println("=====1.volley ball======");
System.out.println("=====3.base ball======");
int ag=Integer.parseInt(in.readLine());
if(ag==2)
sc=sc+50;
else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS NET BALL ");
System.out.println();
System.out.println("=====1.garfield sobers======");
System.out.println("=====2.allan donald======");
System.out.println("=====3.ian chappel======");
System.out.println("=====4.kapil dev======");
int ah=Integer.parseInt(in.readLine());
if(ah==1)
sc=sc+50;
else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS GARFIELD SOBERS");
System.out.println();
System.out.println("=====1.5 ======");
System.out.println("=====2.6 ======");
System.out.println("=====3.8======");
System.out.println("=====4.11 ======");
int ai=Integer.parseInt(in.readLine());
if(ai==2)
sc=sc+50;
else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS 6");
System.out.println();
System.out.println("=====1.1930 ======");
System.out.println("=====2.1934======");
System.out.println("=====3.1938======");
System.out.println("=====4.1948======");
int aj=Integer.parseInt(in.readLine());
if(aj==1)
sc=sc+50;
else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS 1930");
System.out.println();
System.out.println("=====1.madrid======");
System.out.println("=====2.tokyo======");
System.out.println("=====3.Buenos Aires======");
System.out.println("=====4.Istanbul======");
int ak=Integer.parseInt(in.readLine());
if(ak==2)
sc=sc+50;
else
int al=Integer.parseInt(in.readLine());
if(al==2)
sc=sc+50;
else
System.out.println();
System.out.println("13)How many squares are there in a Chess Board?");
System.out.println("=====1.24======");
System.out.println("=====2.36======");
System.out.println("=====3.48======");
System.out.println("=====4.64======");
int am=Integer.parseInt(in.readLine());
if(am==4)
sc=sc+50;
else
System.out.println();
System.out.println("=====2.Pakistan======");
System.out.println("=====3.Thailand======");
System.out.println("=====4.Philippines======");
int an=Integer.parseInt(in.readLine());
if(an==2)
sc=sc+50;
else
System.out.println();
System.out.println("=====1.Los Angeles======");
System.out.println("=====2.Amsterdam======");
System.out.println("=====3.Berlin======");
System.out.println("=====4.London======");
int ao=Integer.parseInt(in.readLine());
if(ao==2)
sc=sc+50;
else
if(sc<200)
if(sc>=200&&sc<500)
System.out.println("!!!!!CONGRATULATIONS! YOU WIN A BIG GRAND
CHEQUE OF Rs50000!!!");
if(sc>500&&sc<=750)
if(choice==2)
System.out.println("=====1.china ======");
System.out.println("=====2.japan ======");
System.out.println("=====3.india======");
System.out.println("=====4.pakistan ======");
int ba=Integer.parseInt(in.readLine());
if(ba==3)
else
System.out.println();
System.out.println("=====3.Microfinance Institutions======");
int bb=Integer.parseInt(in.readLine());
if(bb==2)
sc=sc+50;
System.out.println("YOUR SCORE IS" +sc);
else
System.out.println();
System.out.println("=====3.Finance commission======");
int bc=Integer.parseInt(in.readLine());
if(bc==3)
sc=sc+50;
else
System.out.println();
int bd=Integer.parseInt(in.readLine());
if(bd==3)
sc=sc+50;
else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS SIXTH FIVE YEAR PLAN");
System.out.println();
System.out.println("=====1.Mulching ======");
System.out.println("=====4.Terracing======");
int be=Integer.parseInt(in.readLine());
if(be==2)
sc=sc+50;
else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS SHELTER BELT");
System.out.println();
System.out.println("=====1.2005 ======");
System.out.println("=====2.2007 ======");
System.out.println("=====3.2008======");
System.out.println("=====4.2009======");
int bf=Integer.parseInt(in.readLine());
if(bf==2)
sc=sc+50;
else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS 2007");
System.out.println();
System.out.println("=====1.Hyderabad======");
System.out.println("=====2.Lucknow======");
System.out.println("=====3.New Delhi======");
System.out.println("=====4.Mumbai======");
int bg=Integer.parseInt(in.readLine());
if(bg==4)
sc=sc+50;
else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS MUMBAI");
System.out.println();
System.out.println("=====1.Oilseed production======");
System.out.println("=====2.Fish production======");
System.out.println("=====3.Milk production======");
int bh=Integer.parseInt(in.readLine());
if(bh==2)
sc=sc+50;
else
System.out.println("=====1.NAFED======");
System.out.println("=====2.TRI FED======");
System.out.println("=====3.NCDC======");
System.out.println("=====4.IFFCO======");
int bi=Integer.parseInt(in.readLine());
if(bi==4)
sc=sc+50;
else
System.out.println();
System.out.println("10)The impact of the Green Revolution was felt most
in the production of?");
System.out.println("=====1.Rice======");
System.out.println("=====2.Pulses======");
System.out.println("=====3.Oilseeds======");
System.out.println("=====4.Wheat======");
int bj=Integer.parseInt(in.readLine());
if(bj==4)
sc=sc+50;
else
System.out.println();
System.out.println("11)Where is the central Rice Research institute
located?");
System.out.println("=====1.Kanpur======");
System.out.println("=====2.Cuttack======");
System.out.println("=====3.Bangalore======");
System.out.println("=====4.Coimbatore======");
int bk=Integer.parseInt(in.readLine());
if(bk==2)
sc=sc+50;
else
System.out.println();
System.out.println("12)Who is known as the father of 'White Revolution'
in India?");
System.out.println("=====1.B.P. Pal======");
System.out.println("=====2.K.N. Bhal======");
System.out.println("=====3.V. Kurien======");
int bl=Integer.parseInt(in.readLine());
if(bl==3)
sc=sc+50;
else
System.out.println();
System.out.println("=====2.Delhi======");
System.out.println("=====3.Bangalore======");
System.out.println("=====4.Pant Nagar======");
int bm=Integer.parseInt(in.readLine());
if(bm==4)
sc=sc+50;
else
System.out.println();
System.out.println("=====1.Banking======");
System.out.println("=====2.Capital marketing======");
System.out.println("=====3.Sugar marketing======");
int bn=Integer.parseInt(in.readLine());
if(bn==4)
sc=sc+50;
else
System.out.println();
int bo=Integer.parseInt(in.readLine());
if(bo==3)
sc=sc+50;
else
if(sc<200)
if(sc>=200&&sc<500)
System.out.println("!!!!!CONGRATULATIONS! YOU WIN A BIG GRAND
CHEQUE OF Rs50000!!!");
if(sc>500&&sc<=750)
if(choice==3)
System.out.println("=====1.mother teresa======");
System.out.println("=====2.arundhati roy======");
System.out.println("=====3.ameliya arhart======");
System.out.println("=====4.rabindranath tagore======");
int ca=Integer.parseInt(in.readLine());
if(ca==1)
{
System.out.println("`````you are on the right track`````");
sc=sc+50;
else
System.out.println();
System.out.println("=====1.mahatma gandhi======");
System.out.println("=====2.B.R.ambedkar======");
int cb=Integer.parseInt(in.readLine());
if(cb==1)
else
System.out.println();
System.out.println("=====1.captain======");
System.out.println("=====2.brigadier======");
System.out.println("=====3.lieuntenant general======");
System.out.println("=====4.major======");
int cc=Integer.parseInt(in.readLine());
if(cc==3)
sc=sc+50;
System.out.println("YOUR SCORE IS" +sc);
else
System.out.println();
System.out.println("=====1.dharmendra======");
System.out.println("=====2.amithbh bachchan======");
System.out.println("=====3.rajesh khanna======");
System.out.println("=====4.jitendra======");
int cd=Integer.parseInt(in.readLine());
if(cd==2)
sc=sc+50;
}
else
System.out.println();
System.out.println("=====1.stick======");
System.out.println("=====2.bag======");
System.out.println("=====3.hat======");
System.out.println("=====4.cartoon mask======");
int ce=Integer.parseInt(in.readLine());
if(ce==1)
sc=sc+50;
else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS STICK");
System.out.println();
System.out.println("=====1.india======");
System.out.println("=====2.china======");
System.out.println("=====3.japan======");
System.out.println("=====4.australia======");
int cf=Integer.parseInt(in.readLine());
if(cf==1)
sc=sc+50;
else
System.out.println("=====1.red======");
System.out.println("=====2.blue======");
System.out.println("=====3.white======");
System.out.println("=====4.yellow======");
int cg=Integer.parseInt(in.readLine());
if(cg==3)
sc=sc+50;
else
System.out.println();
System.out.println("8)which day is said to be the longest day?");
System.out.println("=====1.june 21======");
System.out.println("=====2.january 15======");
System.out.println("=====3.july 16======");
System.out.println("=====4.december21======");
int ch=Integer.parseInt(in.readLine());
if(ch==1)
sc=sc+50;
else
System.out.println();
System.out.println("=====2.cosmetics======");
System.out.println("=====3.space======");
System.out.println("=====4.medicine======");
String v11=in.readLine();
int ci=Integer.parseInt(in.readLine());
if(ci==1)
sc=sc+50;
else
System.out.println();
System.out.println("=====2.Bauxite======");
System.out.println("=====3.Mica======");
System.out.println("=====4.Mercury======");
int cj=Integer.parseInt(in.readLine());
if(cj==4)
sc=sc+50;
else
System.out.println();
System.out.println("=====1.Akbar======");
System.out.println("=====2.Bahadur Shah======");
System.out.println("=====3.NoorJehan======");
System.out.println("=====4.Iltumish======");
int ck=Integer.parseInt(in.readLine());
if(ck==2)
sc=sc+50;
else
System.out.println();
System.out.println("=====1.Haryana======");
System.out.println("=====2.Punjab======");
System.out.println("=====3.Karnataka======");
System.out.println("=====4.Tamil Nadu======");
int cl=Integer.parseInt(in.readLine());
if(cl==2)
sc=sc+50;
else
System.out.println();
System.out.println("=====1.The Alps======");
System.out.println("=====2.The Himalayas======");
System.out.println("=====3.The Andes======");
System.out.println("=====4.The Rockies======");
if(cm==3)
sc=sc+50;
else
System.out.println();
System.out.println("=====1.Paris======");
System.out.println("=====2.London======");
System.out.println("=====3.Peking ======");
System.out.println("=====4.Tokyo ======");
int cn=Integer.parseInt(in.readLine());
if(cn==4)
{
sc=sc+50;
else
System.out.println();
System.out.println("=====1.Oct 4 ======");
System.out.println("=====2.Oct 31 ======");
System.out.println("=====3.Nov 14======");
System.out.println("=====4.Nov 19======");
int co=Integer.parseInt(in.readLine());
if(co==1)
else
if(sc<200)
if(sc>=200&&sc<500)
if(sc>500&&sc<=750)
}
}