List of all available Websheets
Viewing cpp/cs102/practiceLab4/assignAndIncDec by redekopp@usc.edu. You have unsaved changes. Log in above to create, edit, preview and publish Websheets.
Property | Value |
---|---|
Description html markup shown to student | What are the values of a, b, and c at the conclusion of this function? <pre><code> #include <iostream> using namespace std; int main() { int a = 1, b = 3, c = 6; b += (c-a); a++; c--; a -= b; c /= 2; } </code></pre> |
Engine | |
Choices json list of string, bool pairs e.g. [["good", true], ["bad", false]] | [["a = -4, b = 8, c= 3", null], ["a = -2, b = 6, c = 2", null], ["a = 2, b = 6, c = 3", null], ["a = -2, b = 4, c = 3", null], ["a = -6, b = 8, c = 2", null]] |
Note: problems are open-source by default (see 'Public permissions'). Assumed license for open problems is Creative Commons 4.0 Attribution-ShareAlike unless specified in 'Remarks'.