Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
90 views

Quiz Java Source Code

The document contains a Java program that runs a sports quiz with 15 multiple choice questions. It tracks the user's score and provides feedback after each answer is submitted. The program offers questions about cricket players, Olympic medals, sports events/games, and more. It concludes by displaying the user's final score.

Uploaded by

prathamesh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
90 views

Quiz Java Source Code

The document contains a Java program that runs a sports quiz with 15 multiple choice questions. It tracks the user's score and provides feedback after each answer is submitted. The program offers questions about cricket players, Olympic medals, sports events/games, and more. It concludes by displaying the user's final score.

Uploaded by

prathamesh
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 49

import java.io.

*;

import java.lang.*;

public class QUIZ

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

int sc=0;

InputStreamReader read=new InputStreamReader(System.in);

BufferedReader in=new BufferedReader(read);

System.out.println("***WELCOME TO THE WORLD OF QUIZ LET US SEE


HOW FAR YOU CAN GO***");

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

System.out.println("1.***SPORTS***");

System.out.println("2.***INDIAN ECONOMY***");

System.out.println("3.***GENERAL KNOWLEDGE***");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int choice=Integer.parseInt(in.readLine());
if(choice==1)

System.out.println("`````GET READY FOR THE BRAIN STORM````");

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

System.out.println("YOU CAN JUST ENTER THE OPTION NUMBER WHICH


YOU FEEL TRUE");

System.out.println();

System.out.println("1)Which indian cricketer is popularly called


'jammy'");

System.out.println("=====1.sachin tendulkar======");

System.out.println("=====2.saurav ganguly======");

System.out.println("=====3.yuvraj singh======");

System.out.println("=====4.rahul dravid======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int aa=Integer.parseInt(in.readLine());

if(aa==4)

System.out.println("`````you are on the right track`````");

sc=sc+50;
System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS RAHUL DRAVID");

System.out.println();

System.out.println("2)which is the only cricketer to score a four


hundred(not out)?");

System.out.println("=====1.ricky ponting ======");

System.out.println("=====2.jacques kallis======");

System.out.println("=====3.brian lara======");

System.out.println("=====4.chris harris======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ab=Integer.parseInt(in.readLine());

if(ab==3)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);


}

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS BRIAN LARA ");

System.out.println();

System.out.println("3)what would the letters PB next to an athlete's


name signify?");

System.out.println("=====1.post box ======");

System.out.println("=====2.personal box======");

System.out.println("=====3.pin ball======");

System.out.println("=====4.play banned======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ac=Integer.parseInt(in.readLine());

if(ac==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

}
else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS PERSONAL BEST ");

System.out.println();

System.out.println("4)what is the shortest distance in a track and field


event where the runners are allowed to break lanes?");

System.out.println("=====1.200m ======");

System.out.println("=====2.800m======");

System.out.println("=====3.600m======");

System.out.println("=====4.400m======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ad=Integer.parseInt(in.readLine());

if(ad==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS 800m ");

System.out.println();

System.out.println("5)the standard colours of which sporting event are


green and purple?");

System.out.println("=====1.davis cup ======");

System.out.println("=====2.asia cup ======");

System.out.println("=====3.wimbledon======");

System.out.println("=====4.euro cup ======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ae=Integer.parseInt(in.readLine());

if(ae==3)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS WIMBLEDON ");

System.out.println();

System.out.println("6)the olympic gold medal consists 5.2% of which


metal?");

System.out.println("=====1.gold ======");

System.out.println("=====2.platinum ======");

System.out.println("=====3.silver======");

System.out.println("=====4.copper======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int af=Integer.parseInt(in.readLine());

if(af==1)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS GOLD ");

System.out.println();

System.out.println("7)which of these games is officially played only by


girls?");

System.out.println("=====1.volley ball======");

System.out.println("=====2.net ball ======");

System.out.println("=====3.base ball======");

System.out.println("=====4.lawn tennis ======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ag=Integer.parseInt(in.readLine());

if(ag==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS NET BALL ");

System.out.println();

System.out.println("8)who was the first cricketer to score 1000test


runs,played 100test matches and took 100test catches?");

System.out.println("=====1.garfield sobers======");

System.out.println("=====2.allan donald======");

System.out.println("=====3.ian chappel======");

System.out.println("=====4.kapil dev======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ah=Integer.parseInt(in.readLine());

if(ah==1)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS GARFIELD SOBERS");

System.out.println();

System.out.println("9)how many players are there in the game of basket


ball?");

System.out.println("=====1.5 ======");

System.out.println("=====2.6 ======");

System.out.println("=====3.8======");

System.out.println("=====4.11 ======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ai=Integer.parseInt(in.readLine());

if(ai==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS 6");

System.out.println();

System.out.println("10)when was the first common wealth games


held?");

System.out.println("=====1.1930 ======");

System.out.println("=====2.1934======");

System.out.println("=====3.1938======");

System.out.println("=====4.1948======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int aj=Integer.parseInt(in.readLine());

if(aj==1)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS 1930");

System.out.println();

System.out.println("11)The FIFA World Cup 2018 was be held in?");

System.out.println("=====1.madrid======");

System.out.println("=====2.tokyo======");

System.out.println("=====3.Buenos Aires======");

System.out.println("=====4.Istanbul======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ak=Integer.parseInt(in.readLine());

if(ak==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS TOKYO");
System.out.println();

System.out.println("12)Antony De Mello Trophy is associated with test


cricket series played between?");

System.out.println("=====1.Australia and India======");

System.out.println("=====2.England and India======");

System.out.println("=====3.South Africa and India======");

System.out.println("=====4.England and Australia======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int al=Integer.parseInt(in.readLine());

if(al==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS ENGLAND AND INDIA");

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======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int am=Integer.parseInt(in.readLine());

if(am==4)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS 64");

System.out.println();

System.out.println("14)Which of the following countries has not been a


host of Asian Games?");
System.out.println("=====1.Iran======");

System.out.println("=====2.Pakistan======");

System.out.println("=====3.Thailand======");

System.out.println("=====4.Philippines======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int an=Integer.parseInt(in.readLine());

if(an==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS PAKISTAN");

System.out.println();

System.out.println("15)India first won the Olympic Hockey gold at?");

System.out.println("=====1.Los Angeles======");

System.out.println("=====2.Amsterdam======");
System.out.println("=====3.Berlin======");

System.out.println("=====4.London======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ao=Integer.parseInt(in.readLine());

if(ao==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS AMSTERDAM");

System.out.println("%%%%%FINALLY YOU HAVE


SCORED="+sc+"POINTS%%%%%%");

if(sc<200)

System.out.println("!!!!!SORRY! WE DON'T HAVE A PRIZE FOR YOU!!!!!");

if(sc>=200&&sc<500)
System.out.println("!!!!!CONGRATULATIONS! YOU WIN A BIG GRAND
CHEQUE OF Rs50000!!!");

if(sc>500&&sc<=750)

System.out.println("!!!!!CONGRATULATIONS! YOU WIN A BIG GRAND


CHEQUE OF Rs100000!!!!");

if(choice==2)

System.out.println("1)which country is the largest producer of milk?");

System.out.println("=====1.china ======");

System.out.println("=====2.japan ======");

System.out.println("=====3.india======");

System.out.println("=====4.pakistan ======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ba=Integer.parseInt(in.readLine());

if(ba==3)

System.out.println("`````you are on the right track`````");


sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS INDIA");

System.out.println();

System.out.println("2)In India, which of the following has the highest


share in the disbursement of credit to agriculture and allied activities??");

System.out.println("=====1.Co-operative Banks ======");

System.out.println("=====2.Commercial Banks ======");

System.out.println("=====3.Microfinance Institutions======");

System.out.println("=====4.Regional Rural Banks======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int bb=Integer.parseInt(in.readLine());

if(bb==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;
System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS COMMERCIAL BANKS");

System.out.println();

System.out.println("3)Which one of the following agencies assigns the


Agricultural Income Tax to States in India? ?");

System.out.println("=====1.Agriculture Finance Corporation======");

System.out.println("=====2.National Development Council ======");

System.out.println("=====3.Finance commission======");

System.out.println("=====4.Inter State Council======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int bc=Integer.parseInt(in.readLine());

if(bc==3)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);


}

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS FINANCE COMMISSION");

System.out.println();

System.out.println("4)NABARD was established in the?");

System.out.println("=====1.Fourth Five year Plan ======");

System.out.println("=====2.Fifth Five Year Plan ======");

System.out.println("=====3.Sixth Five Year Plan======");

System.out.println("=====4.Eighth Five Year Plan ======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int bd=Integer.parseInt(in.readLine());

if(bd==3)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS SIXTH FIVE YEAR PLAN");

System.out.println();

System.out.println("5)Which one of the following methods of soil


conservation is most effective in ariel areas?");

System.out.println("=====1.Mulching ======");

System.out.println("=====2.Shelter belt ======");

System.out.println("=====3.Gully plugging ======");

System.out.println("=====4.Terracing======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int be=Integer.parseInt(in.readLine());

if(be==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS SHELTER BELT");

System.out.println();

System.out.println("6)Rashtriya Krishi Vika Yojna was launched in the


year?");

System.out.println("=====1.2005 ======");

System.out.println("=====2.2007 ======");

System.out.println("=====3.2008======");

System.out.println("=====4.2009======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int bf=Integer.parseInt(in.readLine());

if(bf==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS 2007");

System.out.println();

System.out.println("7)The head office of the National Bank for Agriculture


and Rural Development(NABARD)?");

System.out.println("=====1.Hyderabad======");

System.out.println("=====2.Lucknow======");

System.out.println("=====3.New Delhi======");

System.out.println("=====4.Mumbai======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int bg=Integer.parseInt(in.readLine());

if(bg==4)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS MUMBAI");

System.out.println();

System.out.println("8)The Blue Revolution is related with?");

System.out.println("=====1.Oilseed production======");

System.out.println("=====2.Fish production======");

System.out.println("=====3.Milk production======");

System.out.println("=====4.Food grain production======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int bh=Integer.parseInt(in.readLine());

if(bh==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS FISH PRODUCTION");
System.out.println();

System.out.println("9)Which one of the following co-operative societies is


responsible for the production of fertilizers?");

System.out.println("=====1.NAFED======");

System.out.println("=====2.TRI FED======");

System.out.println("=====3.NCDC======");

System.out.println("=====4.IFFCO======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int bi=Integer.parseInt(in.readLine());

if(bi==4)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS IFFCO");

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======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int bj=Integer.parseInt(in.readLine());

if(bj==4)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS WHEAT");

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======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int bk=Integer.parseInt(in.readLine());

if(bk==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS CUTTACK");

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======");

System.out.println("=====4.M.S. Swaminathan ======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int bl=Integer.parseInt(in.readLine());

if(bl==3)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS V.KURIEN");

System.out.println();

System.out.println("13)Green Revolution in India started from?");


System.out.println("=====1.Kanpur======");

System.out.println("=====2.Delhi======");

System.out.println("=====3.Bangalore======");

System.out.println("=====4.Pant Nagar======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int bm=Integer.parseInt(in.readLine());

if(bm==4)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS PANT NAGAR");

System.out.println();

System.out.println("14)Swaroop committee is associated with?");

System.out.println("=====1.Banking======");

System.out.println("=====2.Capital marketing======");
System.out.println("=====3.Sugar marketing======");

System.out.println("=====4.Financial products marketing======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int bn=Integer.parseInt(in.readLine());

if(bn==4)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS FINANCIAL PRODUCTS MARKETING");

System.out.println();

System.out.println("15)Which one of the following five year plans has the


highest GDP growth rate in Agriculture sector in India?");

System.out.println("=====1.Sixth Five Year Plan======");

System.out.println("=====2.Seventh Five Year Plan======");

System.out.println("=====3.Eighth Five Year Plan======");


System.out.println("=====4.Ninth Five Year Plan======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int bo=Integer.parseInt(in.readLine());

if(bo==3)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS EIGHTH FIVE YEAR PLAN");

System.out.println("%%%%%FINALLY YOU HAVE


SCORED="+sc+"POINTS%%%%%%");

if(sc<200)

System.out.println("!!!!!SORRY! WE DON'T HAVE A PRIZE FOR YOU!!!!!");

if(sc>=200&&sc<500)
System.out.println("!!!!!CONGRATULATIONS! YOU WIN A BIG GRAND
CHEQUE OF Rs50000!!!");

if(sc>500&&sc<=750)

System.out.println("!!!!!CONGRATULATIONS! YOU WIN A BIG GRAND


CHEQUE OF Rs100000!!!!");

if(choice==3)

System.out.println("1)something beautiful for god is a book by malcolm


muggeridge. who is the subject of this book?");

System.out.println("=====1.mother teresa======");

System.out.println("=====2.arundhati roy======");

System.out.println("=====3.ameliya arhart======");

System.out.println("=====4.rabindranath tagore======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ca=Integer.parseInt(in.readLine());

if(ca==1)

{
System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS MOTHER TERESA");

System.out.println();

System.out.println("2)which indian has the most number of roads named


after him?");

System.out.println("=====1.mahatma gandhi======");

System.out.println("=====2.B.R.ambedkar======");

System.out.println("=====3.subhash chandra bose======");

System.out.println("=====4.jawahar lal nehru======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int cb=Integer.parseInt(in.readLine());

if(cb==1)

System.out.println("`````you are on the right track`````");


sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS MAHATMA GANDHI");

System.out.println();

System.out.println("3)if an indian army officer has three stars on his car


plate, what is his rank?");

System.out.println("=====1.captain======");

System.out.println("=====2.brigadier======");

System.out.println("=====3.lieuntenant general======");

System.out.println("=====4.major======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int cc=Integer.parseInt(in.readLine());

if(cc==3)

System.out.println("`````you are on the right track`````");

sc=sc+50;
System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS LIEUTENTANT GENERAL");

System.out.println();

System.out.println("4)who made his film debut in 'saat hindustaani'?");

System.out.println("=====1.dharmendra======");

System.out.println("=====2.amithbh bachchan======");

System.out.println("=====3.rajesh khanna======");

System.out.println("=====4.jitendra======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int cd=Integer.parseInt(in.readLine());

if(cd==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

}
else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS AMITHBH BACHCHAN");

System.out.println();

System.out.println("5)what did charlie chaplin always carry in his hand?");

System.out.println("=====1.stick======");

System.out.println("=====2.bag======");

System.out.println("=====3.hat======");

System.out.println("=====4.cartoon mask======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ce=Integer.parseInt(in.readLine());

if(ce==1)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else
System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT
ANSWER IS STICK");

System.out.println();

System.out.println("6)in which country was the chess invented?");

System.out.println("=====1.india======");

System.out.println("=====2.china======");

System.out.println("=====3.japan======");

System.out.println("=====4.australia======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int cf=Integer.parseInt(in.readLine());

if(cf==1)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS MILK");
System.out.println();

System.out.println("7)the colour of the highest belt in karate is black.


what is the colour of the lowest belt?");

System.out.println("=====1.red======");

System.out.println("=====2.blue======");

System.out.println("=====3.white======");

System.out.println("=====4.yellow======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int cg=Integer.parseInt(in.readLine());

if(cg==3)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS WHITE");

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======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ch=Integer.parseInt(in.readLine());

if(ch==1)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS JUNE 21");

System.out.println();

System.out.println("9)if your mother was a horticulturist, what would she


be interested in?");
System.out.println("=====1.flowers and gardening======");

System.out.println("=====2.cosmetics======");

System.out.println("=====3.space======");

System.out.println("=====4.medicine======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

String v11=in.readLine();

int ci=Integer.parseInt(in.readLine());

if(ci==1)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS FLOWERS AND GARDENING");

System.out.println();

System.out.println("10)The mineral in which India depends largely on


imports is?");
System.out.println("=====1.Iron Ore======");

System.out.println("=====2.Bauxite======");

System.out.println("=====3.Mica======");

System.out.println("=====4.Mercury======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int cj=Integer.parseInt(in.readLine());

if(cj==4)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS MERCURY");

System.out.println();

System.out.println("11)The last Mughal Emperor was?");

System.out.println("=====1.Akbar======");

System.out.println("=====2.Bahadur Shah======");
System.out.println("=====3.NoorJehan======");

System.out.println("=====4.Iltumish======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int ck=Integer.parseInt(in.readLine());

if(ck==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS BAHADUR SHAH");

System.out.println();

System.out.println("12)The state which leads in agricultural production


is?");

System.out.println("=====1.Haryana======");

System.out.println("=====2.Punjab======");

System.out.println("=====3.Karnataka======");
System.out.println("=====4.Tamil Nadu======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int cl=Integer.parseInt(in.readLine());

if(cl==2)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS PUNJAB");

System.out.println();

System.out.println("13)The longest mountain range in the world is?");

System.out.println("=====1.The Alps======");

System.out.println("=====2.The Himalayas======");

System.out.println("=====3.The Andes======");

System.out.println("=====4.The Rockies======");

System.out.println("+++++ENTER YOUR CHOICE+++++");


int cm=Integer.parseInt(in.readLine());

if(cm==3)

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS THE ANDES");

System.out.println();

System.out.println("14)The most populous city in the world is?");

System.out.println("=====1.Paris======");

System.out.println("=====2.London======");

System.out.println("=====3.Peking ======");

System.out.println("=====4.Tokyo ======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int cn=Integer.parseInt(in.readLine());

if(cn==4)
{

System.out.println("`````you are on the right track`````");

sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS TOKYO");

System.out.println();

System.out.println("15)National Integration Day is celebrated on?");

System.out.println("=====1.Oct 4 ======");

System.out.println("=====2.Oct 31 ======");

System.out.println("=====3.Nov 14======");

System.out.println("=====4.Nov 19======");

System.out.println("+++++ENTER YOUR CHOICE+++++");

int co=Integer.parseInt(in.readLine());

if(co==1)

System.out.println("`````you are on the right track`````");


sc=sc+50;

System.out.println("YOUR SCORE IS" +sc);

else

System.out.println("SORRY BETTER LUCK NEXT TIME THE CORRECT


ANSWER IS OCT 4");

System.out.println("%%%%%FINALLY YOU HAVE


SCORED="+sc+"POINTS%%%%%%");

if(sc<200)

System.out.println("!!!!!SORRY! WE DON'T HAVE A PRIZE FOR YOU!!!!!");

if(sc>=200&&sc<500)

System.out.println("!!!!!CONGRATULATIONS! YOU WIN A BIG GRAND


CHEQUE OF Rs50000!!!");

if(sc>500&&sc<=750)

System.out.println("!!!!!CONGRATULATIONS! YOU WIN A BIG GRAND


CHEQUE OF Rs100000!!!!");

}
}

You might also like