I need quiz program

i need a quiz program for this using iostream and string only
and i need also to output the total score :(
kindly help me please

Questions ------------
1.The first President of Bangladesh
a.Sheikh Mujibur Rahman
b.Ziaur Rahman
c.Hussain Muhammad Ershad
2.The longest river in the world is the
a.Mekong
b.Nile
c.Euphrates
3.The Higest Mountain in the world is the
a.Mt.Apo
b.Mt.Etna
c.Mt.Everest
4.The biggest desert in the world is the
a.Sahara Desert
b.Judean Desert
c.Gobi Desert
5.The river Jordan flows out into the
a.Yellow sea
b.Red Sea
c.Dead sea
6.The country called the Land of Rising sun is
a.Japan
b.Malaysia
c.Singapore
7.The Largest ocean of the world is the
a.Antartic ocean
b.Pacific ocean
c.South Ocean
8.The country known as the land of the midnight sun is
a.Norway
b.Japan
c.Korea
9.The place known as the roof of the world is
a.Philippines
b.Vietnam
c.Tibet
10.The country known as the land of morning calm is
a.Japan
b.Korea
c.Africa
11.The country known as the land of thunderbolt is
a.Abu Dhabi
b.Bhutan
c.Saudi Arabia
12.Who won the Football World cup in 2006?
a.Italy
b.Africa
c.Spain
13.Who won Men's Singles title in French open 2010?
a.Rafael Nadal
b.Federrer
c.Woods
14.The Largest river in france is
a.Rhin
b.Loire
c.Orne
15.The independence day of South Korea is celebrated on
a.May 15
b.August 15
c.January 15
16.The national flower of Italy is
a.Rose
b.Lily
c.Orchids
17.The country which is the largest producer of tin in the world is
a.China
b.Vietnam
c.Philippines
18.The principal export of Jamaica is
a.Salt
b.Spices
c.Sugar
19.In which sport do players take long and short corners
a.Hockey
b.Football
c.Baseball
20.What is my Name?
a.Topeh
b.pogi
c.Kristoffer Xelij Reyes

NOTE*THE CORRECT ANSWERS ARE IN BOLD FORMAT

AND I NEED ALSO TO RANDOMIZE THE QUESTIONS
Your going to have to show that you've put even a little bit of effort into this if you expect someone to help you. As many people have said before me, this isn't a homework service. How come you need to do this anyway?

tips:

to randomise the questions have a look at http://www.cplusplus.com/reference/clibrary/cstdlib/rand/

once you have your program selecting a number between 1 and 19 you could use if statements or a switch statement to actually ask the corresponding question
http://www.cplusplus.com/doc/tutorial/control/


Feel free to ask a more specific problem when you come across it.
19.In which sport do players take long and short corners
a.Hockey

Field Hockey to be specific. Normally when you see "Hockey", Ice Hockey is assumed.
Normally when you see "Hockey", Ice Hockey is assumed.


Depends in what country you live. And the same thing could be argued for football, although I'm quite certain that no code of football have two types of corners, soccer has one type, and as far as I'm away there are no corners at all in rugby, gaelic, american football(gridiron) or aussie rules - I'm not aware of any other code's of football, if there are more though make sure to correct me.

But yea your right, it would be better to make it less ambiguous.
Last edited on
Yeah, I guess Field Hockey would be assumed in India.
Last edited on
Programming isn't about getting code. It's about solving the problem, then spoonfeed your idea to the computer.
closed account (Gz64jE8b)
You can't randomize using only iostream and string. (as far as I know).

We don't do homework here.
Topic archived. No new replies allowed.