You are on page 1of 13

//Program that displays questions and four choices of answers.

//The user enters the answer and accordingly his score is calculated.
import java.io.*;
import java.lang.*;
public class ads
{
public static void main (String []args)throws IOException
{
System.out.println("***BENCHMARK QUIZ CONTEST,RANAGHAT ***");

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

System.out.println("=================================================
================");
System.out.println("1.***KHEL KHUD***");
System.out.println("2.***KHANA PINA***");
System.out.println("3.***ETC***");
System.out.println();

System.out.println("=================================================
=================");
System.out.println("+++ENTER YOUR CHOICE+++");
InputStreamReader reader= new InputStreamReader(System.in);
BufferedReader input= new BufferedReader(reader);
String x1= input.readLine();
int choice=Integer.parseInt(x1);
switch (choice)
case 1:
{
int sc=0;
System.out.println("^^^GET READY FOR THE BRAIN STORM^^^");
System.out.println("~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~");
System.out.println();
System.out.println("***Which English Premier League team play their home
game in CRAVEN COTTAGE***");
System.out.println("###1.Aston Villa###");
System.out.println("###2.Middesbrough###");
System.out.println("###3.Tottenham ###");
System.out.println("###4.Fulham###");
System.out.println("==========ENTER YOUR CHOICE==========");
String n2=input.readLine();
int v=Integer.parseInt(n2);
if(v==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 FULHAM^^^");
}
System.out.println("***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=====");
String n=input.readLine();
int a=Integer.parseInt(n);
if(a==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("***What would the letter PB next to an athlete's name
signify?***");
System.out.println("###1.Post Box###");
System.out.println("###2.Personal Best###");
System.out.println("###3.Pin Ball###");
System.out.println("###4.Play Banned###");
System.out.println("=====ENTER YOUR CHOICE");
String m1=input.readLine();
int k1=Integer.parseInt(m1);
if(k1==2)
{
System.out.println("~~~~~YOUR 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("***What is the shortest distance in track & field event where
the runners are allowed to break lanes?***");
System.out.println("###1.1,200m###");
System.out.println("###2.2,800m###");
System.out.println("###3.3,600m###");
System.out.println("###4.4,400m###");
System.out.println("=====ENTER YOUR CHOICE=====");
String s1=input.readLine();
int r=Integer.parseInt(s1);
if(r==2)
{
System.out.println("~~~~~YOUR 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 2,8000m^^^^^");
}
System.out.println("***The standard colors 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=====");
String t1=input.readLine();
int h1=Integer.parseInt(t1);
if(h1==3)
{
System.out.println("~~~~~YOUR 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("***The Olympic Gold Medal consists of 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=====");
Sring b=input.readLine();
int z =integer.parseInt(b);
if(z==1)
{
System.out.println("~~~~~YOUR 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("***Which of thes 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=====");
String o=input.readLine();
int G5=Integer.parseInt(o);
if(G5==2)
{
System.out.println("~~~~~YOUR 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("***Who was the first cricketer to score 1000 Test runs, play
100 Test matches,& take 100 Test catches?***");
System.out.println("###1.Garfield Sobers###");
System.out.println("###2.Allan Donald###");
System.out.println("###3.Ian Chappell###");
System.out.println("###4.Kapil Dev###");
System.out.println("=====ENTER YOUR CHOICE=====");
String d8=input.readLine();
int w0=Integer.parseint(d8);
if(w0==1)
{
System.out.println("~~~~~YOUR ON THE RIGHT TRACK~~~~~");
sc=sc+50;
System.out.println("YOR SCORE IS"+sc);
}
else
{
System.out.println("^^^^^SORRY!BETTER LUCK NEXT TIME!THE
CORRECT ANSWER IS GARFIELD SOBERS^^^^^");
}
System.out.println("***How many main players are there in the game of basket
ball?*** ");
System.out.println("###1.Five###");
System.out.println("###2.Six###");
System.out.println("###3.Eight###");
System.out.println("###4.Eleven###");
System.out.println("=====ENTER YOUR CHOICE=====");
String d=input.readLine();
int w=Integer.parseInt(d);
if(w==2)
{
System.out.println("~~~~~YOUR 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 FIVE^^^^^");
}
System.out.println("%%%%%FINALLY YOU HAVE
SCORED="+sc+"POINTS%%%%%");
if(sc<200)
{
System.out.println("!!!!!SORRY!WE DON'T HAVE A PRIZE FOR
YOU!!!!!");
}
else if(sc>=200&&sc<400)
{
System.out.println("#####CONGRATULATIONS!YOU HAVE WON A BIG
GRAND KINETIC BOSS WITHOUT TYRES.HURRAY!#####");
}
else if(sc>=400&&sc<=500)
{
System.out.println("%%%%%CONGRATULATIONS!YOU HAVE WON A
LONG TRIP TO YOUR HOME.LUCKY GUY!%%%%%");
}
case 2:
{
int sc=0;
System.out.println("***What is common to the
following:bangalpalli,safeda,chausa,langda,malda?***");
System.out.println("###1.Apple###");
System.out.println("###2.Mango###");
System.out.println("###3.Banana###");
System.out.println("###4.Orange###");
System.out.println("=====ENTER YOUR CHOICE=====");
String y=input.readLine();
int e=Integer.parseInt(y);
if(e==2)
{
System.out.println("~~~~~YOUR 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 MANGO^^^^^");
}
System.out.println("***Which is the most widely cultivated fruit in the world?
***");
System.out.println("###1.Apple###");
System.out.println("###2.Lemon###");
System.out.println("###3.Banana###");
System.out.println("###4.Grapes###");
System.out.println("=====ENTER YOUR CHOICE=====");
String c=input.readLine();
int f=Integer.parseInt(c);
if(c==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!BEETER LUCK NEXT TIME!THE
CORRECT ANSWER IS APPPLE^^^^^");
}
System.out.println("***Americans call this edible oat meal. How do we refer to
it?***");
System.out.println("###1.Soup###");
System.out.println("###2.Sprouts###");
System.out.println("###3.Salad###");
System.out.println("###4.Porridge###");
System.out.println("=====ENTER YOUR CHOICE=====");
String q=input.readLine();
int l=Integer.parseInt(q);
if(l==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 PORRIDGE^^^^^");
}
System.out.println("***Which country is considered the place of birth of
pizza?***");
System.out.println("###1.France###");
System.out.println("###2.Italy###");
System.out.println("###3.Germany###");
System.out.println("###4.Greece###");
System.out.println("=====ENTER YOUR CHOICE=====");
String p=input.readLine();
int g=Integer.parseInt(p);
if(g==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 ITALY^^^^^");
}
System.out.println("***If Bombay is well known for its halwa and Calcutta for
its rossogollas,what sweet meat is Delhi known for?***");
System.out.println("###1.Ladoos###");
System.out.println("###2.Peda###");
System.out.println("###3.Jalebi###");
System.out.println("###4.Burfi###");
System.out.println("=====ENTER YOUR CHOICE=====");
String j=input.readLine();
int x=Integer.parseInt(j);
if(x==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 LADOOS^^^^^");
}
System.out.println("***Which fruit is normally used to make meat tender?
***");
System.out.println("###1.Banana###");
System.out.println("###2.Papaya###");
System.out.println("###3.Apple###");
System.out.println("###4.Cherry###");
System.out.println("=====ENTER YOUR CHOICE=====");
String p7=input.readLine();
int g6=Integer.parseInt(p7);
if(g6==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 PAPAYA^^^^^");
}
System.out.println("***Which is the only family of food that does not ripen
after plucking?***");
System.out.println("###1.Litchi###");
System.out.println("###2.Orange###");
System.out.println("###3.Strawberry###");
System.out.println("###4.Cherry###");
System.out.println("=====ENTER YOUR CHOICE=====");
String v1=input.readLine();
int ch=Integer.parseInt(v1);
if(ch==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 ORANGE^^^^^");
}
System.out.println("***They are called Golguppas in Delhi and Puchkas in
Calcutta.What are they referred to as in Mumbai?***");
System.out.println("###1.Bhelpuri###");
System.out.println("###2.Aloo chat###");
System.out.println("###3.Pani puri###");
System.out.println("###4.Chana Bhatura###");
System.out.println("=====ENTER YOUR CHOICE=====");
Sring v2=input.readLine();
int re=Integer.parseInt(v2);
if(re==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 PANI PURI");
}
System.out.println("%%%%%FINALLY YOU HAVE SCORED
="+sc+"POINTS%%%%%");
if(sc<200)
{
System.out.println("!!!!!SORRY!WE DON'T HAVE A PRIZE FOR
YOU !!!!!!");
}
else if(sc>=200&&sc<=400)
{
System.out.println("#####CONGRATULATIONS! YOU HAVE WON A
BIG GRAND KINETIC BOSS WITHOUT TYRES.HURRAY!#####");
}
else if(sc>400&&sc<=500)
{
System.out.println("%%%%%CONGRATULATIONS! YOU HAVE WON
A LIFELONG TRIP TO YOUR HOME.LUCKY GUY!%%%%%");
}
else
case 3: {
int sc=0;
System.out.println("***'Something beautiful for god' is a book by Malcolm
Muggeridge.Who is the subject of this book?***");
System.out.println("###1.Mother Terasa###");
System.out.println("###2.Arundhati Roy###");
System.out.println("###3.Ameliya Arhart###");
System.out.println("###4.Rabindranath Tagore### ");
System.out.println("=====ENTER YOUR CHOICE=====");
String t1=input.readLine();
int h1=Integer.parseInt(t1);
if(h1==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 TERASA^^^^^ ");
}
System.out.println("***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=====");
String v2=input.readLine();
int opt=Integer.parseInt(v2);
if(opt==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 MAHATMA GANDHI^^^^^");
}
System.out.println("***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.Lieutenant General###");
System.out.println("###4.Major###");
System.out.println("=====ENTER YOUR CHOICE=====");
String v3=input.readLine();
int flag=Integer.parseInt(v3);
if(flag==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 LIEUTENANT GENERAL^^^^^");
}
System.out.println("***The color of the highest belt in karate is black. What
is the color 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=====");
String v7=input.readLine();
int abs=Integer.parseInt(v7);
if(abs==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("***Which river in Europe is referred to as 'w'?***");
System.out.println("###1.Volga###");
System.out.println("###2.Rhine###");
System.out.println("###3.Siene###");
System.out.println("###4.Danube###");
System.out.println("=====ENTER YOUR CHOICE=====");
String v9=input.readLine();
int sm=Integer.parseInt(v9);
if(sm==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 DANUBE^^^^^");
}
System.out.println("***If your mother was a horticulturist, what would be
she 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=input.readLine();
int sg=Integer.parseInt(v11);
if(sg==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("***Which member of the cat's family is the snake's
greatest enemy?***");
System.out.println("###1.Cat###");
System.out.println("###2.Lion###");
System.out.println("###3.Leopard###");
System.out.println("###4.Mongoose###");
System.out.println("=====ENTER YOUR CHOICE=====");
String v12=input.readLine();
int s1=Integer.parseInt(v12);
if(s1==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 MONGOOSE^^^^^");
}
System.out.println("%%%%%FINALLY YOU HAVE SCORED=
"+sc+"POINTS%%%%%");
if(sc<200)
{
System.out.println("*****SORRY! WE DON'T HAVE A PRIZE FOR
YOU*****");
}
else if(sc>200&&sc<=400)
{
System.out.println("#####CONGRATULATIONS!YOU HAVE WON A
BIG GRAND KINETIC BOSS WITHOUT TYRES.HURRAY!#####");
}
else if(sc>400&&sc<=500)
{
System.out.println("%%%%%CONGRATULATIONS! YOU HAVE
WON A LIFELONG TRIP TO YOUR HOME.LUCKY GUY!%%%%%");
}
default:
{
System.out.println("@@@@@@@@@@@@@@@ SORRY! WRONG
CHOICE @@@@@@@@@@@@@@@");
}
}
}
}
}
}

You might also like