Pochacco’s explanation is essentially correct, but it may be a little hard to follow. Let me recast the argument by going back to some fundamentals.
Fundamental One: All materials are elastic. What that means is when you pull on a material, it will stretch. Doesn’t matter what the material is. Sometimes you can see this with the naked eye (pull on a rubber band), sometimes you can’t (pull on a steel bar), but it’s always true. And it’s most certainly true for a string. You can test this yourself: tie a string around a chair leg and pay out six to ten feet, then gently tug on the end.
Fundamental Two: Unbalanced forces produce acceleration. Your computer monitor stays in one place because all the forces on it are balanced; i.e., everything cancels out. If you give it a stiff shove, the force from your hand will overcome any resisting friction. This *unbalanced * force causes acceleration.
Fundamental Three: Accelerations cause a change in velocity; velocities cause a change in position. Perhaps this is obvious, but when you shove your monitor, the acceleration causes the monitor’s velocity to change (it used to be zero, right?). That velocity causes the monitor’s position to change (now it’s in a different location on your desk).
Fundamental Four: Mass (or inertia, if you like) is the resistance of an object to being accelerated. This is just another way of saying Newton’s law: F=ma. With a certain force, a small mass will be accelerated a lot, and a large mass will be accelerated only a little.
OK, now put those together:
If you yank on the lower string in your example, what you’re essentially doing is rapidly stretching the lower string. That rapid stretch is equivalent to a force in the string, and the stretch (and force) keeps increasing until the string breaks.
The same force is applied to the 500g weight. But remember, that force causes the weight to accelerate And here’s the key: If the force is only applied briefly, then the acceleration is applied only briefly, and the velocity if the mass is small, and thus the change in location of the mass is small. Or, succinctly: The mass will not move as fast or as far as the end of the string in your physics teacher’s hand does.
If the change in location of the mass is small, then the upper string is only stretched a little bit. If the upper string is only stretched a little bit, then it won’t stretch enough to break.