-
Notifications
You must be signed in to change notification settings - Fork 0
/
check1.html
279 lines (256 loc) · 11.3 KB
/
check1.html
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" type="text/css" href="page2.css">
<title>CHECKING FOR QUIZ</title>
</head>
<body>
<center><h1>simple test for u...</h1></center>
<form name="myform">
<p>Select any one of the option and after finishing just click on the "Submit" button</p>
<ol>
<li>
<center><h3>1.Which fruit has no seeds?</h3></center>
<div id = "row1">
<div class="box">
<input type="radio" name="Q1A" value="A">A) Apple
</div>
<div class="box">
<input type="radio" name="Q1A" value="B">B) Orange
</div>
</div>
<div id = "row2">
<div class="box">
<input type="radio" name="Q1A" value="C">C) Banana
</div>
<div class="box">
<input type="radio" name="Q1A" value="D">D) Grapes
</div>
</div>
</li>
<li>
<center><h3>2.Which of the following is the biggest sea animal?</h3></center>
<div id = "row1">
<div class="box">
<input type="radio" name="Q2A" value="A">A) Blue whale
</div>
<div class="box">
<input type="radio" name="Q2A" value="B">B) Dolphin
</div>
</div>
<div id = "row2">
<div class="box">
<input type="radio" name="Q2A" value="C">C) Shark
</div>
<div class="box">
<input type="radio" name="Q2A" value="D">D) Penguin
</div>
</div>
</li>
<li>
<center><h3>3.How many players are there in a cricket team?</h3></center>
<div id = "row1">
<div class="box">
<input type="radio" name="Q3A" value="A">A) 9
</div>
<div class="box">
<input type="radio" name="Q3A" value="B">B) 10
</div>
</div>
<div id = "row2">
<div class="box">
<input type="radio" name="Q3A" value="C">C) 11
</div>
<div class="box">
<input type="radio" name="Q3A" value="D">D) 12
</div>
</div>
</li>
<li>
<center><h3>4.Which of the following month have 31 days?</h3></center>
<div id = "row1">
<div class="box">
<input type="radio" name="Q4A" value="A">A) October
</div>
<div class="box">
<input type="radio" name="Q4A" value="B">B) February
</div>
</div>
<div id = "row2">
<div class="box">
<input type="radio" name="Q4A" value="C">C) June
</div>
<div class="box">
<input type="radio" name="Q4A" value="D">D) April
</div>
</div>
</li>
<li>
<center><h3>5.When do we celebrate our Independence Day?</h3></center>
<div id = "row1">
<div class="box">
<input type="radio" name="Q5A" value="A">A) 15th January
</div>
<div class="box">
<input type="radio" name="Q5A" value="B">B) 26th January
</div>
</div>
<div id = "row2">
<div class="box">
<input type="radio" name="Q5A" value="C">C) 26th August
</div>
<div class="box">
<input type="radio" name="Q5A" value="D">D) 15th August
</div>
</div>
</li>
<li>
<center><h3>6.Which is the National animal of our country?</h3></center>
<div id = "row1">
<div class="box">
<input type="radio" name="Q6A" value="A">A) Lion
</div>
<div class="box">
<input type="radio" name="Q6A" value="B">B) Tiger
</div>
</div>
<div id = "row2">
<div class="box">
<input type="radio" name="Q6A" value="C">C) Deer
</div>
<div class="box">
<input type="radio" name="Q6A" value="D">D) Dog
</div>
</div>
</li>
<li>
<center><h3>7.How do we smell?</h3></center>
<div id = "row1">
<div class="box">
<input type="radio" name="Q7A" value="A">A) Ears
</div>
<div class="box">
<input type="radio" name="Q7A" value="B">B) Eyes
</div>
</div>
<div id = "row2">
<div class="box">
<input type="radio" name="Q7A" value="C">C) Nose
</div>
<div class="box">
<input type="radio" name="Q7A" value="D">D) Mouth
</div>
</div>
</li>
<li>
<center><h3>8.Which vegetable is known as the king of vegetable?</h3></center>
<div id = "row1">
<div class="box">
<input type="radio" name="Q8A" value="A">A) Potato
</div>
<div class="box">
<input type="radio" name="Q8A" value="B">B) Tomato
</div>
</div>
<div id = "row2">
<div class="box">
<input type="radio" name="Q8A" value="C">C) Onion
</div>
<div class="box">
<input type="radio" name="Q8A" value="D">D) Chilly
</div>
</div>
</li>
<li>
<center><h3>9.Which vegetable has Crown on its head?</h3></center>
<div id = "row1">
<div class="box">
<input type="radio" name="Q9A" value="A">A) Carrot
</div>
<div class="box">
<input type="radio" name="Q9A" value="B">B) Beetroot
</div>
</div>
<div id = "row2">
<div class="box">
<input type="radio" name="Q9A" value="C">C) Brinjal
</div>
<div class="box">
<input type="radio" name="Q9A" value="D">D) Raddish
</div>
</div>
</li>
<li>
<center><h3>10.Which fruit is known as King of fruits?</h3></center>
<div id = "row1">
<div class="box">
<input type="radio" name="Q10A" value="A">A) Apple
</div>
<div class="box">
<input type="radio" name="Q10A" value="B">B) Pomegranate
</div>
</div>
<div id = "row2">
<div class="box">
<input type="radio" name="Q10A" value="C">C) Banana
</div>
<div class="box">
<input type="radio" name="Q10A" value="D">D) Mango
</div>
</div>
</li>
</ol>
<div class="button">
<input type="reset" value="Reset" id="rbtn">
<input type="submit" value="Submit" id="sbtn" onclick="check()">
</div>
</form>
<script>
function check(){
var Q1A=document.myform.Q1A.value;
var Q2A=document.myform.Q2A.value;
var Q3A=document.myform.Q3A.value;
var Q4A=document.myform.Q4A.value;
var Q5A=document.myform.Q5A.value;
var Q6A=document.myform.Q6A.value;
var Q7A=document.myform.Q7A.value;
var Q8A=document.myform.Q8A.value;
var Q9A=document.myform.Q9A.value;
var Q10A=document.myform.Q10A.value;
var count=0;
if(Q1A=="C"){
count++;
}
if(Q2A=="A"){
count++;
}
if(Q3A=="C"){
count++;
}
if(Q4A=="A"){
count++;
}
if(Q5A=="D"){
count++;
}
if(Q6A=="B"){
count++;
}
if(Q7A=="C"){
count++;
}
if(Q8A=="A"){
count++;
}
if(Q9A=="C"){
count++;
}
if(Q10A=="D"){
count++;
}
Wr=10-count;
alert(+count+'Correct and'+Wr+'not correct');
}
</script>
</body>
</html>