List of all available Websheets
Viewing cpp/cs102/practiceLab3/assignExpr1 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; double z = 1.4; a = c + b / 2; b = b + b / b; c = c % 8; b = (a + b + z) / 2.0; } </code></pre> |
Remarks Comments, history, license, etc. | Copied from problem cpp/cs102/practiceLab4/assignAndIncDec (author: redekopp@usc.edu) |
Engine | |
Choices json list of string, bool pairs e.g. [["good", true], ["bad", false]] | [["a = 1, b = 2.7, c= 2", null], ["a = 7, b = 5.7, c = 2", null], ["a = 4, b = 6, c = 2", null], ["a = 7, b = 6, c = 6", null], ["a = 7, b = 6.2, c = 6", 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'.