If you must brake and swerve to avoid a hazard, you should:

If you must brake and swerve to avoid a hazard, you should perform both actions separately. Brake then swerve, or swerve then brake. Do not do both at the same time.
DMV Writen Test