Skip to main content
AP CSP course

Topic 3.4 · Interactive concept example

Join exact strings and preserve spaces

  • Text digits versus numbers
  • Concatenation and length
  • Literal spaces and leading zeros

Change it · step through · explain

Change an input, predict what will happen, then advance one step. Read why the state changes, reset and experiment. This fixed teaching model does not save progress or award XP.

Ready · Make a prediction

Ready to explore: Join exact strings and preserve spaces
  1. Left text (max 30 characters)007Waiting
  2. Right text (max 30 characters)2Waiting
  3. SeparatornoneWaiting

Ready to explore: Join exact strings and preserve spaces

Why: Change an input, predict the first effect, then advance one step.

Try this: Change one input or choose another listed case. Predict the effect, reset and compare the states and governing rule.