x after all steps?x = 5 x = x + 3 x = x * 2 x = x - 4
Start with x = 5. Then x + 3 = 8. Next multiply by 2: 8 * 2 = 16. Finally subtract 4: 16 - 4 = 12. So the final value is 12.
A variable acts like a labeled box in the computer's memory where a value is kept until needed. It does not send the value to the screen or delete it immediately.
Booleans usually need 1 bit or byte, integers need more bytes, floating-point numbers need even more, and strings can vary but often require the most space.
Variable names cannot start with digits. Option B starts with '2', which is invalid. Other options start with letters or underscore, which are allowed.
a and b after execution?a = 10 b = 20 a, b = b, a
The line a, b = b, a swaps the values of a and b. So a becomes 20 and b becomes 10.
