-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
69 lines (48 loc) · 2.57 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<title> Simple Javascript quiz</title>
<link rel="stylesheet" href="CSS/style.css">
<script src="Js/script.js"></script>
</head>
<body>
<div id="container">
<header>
<h1>Javascript quiz</h1>
<p> test your knowledge in <strong>javascript fundamentals</strong></p>
</header>
<section>
<div id="results"></div>
<form name="quizForm" onsubmit="return submitAnswers()">
<h3>1. In which HTML element do we put in javascript code </h3>
<input type="radio" name="q1" value="a" id="q1a">a. <js><br>
<input type="radio" name="q2" value="b" id="q1b">b. <script><br>
<input type="radio" name="q3" value="c" id="q1c">c. <body><br>
<input type="radio" name="q4" value="d" id="q1d">d. <link><br>
<h3>2. In which HTML element do we put in javascript code </h3>
<input type="radio" name="q1" value="a" id="q2a">a. src<br>
<input type="radio" name="q2" value="b" id="q2b">b. rel<br>
<input type="radio" name="q3" value="c" id="q2c">c.type<br>
<input type="radio" name="q4" value="d" id="q2d">d.herf<br>
<h3>3. How would you write hello in an alert box? </h3>
<input type="radio" name="q1" value="a" id="q3a">a. msg('Hello')<br>
<input type="radio" name="q2" value="b" id="q3b">b. alertBox('Hello')<br>
<input type="radio" name="q3" value="c" id="q3c">c. document.Write('Hello')<br>
<input type="radio" name="q4" value="d" id="q3d">d. alert('Hello')<br>
<h3>4. jvascript is directly related to the java programing language </h3>
<input type="radio" name="q1" value="a" id="q4a">a. True<br>
<input type="radio" name="q2" value="b" id="q4b">b. false<br>
<h3>5. A variable in javascript must start with which special charcter </h3>
<input type="radio" name="q1" value="a" id="q5a">a. @ <br>
<input type="radio" name="q2" value="b" id="q5b">b.$ <br>
<input type="radio" name="q3" value="c" id="q5c">c. # <br>
<input type="radio" name="q4" value="d" id="q5d">d. No special charcter <br>
<br><br>
<input type="submit" value="submit answer">
</form>
</section>
<footer>
<p>copyright © 2017, All rigt reserved </p>
</footer>
</body>
</html>