If you must swerve, you should:

If you must swerve to avoid a hazard, apply a small amount of pressure to the appropriate handle grip. To swerve to the left, press the left handle grip, then press the right to recover. To swerve to the right, press the right handle grip, then the left.

Wait, before you go

Ace Your Texas Motorcycle Written Test with our Guaranteed Cheat Sheet