fork download
  1. #include<iostream.h>
  2. #include<conio.h>
  3. #include<stdio.h>
  4.  
  5. void main()
  6. {
  7. clrscr();
  8. int x,y,z;
  9. x=y=z=0;
  10. char ch1[100],ch2,ch3,ch4,ch5,ch6,ch7,ch8,ch9,ch10,ch11;
  11. cout<<"\n\n\n\nGuest Enter Your Name\n\n";
  12. gets(ch1);
  13. clrscr();
  14. cout<<"\n\nWelcome "<<ch1<<"\n\nTHIS IS THE GAME TO KNOW ABOUT YOUR GENERAL KNOWLEDGE\n\n";
  15. cout<<"\n\n Enter answer in form of '1','2' and'3'only.";
  16. cout<<"\n\nWhat is called as ' THE HOLYLAND'?\n"
  17. <<endl<< "1.Jerusalem\n"<<"2.Mathura\n"<<endl<<"3.Mecca\n"<<endl<<"Your choice:";
  18.  
  19.  
  20. cin>>ch2;
  21. if(ch2=='1')
  22. {
  23. x=x+10;
  24. cout<<"Good Job."<<endl<<"Your score is "<<x;
  25.  
  26.  
  27. }
  28. else
  29. cout<<"Sorry wrong answer.";
  30. getch();
  31. clrscr();
  32. cout<<"\n\n\nWhat is called as ' THE ROOF OF THE WORLD'\n?"
  33. <<endl<<"1.Nepal\n"<<endl<<"2.Rome\n"<<endl<<"3.Tibet \n "<<endl<<"Your choice:";
  34. cin>>ch2;
  35. if(ch2=='3')
  36. {
  37. x=x+10;
  38. cout<<"Good Job.Your score is "<<x;
  39.  
  40. }
  41. else
  42. cout<<"Sorry wrong answer.";
  43. getch();
  44. clrscr();
  45.  
  46. cout<<"\n\n\nWhat is called as ' THE LAND OF RISING SUN\n'?"
  47. <<endl<<"1.Chicago\n"<<endl<<"2.Japan\n"<<endl<<"3.Tibet\n"<<endl<<endl<<"Your choice:";
  48. cin>>ch2;
  49. if(ch2=='2')
  50. {
  51. x=x+10;
  52. cout<<"Good Job.Your score is "<<x;
  53.  
  54.  
  55. }
  56. else
  57. cout<<"Sorry wrong answer.";
  58. getch();
  59. clrscr();
  60. cout<<"\n\nWhat is called as ' THE GIFT OF NILE'?\n"
  61. <<endl<<"1.Chicago\n"<<endl<<"2.Egypt\n"<<endl<<"3.Africa\n"<<endl<<endl<<"Your choice:";
  62. cin>>ch2;
  63. if(ch2=='2')
  64. {
  65. x=x+10;
  66. cout<<"Good Job.Your score is "<<x;
  67.  
  68.  
  69. }
  70. else
  71. cout<<"Sorry wrong answer.";
  72. getch();
  73. clrscr();
  74. cout<<"\n\n\nWhat is called as ' THE LAND OF MIDNIGHT SUN'?"
  75. <<endl<<"1.Norway\n\n" <<endl<<"2.Japan\n\n "<<endl<<"3.Australia\n\n"<<endl<<endl<<"Your choice:";
  76. cin>>ch2;
  77. if(ch2=='1')
  78. {
  79. x=x+10;
  80. cout<<"Good Job.Your score is "<<x;
  81.  
  82.  
  83. }
  84. else
  85. cout<<"Sorry wrong answer.";
  86. getch();
  87. clrscr();
  88. cout<<"\n\nWhat is called as ' THE LAND OFTHUNDERBOLT'?\n"
  89. <<endl<<"1.Bhutan\n"<<endl<<"2.Canada\n"<<endl<<"3.Arab\n"<<endl<<endl<<"Your choice:";
  90. cin>>ch2;
  91. if(ch2=='1')
  92. {
  93. x=x+10;
  94. cout<<"Good Job.Your score is "<<x;
  95.  
  96.  
  97. }
  98. else
  99. cout<<"Sorry wrong answer.";
  100. getch();
  101. clrscr();
  102. cout<<"\n\n\nWhat is called as ' THE WINDY CITY?\n\n"
  103. <<endl<<"1.Jerusalem \n\n"<<endl<<"2.Japan \n\n"<<endl<<"3.Chicago\n\n"<<endl<<endl<<"Your choice:";
  104. cin>>ch2;
  105. if(ch2=='3')
  106. {
  107. x=x+10;
  108. cout<<"Good Job.Your score is "<<x;
  109.  
  110.  
  111. }
  112. else
  113. cout<<"Sorry wrong answer.";
  114. getch();
  115. clrscr();
  116. cout<<"\n\nWhat is called as ' THE LAND OF WHITE ELEPHANTS'?\n\n"
  117. <<endl<<"1.Bangladesh\n\n"<<endl<<"2.Thailand\n"<<endl<<"3.India\n\n"<<endl<<endl<<"Your choice:";
  118. cin>>ch2;
  119. if(ch2=='2')
  120. {
  121. x=x+10;
  122. cout<<"Good Job.Your score is "<<x;
  123.  
  124.  
  125. }
  126. else
  127. cout<<"Sorry wrong answer.";
  128. getch();
  129. clrscr();
  130. cout<<"\n\nWhat is called as ' THE CITY OF SEVEN HILLS'?\n\n"
  131. <<endl<<"1.Rome\n "<<endl<<" 2.Nilgiri Hills\n\n "<<endl<<"3.Tibet\n\n "<<endl<<endl<<"Your choice:";
  132. cin>>ch2;
  133. if(ch2=='1')
  134. {
  135. x=x+10;
  136. cout<<"Good Job.Your score is "<<x;
  137.  
  138.  
  139. }
  140. else
  141. cout<<"Sorry wrong answer.";
  142. getch();
  143. clrscr();
  144. cout<<"\n\nWhat is called as ' THE DARK CONTIENENT'?\n\n"
  145. <<endl<<"1.Asia\n\n "<<endl<<"2.Australia\n\n" <<endl<<"3.Africa\n\n"<<endl<<endl<<"Your choice:";
  146. cin>>ch2;
  147. if(ch2=='3')
  148. {
  149. x=x+10;
  150. cout<<"Good Job.Your score is "<<x;
  151.  
  152. }
  153. else
  154. cout<<"Sorry wrong answer.";
  155. getch();
  156. clrscr();
  157. cout<<"\n\nTo which terrorist organization are the recent 26/11 Mumbai attackers linked to?\n"
  158. <<endl<<"1)Lashkar-e-Toiba\n"<<endl<<"2)Al-Qaeda\n"<<endl<<"3)Jaish-e-Mohammad\n"<<endl<<endl<<"Your choice:";
  159. cin>>ch2;
  160. if(ch2=='1')
  161. {
  162. x=x+10;
  163. cout<<"Good Job.Your score is "<<x;
  164.  
  165. }
  166. else
  167. cout<<"Sorry wrong answer.";
  168. getch();
  169. clrscr();
  170. cout<<"\n\nWhat was the total medal tally for the indian atheletes in the Beijing Olympics?\n\n"
  171. <<endl<<"1)Five\n"<<endl<<"2)Three\n"<<endl<<"3)Four\n"<<endl<<endl<<"Your choice:";
  172. cin>>ch2;
  173. if(ch2=='2')
  174. {
  175. x=x+10;
  176. cout<<"Good Job.Your score is "<<x;
  177.  
  178. }
  179. else
  180. cout<<"Sorry wrong answer.";
  181. getch();
  182. clrscr();
  183. cout<<"\nWhat was the name of the indian unmanned moon probe launched in 2008?"
  184. <<endl<<"1)Chandrakanth\n"<<endl<<"2)Chandravahan\n"<<endl<<"3)Chandrayaan\n"<<endl<<endl<<"Your choice:";
  185.  
  186. cin>>ch2;
  187. if(ch2=='3')
  188. {
  189. x=x+10;
  190. cout<<"Good Job.Your score is "<<x;
  191.  
  192. }
  193. else
  194. cout<<"Sorry wrong answer.";
  195. getch();
  196. clrscr();
  197.  
  198. cout<<"\n\nWhat is the name of the lone terrorist captured alive by the police during the 26/11 Mumbai attacks?"
  199. <<endl<<"1)Mohammed Ismail\n"<<endl<<"2)Abdul Rehmaan\n"<<endl<<"3)Ajmal Kasab\n"<<endl<<endl<<"Your choice:";
  200. cin>>ch2;
  201. if(ch2=='3')
  202. {
  203. x=x+10;
  204. cout<<"Good Job.Your score is "<<x;
  205.  
  206. }
  207. else
  208. cout<<"Sorry wrong answer.";
  209. getch();
  210. clrscr();
  211.  
  212. cout<<"\nWho won the Euro cup 2008 of football?\n"
  213. <<endl<<"1)Spain\n"<<endl<<"2)Germany\n"<<endl<<"3)England\n"<<endl<<endl<<"Your choice:";
  214. cin>>ch2;
  215. if(ch2=='1')
  216. {
  217. x=x+10;
  218. cout<<"Good Job.Your score is "<<x;
  219.  
  220. }
  221. else
  222. cout<<"Sorry wrong answer.";
  223. getch();
  224. clrscr();
  225. cout<<"\n\n)Which widely awaited cell phone launched already in the U.S and other countries was recently launched in India"
  226. <<endl<<"1)Apple-iPhone\n"<<endl<<"2)Apple ePhone\n"<<endl<<"3)N96\n"<<endl<<endl<<"Your choice:";
  227. cin>>ch2;
  228. if(ch2=='1')
  229. {
  230. x=x+10;
  231. cout<<"Good Job.Your score is "<<x;
  232.  
  233. }
  234. else
  235. cout<<"Sorry wrong answer.";
  236. getch();
  237. clrscr();
  238. cout<<"\n\nWhich political party came out victorious in the recent assembly elections in Delhi\n\n"<<endl
  239. <<endl<<"1)BJP\n"<<endl<<"2)Congress\n"<<endl<<"3)BSP\n"<<endl<<endl<<"Your choice:";
  240. cin>>ch2;
  241. if(ch2=='2')
  242. {
  243. x=x+10;
  244. cout<<"Good Job.Your score is "<<x;
  245.  
  246. }
  247. else
  248. cout<<"Sorry wrong answer.";
  249. getch();
  250. clrscr();
  251.  
  252. cout<<"\n\nWhich former PM of Pakistan was assasinated in the yea 2007?\n"
  253. <<endl<<"1)Benazir Bhutto\n"<<endl<<"2)Nawaz Sharif\n"<<endl<<"3)Shaukat Aziz\n"<<endl<<endl<<"Your choice:";
  254. cin>>ch2;
  255. if(ch2=='1')
  256. {
  257. x=x+10;
  258. cout<<"Your score is "<<x;
  259.  
  260. }
  261. else
  262. cout<<"Sorry wrong answer.";
  263. getch();
  264. clrscr();
  265.  
  266. cout<<"\n\nOn which American TV quiz show was the popular indian show 'Kaun Banega Crorepati'based?\n\n"
  267. <<endl<<"1)Who wants to be a millionaire?\n"<<endl<<"2)Money Power\n"<<endl<<"3)Are u smarter than a fifth grader\n"
  268. <<endl<<endl<<"Your choice:";
  269. cin>>ch2;
  270. if(ch2=='1')
  271. {
  272. x=x+10;
  273. cout<<"Good Job.Your score is "<<x;
  274.  
  275. }
  276. else
  277. cout<<"Sorry wrong answer.";
  278. getch();
  279. clrscr();
  280. cout<<"\n\nWhat is the name of the latest operating system by microsoft?\n\n"
  281. <<endl<<"1)Vista\n"<<endl<<"2)Pista\n"<<endl<<"3)Mac\n"<<endl<<endl<<"Your choice:";
  282. cin>>ch2;
  283. if(ch2=='1')
  284. {
  285. x=x+10;
  286. cout<<"Good Job.Your score is "<<x;
  287.  
  288. }
  289. else
  290. cout<<"Sorry wrong answer.";
  291. getch();
  292. clrscr();
  293. cout<<"\n\nWhat was the end result of the recently concluded Australia-South africa Test cricket series?"
  294. <<endl<<"1)2-0(Aus Won)\n"<<endl<<"2)2-1(SA won)\n"<<endl<<"3)1-1(draw)\n"<<endl<<endl<<"Your choice:";
  295. cin>>ch2;
  296. if(ch2=='2')
  297. {
  298. x=x+10;
  299. cout<<"Good Job.Your score is "<<x;
  300.  
  301. }
  302. else
  303. cout<<"Sorry wrong answer.";
  304. getch();
  305. clrscr();
  306. cout<<"\n\nWhich political party won the highest no. of seats in the assembly elections in J&K in 2008?"
  307. <<endl<<"1)Congress\n"<<endl<<"2)National conference\n"<<endl<<"3)CPI(M)\n"<<endl<<endl<<"Your choice:";
  308. cin>>ch2;
  309. if(ch2=='2')
  310. {
  311. x=x+10;
  312. cout<<"Good Job.Your score is "<<x;
  313.  
  314. }
  315. else
  316. cout<<"Sorry wrong answer.";
  317. getch();
  318. clrscr();
  319. cout<<"\n\nWhich football player was awarded the Ballon d'or of 2008\n"
  320. <<endl<<"1)Cristiano Ronaldo\n"<<endl<<"2)Fernando Torres\n"<<endl<<"3)Peter crouch"<<endl<<endl<<"Your choice:";
  321. cin>>ch2;
  322. if(ch2=='1')
  323. {
  324. x=x+10;
  325. cout<<"Good Job.Your score is "<<x;
  326.  
  327. }
  328. else
  329. cout<<"Sorry wrong answer.";
  330. getch();
  331. clrscr();
  332. cout<<"Which militant organization is on the run in Sri Lanka after being attacked by the Sri lankan army?"
  333. <<endl<<"1)LTTE\n"<<"2)ULFA\n"<<endl<<"3)HUJI\n"<<endl<<endl<<"Your choice:";
  334. cin>>ch2;
  335. if(ch2=='1')
  336. {
  337. x=x+10;
  338. cout<<"Good Job.Your score is "<<x;
  339.  
  340. }
  341. else
  342. cout<<"Sorry wrong answer.";
  343. getch();
  344. clrscr();
  345.  
  346.  
  347. cout<<"Which country won the highest no. of gold medals in the Beijing Olympics?"
  348. <<endl<<"1)USA\m"<<endl<<"2)China\n"<<endl<<"3)Australia\n"<<endl<<endl<<"Your choice:";
  349. cin>>ch2;
  350. if(ch2=='2')
  351. {
  352. x=x+10;
  353. cout<<"Good Job.Your score is "<<x;
  354.  
  355. }
  356. else
  357. cout<<"Sorry wrong answer.";
  358. getch();
  359. clrscr();
  360.  
  361.  
  362. if(x==250)
  363. cout<<"Exceptionally Brilliant";
  364. if(x==200)
  365. cout<<"You are extremely intelligent"<<endl<<" Your Score is 200";
  366. if(x==180)
  367. cout<<"You are intelligent" <<endl<<"Your Score is 180";
  368. if(150==x||x==130||x==110)
  369. cout<<"You are average Your Score is "<<x<<" Better luck nexttime";
  370. else if(x<=100)
  371. cout<<"No use........ Not even 10 questions right";
  372. getch();
  373. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:9: fatal error: 'iostream.h' file not found
#include<iostream.h>
        ^
1 error generated.
stdout
Standard output is empty