Search

1 of 8 0-day streak

State, assignment and sequence

DIFFICULTYintrostandard

This is a fixed question bank. Later sets may repeat these questions

Question 1 of 8

No calculator

Use this complete initial state and execute the numbered instructions once, from top to bottom

VariableInitial value
x1

The arrow ← means assignment, not an algebraic equation: first evaluate its right side using the values just before that step, then replace only the target variable on the left

All values here are numbers. Copying a variable copies its current numerical value, not a live link or spreadsheet formula

StepInstruction
1x ← x + 4
2x ← x + 3
1 mark

What is the final value of x after every instruction has run?