-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
118 lines (117 loc) · 3.92 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
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Simple JavaScript Quiz</title>
<link rel="stylesheet" href="css/styles.css">
</head>
<body>
<div class="container">
<form name="quizForm">
<div>
<header class="header">
<h1>Simple JavaScript Quiz</h1>
<p>Test your knowledge in <strong>JavaScript fundamentals</strong></p>
</header>
<hr/>
<section>
<div id="results"></div>
<p>1. In which HTML element do we put in JavaScript code?</p>
<div>
<input type="radio" name="question1" id="question1" value="js">
<label for="question1">a. <js> </label>
</div>
<div>
<input type="radio" name="question1" id="question1" value="script" >
<label for="question1">b. <script> </label>
</div>
<div>
<input type="radio" name="question1" id="question1" value="body" >
<label for="question1">c. <body> </label>
</div>
<div>
<input type="radio" name="question1" id="question1" value="link" >
<label for="question1">d. <link> </label>
</div>
</div>
<div>
<p>2. Which HTML attribute is used to reference an external JavaScript file?</p>
<div>
<input type="radio" name="question2" id="question2" value="src">
<label for="question2">a. src</label>
</div>
<div>
<input type="radio" name="question2" id="question2" value="rel">
<label for="question2">b. rel</label>
</div>
<div>
<input type="radio" name="question2" id="question2" value="type">
<label for="question2">c. type</label>
</div>
<div>
<input type="radio" name="question2" id="question2" value="href">
<label for="question2">d. href </label>
</div>
</div>
<div>
<p>3. How would you write "Hello" in an alert box?</p>
<div>
<input type="radio" name="question3" id="question3" value="msg">
<label for="question3">a. msg("Hello"); </label>
</div>
<div>
<input type="radio" name="question3" id="question3" value="alertBox">
<label for="question3">b. alertBox("Hello"); </label>
</div>
<div>
<input type="radio" name="question3" id="question3" value="document">
<label for="question3">c. document.write("Hello"); </label>
</div>
<div>
<input type="radio" name="question3" id="question3" value="alert">
<label for="question3">d. alert("Hello"); </label>
</div>
</div>
<div>
<p>4. JavaScript is directly related to the "Java" programming language</p>
<div>
<input type="radio" name="question4" id="question4" value="true">
<label for="question4">a. true </label>
</div>
<div>
<input type="radio" name="question4" id="question4" value="false">
<label for="question4">b. false </label>
</div>
</div>
<div>
<p>5. A variable in JavaScript must start with which special character</p>
<div>
<input type="radio" name="question5" id="question5" value="at">
<label for="question5">a. @ </label>
</div>
<div>
<input type="radio" name="question5" id="question5" value="dollar">
<label for="question5">b. $ </label>
</div>
<div>
<input type="radio" name="question5" id="question5" value="hash">
<label for="question5">c. # </label>
</div>
<div>
<input type="radio" name="question5" id="question5" value="none">
<label for="question5">d. No Special Character </label>
</div>
</div>
<br>
<button type="submit">Submit Answers</button>
</form>
</section>
<footer>
<p>Copyright © 2019. Made with ❤ in Memphis.</p>
</footer>
</div> <!--container-->
<script src="scripts/app-v2.js"></script>
</body>
</html>