✕ Close

Week 13 · 13.4 · Thu, Oct 29 · Do Now

Do Now

Work every question in your notebook. Do it on your Chromebook with your ID.

  1. Trace row

    Trace these lines. What do the boxes hold after line 3?

    q ← 38
    a ← q ÷ 5
    b ← q rem 5
    1. q = 38, a = 7, b = 3
    2. q = 38, a = 7.6, b = 3
    3. q = 38, a = 7, b = 7
    4. q = 3, a = 7, b = 3
  2. Predict

    What is shown?

    show 4 + 17 rem 5 * 3
    1. 3
    2. 6
    3. 10
    4. 13
  3. Error analysis

    A student traced these lines and wrote that m holds 21 at the end. The right answer is 15. What mistake did the student make?

    m ← 47
    m ← m rem 6
    m ← m * 3
    1. On line 2, the student used ÷ instead of rem.
    2. On line 3, the student used the old value of m, 47.
    3. The student skipped line 2.
    4. On line 2, the student rounded 7.83 up to 8.
  4. Rem

    x rem 6 is 0. Which of these could x be?

    1. 3
    2. 42
    3. 44
    4. 61
  5. Output

    Trace these lines. Write exactly what is shown, one line for each show.

    s ← 200
    m ← s ÷ 60
    s ← s rem 60
    show m
    show s