There's two ways to set up the online courses so that the quizzes are enabled for your workers without viewing the lessons
The first way would change the global settings for your online courses and would be your default setting for all courses. To do this;
On the admin side, click on online courses >> Settings
For the first question, select yes if you want workers to attempt the quiz without viewing lessons. Then Save Changes. This will enable all the take quiz buttons in the lessons.
The second way will allow you to change the settings to specific courses. From the admin side, click on online courses then select the course from the list, and navigate to the settings tab.
Keep default settings or customize settings as required, then save changes.