An open API service indexing awesome lists of open source software.

https://github.com/muradisazade777/quizfusion

QuizFusion is a modular Java-based quiz engine that loads questions from a JSON bank and exports results for Python-powered analytics. Lightweight, branded, and developer-friendly β€” perfect for CLI-based learning tools and cross-language integration.
https://github.com/muradisazade777/quizfusion

analysis api backend functional-programming java json library modules python result running server service

Last synced: 11 days ago
JSON representation

QuizFusion is a modular Java-based quiz engine that loads questions from a JSON bank and exports results for Python-powered analytics. Lightweight, branded, and developer-friendly β€” perfect for CLI-based learning tools and cross-language integration.

Awesome Lists containing this project

README

          

# 🎯 QuizFusion

**QuizFusion** is a modular, multi-language quiz engine built in Java, powered by JSON-based question banks and Python-driven result analytics. Designed for developers, learners, and educators who want a clean, branded, and extensible quiz platform.
---

## 🧠 Features

- βœ… Java-powered quiz engine with dynamic question loading
- πŸ“¦ JSON-based question bank for easy editing and expansion
- πŸ“Š Python analytics with pie chart visualization
- πŸ“ Result export to JSON for cross-language integration
- 🧩 Modular file structure for clarity and scalability
---

## πŸš€ How to Run

### πŸ”§ Compile Java files with Gson:

```bash
javac -cp "lib/gson-2.10.1.jar" src/com/quizfusion/*.java
```
# Run the quiz engine:
```bash
java -cp "lib/gson-2.10.1.jar;src" com.quizfusion.QuizFusion
```
πŸ§ͺ Sample Java Output
text
? What is the capital of France?

0) Berlin
1) Madrid
2) Paris
3) Rome
Your answer: 2
βœ… Correct!

? Which language runs in a web browser?

0) Java
1) C
2) Python
3) JavaScript
Your answer: 3
βœ… Correct!

? Who developed Java?

0) Microsoft
1) Sun Microsystems
2) Apple
3) Google
Your answer: 3
❌ Incorrect. Correct answer: Sun Microsystems

🎯 Final Score: 2 / 3
πŸ“ Results exported to data/results.json
πŸ“Š Python Result Analysis
πŸ“¦ Install matplotlib:
```bash
πŸ“ˆ Run the analysis script:

pip install matplotlib
python analysis/analyze_results.py
```
πŸ–ΌοΈ Pie Chart Output:
βœ… Correct: 66.7%

❌ Incorrect: 33.3%

The chart clearly visualizes performance distribution:

🟩 Correct β€” 2 out of 3
πŸŸ₯ Incorrect β€” 1 out of 3.

## πŸ–ΌοΈ Screenshot

Here’s a sample run of QuizFusion with result analysis:

![QuizFusion Screenshot](assets/result.png)

πŸ“„ JSON Question Bank
```json
[
{
"prompt": "What is the capital of France?",
"options": ["Berlin", "Madrid", "Paris", "Rome"],
"correctIndex": 2
},
{
"prompt": "Which language runs in a web browser?",
"options": ["Java", "C", "Python", "JavaScript"],
"correctIndex": 3
},
{
"prompt": "Who developed Java?",
"options": ["Microsoft", "Sun Microsystems", "Apple", "Google"],
"correctIndex": 1
}
]
```

πŸ–‹οΈ Author
Crafted by Murad β€” visionary full-stack developer and system architect. Branded, modular, and elegant β€” just the way code should be.