[FREE] QuizController with Report

Dear team ,

here is my another extension named as QuizController which receives the Questions from the users and populate them easily for the users and if all are answered it will give the details report with Correctly Marked Question and Answers as well Wrongly marked question,marked answer along with actual answer as a Yail list. and also score and percentage.

In community i found some peoples raised topic regarding the quiz, shuffling the its process. So i made this cute and compact extension. This supports 1000+ questions easily and shuffle them easily.

During initialization if you set the boolean as true or false then no need to add further shuffling. It may lead crash or not working or may get freeze.

Let me introduce the blocks and its documentation.

QuizController

Complete QuizController with Answer Tracking

The work flow

Step 1 : Prepare your lists , may be from anywhere DB, file, manual etc etc.
Step 2 : Once ready with all the lists call the QuizController initialize helper block  (If need shuffle mark it as true else mark it as False

image

Format of questionData should be like this

item 1 Question 
item 2 Option 1 
item 3 Option 2 
item 4 Option 3 
item 5 Option 4 
item 6 Correct answer

(If you add other format it will throw error or app may not work, or foreclose)
image

Step 3: Loading will triggered if your list is too big.
Step 4: Once all the questionData initialized (if shffling requested, shuffled) then design blcoks like this. Thie questionData will give the first question to display as a YailList. So it will be easy to format it.

image

Step 5: Next focus on to the listener to submit answer. Try to get answer from the user in your style but in string type.

image

Step 6: If previous step was success then automatically this event will trigger

If the user answer is correct automatically +1 will increment else 0. So no more worry about score.

displayPos: Will says which give the current index of the question (irrespective of shuffling)
originalPos: Will give you if shuffled actual nth place in the original questionData else it will be same int likedisplayPos

Step 7: Focus on to Next or Previous Click. Once it triggered then you wll be pushed to step 5 automatically and it will continue till user attend all the questions. Once all over automatically user will forced to final event listener

image

So team, pls test this aix, and if you find any error let me know. Then will decide whether to continue or discontinue this extension

Extension

Version 01:
QuizController(1).aix (15.6 KB)
2025-03-28T18:30:00Z

Documentation
QuizControllerDocumentation.pdf (844.2 KB)
QuizController_documentation.pdf (3.1 MB)

Credit @AkshatRana @techxsarthak for the documentation

2 Likes