Quiz

Question 1 of 5. 0 correct, 0 incorrect.

A loop appends to a string with +=. Put what happens on a single pass into the order it happens.

  1. 1The characters the variable currently points at are read
  2. 2A new string object is created from that sequence
  3. 3A new sequence is built holding those characters plus the new piece
  4. 4The variable is pointed at the new object, and the old one becomes unreachable