-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmcq
More file actions
162 lines (130 loc) · 3.72 KB
/
mcq
File metadata and controls
162 lines (130 loc) · 3.72 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
print("Title of program: MCQ revision program")
print()
counter = 0
score = 0
total_num_of_qn = 3
counter +=1
tracker = 0
while tracker !=1:
print("Q"+str(counter)+") "+ "What is 26 x 134 ?")
print(" a) 160")
print(" b) 3484")
print(" c) -108")
print(" d) 0.19")
answer = input("Your answer: ")
answer = answer.lower()
if answer == "a":
output = "Wrong. This is not addition."
score -=1
elif answer == "b":
output = "Yes, that's right!"
tracker =1
score +=1
elif answer == "c":
output = "Wrong. This is not subtraction."
score -=1
elif answer == "d":
output = "Wrong. This is not division."
score -=1
else:
output = "Please choose a, b, c or d only."
print()
print(output)
print()
print("Your current score: " + str(round((score/total_num_of_qn*100),1)) + "%" )
print()
print()
counter +=1
tracker = 0
while tracker !=1:
print("Q"+str(counter)+") "+ "factorise 3ab + 9ac + 15ab")
print(" a) 3a (b + 3c + 5b)")
print(" b) 3ab (3c + 5)")
print(" c) 9a (3b + c + 15b)")
print(" d) a (3b + 9c + 15b)")
answer = input("Your answer: ")
answer = answer.lower()
if answer == "a":
output = "Yes, that's right!"
tracker =1
score +=1
elif answer == "b":
output = "Wrong. Does 9ac have b?"
score -=1
elif answer == "c":
output = "Wrong. Is 9 a factor of 3?"
score -=1
elif answer == "d":
output = "Wrong. What's common between 3, 9 and 15?"
score -=1
else:
output = "Please choose a, b, c or d only."
print()
print(output)
print()
print("Your current score: " + str(round((score/total_num_of_qn*100),1)) + "%" )
print()
print()
counter +=1
tracker = 0
while tracker !=1:
print("Q"+str(counter)+") "+ "What does a plant cell have that an animal cell doesn't?")
print(" a) cytoplasm")
print(" b) nucleus")
print(" c) cell membrane")
print(" d) cell wall")
answer = input("Your answer: ")
answer = answer.lower()
if answer == "a":
output = "Wrong. An animal cell has cytoplasm."
score -=1
elif answer == "b":
output = "Wrong. An animal cell has a nucleus."
score -=1
elif answer == "c":
output = "Wrong. An animal cell has a cell membrane."
score -=1
elif answer == "d":
output = "Yes, that's right!"
tracker =1
score +=1
else:
output = "Please choose a, b, c or d only."
print()
print(output.lower())
print()
print("Your current score: " + str(round((score/total_num_of_qn*100),1)) + "%" )
print()
print()
counter +=1
tracker = 0
while tracker !=1:
print("Q"+str(counter)+") "+ "What is an example of osmosis?")
print(" a) The spreading of the smell of perfume from the other side of the room.")
print(" b) The absorbtion of water into the small intestines.")
print(" c) The absorption of water from the soil by root hair cells.")
print(" d) The spreading of a drop of ink after placed in water.")
answer = input("Your answer: ")
answer = answer.lower()
if answer == "a":
output = "Wrong. Osmosis reqiuires a membrane and can only take place with water molecules."
score -=1
elif answer == "b":
output = "Wrong. Osmosis reqiuires a membrane and can only take place with water molecules."
score -=1
elif answer == "c":
output = "Yes, that's right!"
tracker =1
score +=1
elif answer == "d":
output = "Wrong. Osmosis reqiuires a membrane and can only take place with water molecules. :D"
score -=1
else:
output = "Please choose a, b, c or d only."
print()
print(output.lower())
print()
print("Your current score: " + str(round((score/total_num_of_qn*100),1)) + "%" )
print()
print()
print("Congrats! End of quiz!")