-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
53 lines (49 loc) · 2.39 KB
/
Copy pathindex.html
File metadata and controls
53 lines (49 loc) · 2.39 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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>Simple JavaScript Quiz</title>
<link href="css/style.css" type="text/css" rel="stylesheet" />
</head>
<body>
<div id="container" style="width: 960px; margin: auto;">
<header>
<h1>Simple 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="q1" value="b" id="q1b"/>b. <script> <br />
<input type="radio" name="q1" value="c" id="q1c"/>c. <body> <br />
<input type="radio" name="q1" value="d" id="q1d"/>d. <link> <br />
<h3>2. Which HTML attribute is used to reference an external Javascript file?</h3>
<input type="radio" name="q2" value="a" id="q2a"/>a. src <br />
<input type="radio" name="q2" value="b" id="q2b"/>b. rel <br />
<input type="radio" name="q2" value="c" id="q2c"/>c. type <br />
<input type="radio" name="q2" value="d" id="q2d"/>d. href <br />
<h3>3. How would you write "Hello" in an alert box?</h3>
<input type="radio" name="q3" value="a" id="q3a"/>a. msg("Hello"); <br />
<input type="radio" name="q3" 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="q3" value="d" id="q3d"/>d. alert("Hello"); <br />
<h3>4. Javascript is directly related to the "Java" programming language?</h3>
<input type="radio" name="q4" value="a" id="q4a"/>a. True <br />
<input type="radio" name="q4" value="b" id="q4b"/>b. False <br />
<h3>5. A variable in Javascript must start with which special character?</h3>
<input type="radio" name="q5" value="a" id="q5a"/>a. @ <br />
<input type="radio" name="q5" value="b" id="q5b"/>b. $ <br />
<input type="radio" name="q5" value="c" id="q5c"/>c. # <br />
<input type="radio" name="q5" value="d" id="q5d"/>d. No Special Character <br />
<input type="submit" value="Submit Answers" />
</form>
</section>
<footer>
<p>© Copyright 2017. All Rights Reserved.</p>
</footer>
</div>
<script src="js/script.js" type="text/javascript"></script>
</body>
</html>