fork download
  1. #include<iostream.h>
  2. #include<conio.h>
  3.  
  4. void main()
  5. {
  6. clrscr();
  7. int x,y,z;
  8. x=y=z=0;
  9. char ch1[100],ch2,ch3,ch4,ch5,ch6,ch7,ch8,ch9,ch10,ch11;
  10. cout<<" Guest Enter Your Name
  11. ";
  12. cin>>ch1;
  13. clrscr();
  14. cout<<" Welcome "<<ch1<<".
  15.  
  16. Sobriquet is an unofficial title or
  17. name given to someone or something.";
  18. cout<<"
  19. Enter answer in form of 'a','b' and'c'only.";
  20. cout<<"
  21.  
  22. What is called as ' THE HOLY
  23. LAND'?
  24. a.Jerusalem
  25. b.Mathura
  26. c.Mecca
  27. ";
  28. cin>>ch2;
  29. if(ch2=='a')
  30. {
  31. x=x+10;
  32. cout<<"Good Job.
  33. Your score is "<<x;
  34.  
  35.  
  36. }
  37. else
  38. cout<<"Sorry wrong answer.";
  39. getch();
  40. clrscr();
  41. cout<<"
  42.  
  43. What is called as ' THE ROOF OF THE
  44. WORLD'?
  45. a.Nepal
  46. b.Rome
  47. c.Tibet
  48. ";
  49. cin>>ch2;
  50. if(ch2=='c')
  51. {
  52. x=x+10;
  53. cout<<"Good Job.
  54. Your score is "<<x;
  55.  
  56. }
  57. else
  58. cout<<"Sorry wrong answer.";
  59. getch();
  60. clrscr();
  61.  
  62. cout<<"
  63.  
  64. What is called as ' THE LAND OF RISING
  65. SUN'?
  66. a.Chicago
  67. b.Japan
  68. c.Tibet
  69. ";
  70. cin>>ch2;
  71. if(ch2=='b')
  72. {
  73. x=x+10;
  74. cout<<"Good Job.
  75. Your score is "<<x;
  76.  
  77.  
  78. }
  79. else
  80. cout<<"Sorry wrong answer.";
  81. getch();
  82. clrscr();
  83. cout<<"
  84.  
  85. What is called as ' THE GIFT OF
  86. NILE'?
  87. a.Chicago
  88. b.Egypt
  89. c.Africa
  90. ";
  91. cin>>ch2;
  92. if(ch2=='b')
  93. {
  94. x=x+10;
  95. cout<<"
  96. Your score is "<<x;
  97.  
  98.  
  99. }
  100. else
  101. cout<<"Sorry wrong answer.";
  102. getch();
  103. clrscr();
  104. cout<<"
  105.  
  106. What is called as ' THE LAND OF MIDNIGHT
  107. SUN'?
  108. a.Norway
  109. b.Japan
  110. c.Australia
  111. ";
  112. cin>>ch2;
  113. if(ch2=='a')
  114. {
  115. x=x+10;
  116. cout<<"
  117. Your score is "<<x;
  118.  
  119.  
  120. }
  121. else
  122. cout<<"Sorry wrong answer.";
  123. getch();
  124. clrscr();
  125. cout<<"
  126.  
  127. What is called as ' THE LAND OF
  128. THUNDERBOLT'?
  129. a.Bhutan
  130. b.Canada
  131. c.Arab
  132. ";
  133. cin>>ch2;
  134. if(ch2=='a')
  135. {
  136. x=x+10;
  137. cout<<"
  138. Your score is "<<x;
  139.  
  140.  
  141. }
  142. else
  143. cout<<"Sorry wrong answer.";
  144. getch();
  145. clrscr();
  146. cout<<"
  147.  
  148. What is called as ' THE WINDY
  149. CITY?
  150. a.Jerusalem
  151. b.Japan
  152. c.Chicago
  153. ";
  154. cin>>ch2;
  155. if(ch2=='c')
  156. {
  157. x=x+10;
  158. cout<<"
  159. Your score is "<<x;
  160.  
  161.  
  162. }
  163. else
  164. cout<<"Sorry wrong answer.";
  165. getch();
  166. clrscr();
  167. cout<<"
  168.  
  169. What is called as ' THE LAND OF WHITE
  170. ELEPHANTS'?
  171. a.Bangladesh
  172. b.Thailand
  173. c.India
  174. ";
  175. cin>>ch2;
  176. if(ch2=='b')
  177. {
  178. x=x+10;
  179. cout<<"
  180. Your score is "<<x;
  181.  
  182.  
  183. }
  184. else
  185. cout<<"Sorry wrong answer.";
  186. getch();
  187. clrscr();
  188. cout<<"
  189.  
  190. What is called as ' THE CITY OF SEVEN
  191. HILLS'?
  192. a.Rome
  193. b.Nilgiri Hills
  194. c.Tibet
  195. ";
  196. cin>>ch2;
  197. if(ch2=='a')
  198. {
  199. x=x+10;
  200. cout<<"
  201. Your score is "<<x;
  202.  
  203.  
  204. }
  205. else
  206. cout<<"Sorry wrong answer.";
  207. getch();
  208. clrscr();
  209. cout<<"
  210.  
  211. What is called as ' THE DARK
  212. CONTIENENT'?
  213. a.Asia
  214. b.Australia
  215. c.Africa
  216. ";
  217. cin>>ch2;
  218. if(ch2=='c')
  219. {
  220. x=x+10;
  221. cout<<"
  222. Your score is "<<x;
  223.  
  224. }
  225. else
  226. cout<<"Sorry wrong answer.";
  227. getch();
  228. clrscr();
  229. if(x==100)
  230. cout<<"No cheating...... You have done this earlier also.";
  231. if(x==90)
  232. cout<<"You are extremely intelligent
  233. Your Score is 90";
  234. if(x==80)
  235. cout<<"You are intelligent
  236. Your Score is 80";
  237. if(50==x||x==70||x==60)
  238. cout<<"You are average
  239. Your Score is "<<x<<"
  240. Better luck next
  241. time";
  242. else if(x<=40)
  243. cout<<"No use........ Not even 5 questions right";
  244. getch();
  245. }
  246.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
prog.cpp:1:21: fatal error: iostream.h: No such file or directory
 #include<iostream.h>
                     ^
compilation terminated.
stdout
Standard output is empty