Skip to content

Commit bf014ee

Browse files
committed
Update Quiz
1 parent 8b20cdd commit bf014ee

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docs/index.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -101,10 +101,10 @@ <h1>LiquidJava Quiz</h1>
101101
<li>
102102
<p>In LiquidJava, to specify that a method should only be called when in the <code>open</code> state, we should use:</p>
103103
<ul class="radio-list">
104-
<li><label><input type="radio" data-question="1" data-content="0" /> <code>@StateRefinement("state == 'open'")</code></label></li>
104+
<li><label><input type="radio" data-question="1" data-content="0" /> <code>@StateRefinement("state == 'open(this)'")</code></label></li>
105105
<li><label><input type="radio" data-question="1" data-content="0" /> <code>@Refinement("state == 'open'")</code></label></li>
106106
<li><label><input type="radio" data-question="0" data-content="1" /> <code>@StateRefinement(from="open(this)")</code></label></li>
107-
<li><label><input type="radio" data-question="1" data-content="0" /> <code>@State("open")</code></label></li>
107+
<li><label><input type="radio" data-question="1" data-content="0" /> <code>@Refinement(state="open")</code></label></li>
108108
</ul>
109109
</li>
110110
<li>
@@ -130,16 +130,16 @@ <h1>LiquidJava Quiz</h1>
130130
<ul class="radio-list">
131131
<li><label><input type="radio" data-question="1" data-content="0" /> Store temporary data during the program execution</label></li>
132132
<li><label><input type="radio" data-question="0" data-content="1" /> Model abstract properties of objects for verification purposes</label></li>
133-
<li><label><input type="radio" data-question="1" data-content="0" /> To track memory usage</label></li>
134-
<li><label><input type="radio" data-question="1" data-content="0" /> To replace regular variables for better performance</label></li>
133+
<li><label><input type="radio" data-question="1" data-content="0" /> Track memory usage of the program</label></li>
134+
<li><label><input type="radio" data-question="1" data-content="0" /> Replace regular variables for better performance</label></li>
135135
</ul>
136136
</li>
137137
<li>
138138
<p>In LiquidJava, which of the following refinements updates the ghost variable <code>size</code>?</p>
139139
<ul class="radio-list">
140-
<li><label><input type="radio" data-question="1" data-content="0" /> <code>@Refinement("size(this) = 0")</code></label></li>
141-
<li><label><input type="radio" data-question="1" data-content="0" /> <code>@StateRefinement(to="size(this) == size(old(this))")</code></label></li>
142-
<li><label><input type="radio" data-question="1" data-content="0" /> <code>@Refinement("size(this)++")</code></label></li>
140+
<li><label><input type="radio" data-question="1" data-content="0" /> <code>@Refinement("size = 0")</code></label></li>
141+
<li><label><input type="radio" data-question="1" data-content="0" /> <code>@StateRefinement(from="size(this) > 0")</code></label></li>
142+
<li><label><input type="radio" data-question="1" data-content="0" /> <code>@Refinement("size++")</code></label></li>
143143
<li><label><input type="radio" data-question="0" data-content="1" /> <code>@StateRefinement(to="size(this) == size(old(this)) + 1")</code></label></li>
144144
</ul>
145145
</li>

0 commit comments

Comments
 (0)