You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<p>In LiquidJava, what does the following state refinement mean? <code>@StateRefinement(from="!closed(this)", to="closed(this)")</code></p>
109
112
<ulclass="radio-list">
110
-
<li><label><inputtype="radio" data-question="1" data-content="0" /> The method can only be called when the object is closed and will leave it closed.</label></li>
111
-
<li><label><inputtype="radio" data-question="1" data-content="0" /> The method can only be called when the object is open and will leave it open.</label></li>
112
-
<li><label><inputtype="radio" data-question="0" data-content="1" /> The method can only be called when the object is not closed and will leave it closed.</label></li>
113
-
<li><label><inputtype="radio" data-question="1" data-content="0" /> The method can be called in any state and will leave it closed.</label></li>
113
+
<li><label><inputtype="radio" data-question="1" data-content="0" /> The method can only be called when the object is closed and will leave it closed</label></li>
114
+
<li><label><inputtype="radio" data-question="1" data-content="0" /> The method can only be called when the object is open and will leave it open</label></li>
115
+
<li><label><inputtype="radio" data-question="0" data-content="1" /> The method can only be called when the object is not closed and will leave it closed</label></li>
116
+
<li><label><inputtype="radio" data-question="1" data-content="0" /> The method can be called in any state and will leave it closed</label></li>
114
117
</ul>
115
118
</li>
116
119
<li>
@@ -125,18 +128,18 @@ <h1>LiquidJava Quiz</h1>
125
128
<li>
126
129
<p>In LiquidJava, a ghost variable is used to:</p>
127
130
<ulclass="radio-list">
128
-
<li><label><inputtype="radio" data-question="1" data-content="0" /> Store temporary data during method execution</label></li>
129
-
<li><label><inputtype="radio" data-question="0" data-content="1" />Represent abstract properties of objects to be used in refinements</label></li>
131
+
<li><label><inputtype="radio" data-question="1" data-content="0" /> Store temporary data during the program execution</label></li>
132
+
<li><label><inputtype="radio" data-question="0" data-content="1" />Model abstract properties of objects for verification purposes</label></li>
130
133
<li><label><inputtype="radio" data-question="1" data-content="0" /> To track memory usage</label></li>
131
134
<li><label><inputtype="radio" data-question="1" data-content="0" /> To replace regular variables for better performance</label></li>
132
135
</ul>
133
136
</li>
134
137
<li>
135
138
<p>In LiquidJava, which of the following refinements updates the ghost variable <code>size</code>?</p>
0 commit comments