Search

1 of 8 0-day streak

Binary place value and algorithm traces

DIFFICULTYstandard
Question 1 of 8

No calculator

Execute statements in order. ← means assignment using current values

  • x ← 15
  • y ← 19
  • x ← 2 × x + y
  • y ← x − y
  • OUTPUT x, y
2 marks

What are the final values of x and y? The assignments are sequential, not simultaneous