https://github.com/jacek13/quiz
simple quiz application written in C++ with Qt
https://github.com/jacek13/quiz
cpp cpp17 json qt quiz quizapp
Last synced: 3 months ago
JSON representation
simple quiz application written in C++ with Qt
- Host: GitHub
- URL: https://github.com/jacek13/quiz
- Owner: jacek13
- License: mit
- Created: 2022-06-08T16:07:36.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-06-17T11:53:31.000Z (about 4 years ago)
- Last Synced: 2024-12-26T03:12:04.660Z (over 1 year ago)
- Topics: cpp, cpp17, json, qt, quiz, quizapp
- Language: C++
- Homepage:
- Size: 115 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
### **About project**
Quiz - is a simple application that allows you to solve quizzes.
Here you can test [demo](https://jacek13.github.io/) of the application in the WebAssembly version in your browser. Note that this version does not support the full functionality of the PC version (QT WebAssambly limitations).
---
### **How to load questions**
We can pass files with questions from the local machine or use an internet connection. Then enter the URL with the hosted quiz into the application
---
### **File format**
Quizzes are stored in .json format. Below is an example file:
```json
{
"categories":[
{
"name":"First category",
"questions":[
{
"question":"Select best programming language.",
"answers":[
"C",
"C++",
"C#",
"Python"
],
"values":[
true,
true,
true,
false
]
},
{
"question":"Select fastest programming language",
"answers":[
"Java",
"C#",
"C",
"Python"
],
"values":[
false,
false,
true,
false
]
}
]
},
{
"name":"Second category",
"questions":[
{
"question":"Select slowest programming language.",
"answers":[
"Java",
"C++",
"C#",
"C"
],
"values":[
true,
false,
false,
false
]
}
]
}
]
}
```