Advertisement
Guest User

Challenge 10

a guest
Nov 17th, 2017
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.34 KB | None | 0 0
  1.  
  2. print("Welcome to Luc's Literacy quiz")
  3. print("Answer each question with the letter of your choice")
  4. print()
  5.  
  6.  
  7. Score = 0
  8.  
  9.  
  10.  
  11. print()
  12. print("Question 1")
  13. print()
  14. print("Which of these words comes first in a dictonary")
  15. print()
  16. print("A - Bright")
  17. print("B - Brick")
  18. print("C - Bring")
  19. print()
  20. answer1=input()
  21. print()
  22.  
  23.  
  24. answer1 = answer1.upper()
  25. if answer1 == "B" :
  26. print("You are correct")
  27. Score = Score+1
  28.  
  29.  
  30.  
  31. elif answer1 == "A":
  32. print("You are incorrect")
  33. print()
  34. print("The correct answer was: B (Brick)")
  35. Score = Score+0
  36.  
  37. elif answer1 == "C":
  38. print("You are incorrect")
  39. print()
  40. print("The correct answer was: B (Brick")
  41. Score = Score+0
  42.  
  43.  
  44. else:
  45. answer1 = answer1.lower()
  46. answer1 = answer1.title()
  47. #converts users answer to a grammatically correct version so it can be displayed back to the user
  48. print(answer1 + " Is not a valid answer")
  49. print()
  50. print("The correct answer was: B (Brick)")
  51. Score = Score+0
  52. print()
  53.  
  54.  
  55.  
  56. print("Question 2")
  57. print()
  58. print("What tense is the sentace: We're going to the cinema tomorrow")
  59. print()
  60. print("A - Past Tense")
  61. print("B - Present Tense")
  62. print("C - Future Tense")
  63. print()
  64. answer2=input()
  65. print()
  66. answer2 = answer2.upper()
  67. if answer2 == "C" :
  68. Score = Score+1
  69. print("You are correct")
  70.  
  71.  
  72. elif answer2 == "A":
  73. print("You are incorrect")
  74. print()
  75. print("The correct answer was: C (Future Tense)")
  76. Score = Score+0
  77.  
  78.  
  79. elif answer2 == "B":
  80. print("You are incorrect")
  81. print()
  82. print("The correct answer was: C (Future Tense")
  83. Score = Score+0
  84.  
  85.  
  86. else:
  87. answer2 = answer2.lower()
  88. answer2 = answer2.title()
  89. print(answer2 + " Is not a valid answer")
  90. print()
  91. print("The correct answer was: C (Future Tense)")
  92. Score = Score+0
  93. print()
  94.  
  95.  
  96.  
  97.  
  98. print("Question 3")
  99. print()
  100. print("What type of word is a describing word")
  101. print()
  102. print("A - Adjective")
  103. print("B - Noun")
  104. print("C - Verb")
  105. print()
  106. answer3=input()
  107. print()
  108. answer3 = answer3.upper()
  109.  
  110.  
  111. if answer3 == "A" :
  112. print("You are correct")
  113. Score = Score+1
  114.  
  115.  
  116. elif answer2 == "B":
  117. print("You are incorrect")
  118. print()
  119. print("The correct answer was: A (Adjective)")
  120. Score = Score+0
  121.  
  122.  
  123. elif answer2 == "C":
  124. print("You are incorrect")
  125. print()
  126. print("The correct answer was: A (Adjective")
  127. Score = Score+0
  128.  
  129.  
  130. else:
  131. answer3 = answer3.lower()
  132. answer3 = answer3.title()
  133. print(answer3 + " Is not a valid answer")
  134. print()
  135. print("The correct answer was: A (Adjective)")
  136. Score = Score+0
  137.  
  138.  
  139.  
  140. print("Question 4")
  141. print()
  142. print("A figure of speech in which a word or phrase is applied to an object or action to which it is not literally applicable is a:")
  143. print()
  144. print("A - Simile")
  145. print("B - Metaphor")
  146. print("C - Onomatopoeia")
  147. print()
  148.  
  149.  
  150. answer4=input()
  151. print()
  152.  
  153.  
  154. answer4 = answer4.upper()
  155. if answer4 == "B" :
  156. print("You are correct")
  157. Score = Score+1
  158.  
  159.  
  160.  
  161. elif answer4 == "A":
  162. print("You are incorrect")
  163. print()
  164. print("The correct answer was: B (Metaphor)")
  165. Score = Score+0
  166.  
  167.  
  168. elif answer4 == "C":
  169. print("You are incorrect")
  170. print()
  171. print("The correct answer was: B (Metaphor")
  172. Score = Score+0
  173.  
  174.  
  175. else:
  176. answer4 = answer4.lower()
  177. answer4 = answer4.title()
  178. print(answer4 + " Is not a valid answer")
  179. print()
  180. print("The correct answer was: B (Metaphor)")
  181. Score = Score+0
  182. print()
  183.  
  184.  
  185.  
  186. print()
  187. print("Question 5")
  188. print()
  189. print("How many letters are there in the English alphabet")
  190. print()
  191. print("A - 26")
  192. print("B - 24")
  193. print("C - 27")
  194. print()
  195.  
  196.  
  197. answer5=input()
  198. print()
  199.  
  200.  
  201. answer5 = answer5.upper()
  202. if answer5 == "A" :
  203. print("You are correct")
  204. Score = Score+1
  205.  
  206.  
  207. elif answer5 == "B":
  208. print("You are incorrect")
  209. print()
  210. print("The correct answer was: A (26)")
  211. Score = Score+0
  212.  
  213.  
  214. elif answer5 == "C":
  215. print("You are incorrect")
  216. print()
  217. print("The correct answer was: A (26")
  218. Score = Score+0
  219.  
  220. else:
  221. answer5 = answer5.lower()
  222. answer5 = answer5.title()
  223. print(answer5 + " Is not a valid answer")
  224. print()
  225. print("The correct answer was: A (26)")
  226. Score = Score+0
  227. print()
  228. print()
  229. print("You got",Score,"Out of 5 questions correct.")
  230. print()
  231. print()
  232. print()
  233. print()
  234. print()
  235. print()
  236. print()
  237. print()
  238. print()
  239. print()
  240. print()
  241. print()
  242. print("The quiz is now over, thank you for participating.")
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement