-
Notifications
You must be signed in to change notification settings - Fork 2
/
multiple-choice-question-preview.html
93 lines (91 loc) · 3.52 KB
/
multiple-choice-question-preview.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css">
<link rel="stylesheet" href="src/main/resources/static/prism.css"/>
<link rel="stylesheet" href="src/main/resources/static/simple-forms.css"/>
<link rel="stylesheet" href="src/main/resources/static/quizdown.css"/>
<script src="src/main/resources/static/prism.js"></script>
<title>Hello</title>
</head>
<body>
<div class="columns">
<div class="column is-half is-offset-one-quarter">
<div class="subtitle is-3">Hi there, <span>Ted</span></div>
<form method='post' action='/answer'>
<p class="question">Take a look at these two classes:</p>
<pre><code class="language-java">class Equity {
public Equity(List<String> names) {
}
}
class Stock extends Equity {
}
</code></pre>
<p class="question">What's wrong with this code?</p>
<div class="field">
<div class="control">
<label class="control checkbox">
<input type="checkbox" id="q1ch1" name="q1ch1" value="a"/>
<span class="control-indicator"></span>
Won't compile: <code style="background: none !important" class="language-java">Stock</code> doesn't
have a <strong>default</strong> constructor
</label>
</div>
</div>
<div class="field">
<div class="control">
<label class="control checkbox">
<input type="checkbox" id="q1ch2" name="q1ch2" value="b"/>
<span class="control-indicator"></span>
Won't compile: <code style="background: none !important" class="language-java">Equity</code> doesn't
have a <strong>default</strong> constructor
</label>
</div>
</div>
<div class="field">
<div class="control">
<label class="control checkbox">
<input type="checkbox" id="q1ch3" name="q1ch3" value="c"/>
<span class="control-indicator"></span>
Can be <em>fixed</em> by adding this code to Stock: <code style="background: none !important"
class="language-java">Stock(List<String>
names) { }</code>
</label>
</div>
</div>
<div class="field">
<div class="control">
<label class="control checkbox">
<input type="checkbox" id="q1ch4" name="q1ch4" value="d"/>
<span class="control-indicator"></span>
Can be <em>fixed</em> by adding this code to Stock: <code style="background: none !important"
class="language-java">Stock(List<String>
names) { super(names); }</code>
</label>
</div>
</div>
<div class="field">
<div class="control">
<label class="control checkbox">
<input type="checkbox" id="q1ch5" name="q1ch5" value="e" checked/>
<span class="control-indicator"></span>
I really don't know
</label>
</div>
</div>
<input type="hidden" id="question" name="question" value="1">
<div class="field">
<div class="control">
<a class="button" disabled>Previous</a>
<button class="button is-link">
Next Question
</button>
</div>
</div>
</form>
</div>
</div>
</body>
</html>