In every state, specific regulations govern the consequences of failing a quiz or exam.
Regardless of state requirements, you are granted until the expiration date to finish the course.
For more information, refer to your state's page. If the course expires, most states offer a limited-time option to purchase a 30-day extension. In the event of course expiration, repayment and course restart are necessary.