The Java Quiz Application is a JavaFX-based desktop application that provides users with the opportunity to test their knowledge of Java programming concepts through interactive quizzes. Dive into a world of interactive learning with multiple-choice questions covering a range of programming topics. Receive instant feedback on your answers, explore detailed explanations, and enhance your coding skills!
Features • Getting Started • Usage • Dependencies • Screenshots • Contributing •
A special thanks to Sanfoundry for providing a valuable source of questions and answers that contributed to the content of this quiz application.
🚀 Theme and subtheme selection: Users can choose from a list of available themes and subthemes for the quiz. 🔍 Multiple-choice questions: Each subtheme contains a set of multiple-choice questions related to the selected topic. 🔍 Correct answer tracking: The application tracks correct and incorrect answers and displays the result at the end. ✨ Percentage score calculation: The application calculates the percentage score based on the number of correct answers. 💡 Explanation for answers: Users receive explanations for each question after submitting their answers.
To run the Java Quiz Application, follow these steps:
- Clone the repository:
git clone https://github.com/NikKnez/JavaQuizMQA.git
- Open the project in your preferred Java IDE.
- Make sure you have the required dependencies (see Dependencies).
- Build and run the
JavaQuizFX
class to start the application.
- Upon launching the application, you will be greeted with a welcome screen.
- Choose a theme and subtheme for the quiz.
- Start the quiz and answer the multiple-choice questions.
- Submit your answers and view the result, including your score and explanations for each question.
- You can start a new quiz or exit the application from the results screen.
This project uses the following dependencies:
- JavaFX: The JavaFX library is used for creating the graphical user interface.
- MySQL Connector: The MySQL Connector
mysql-connector-j-8.0.33.jar
in/lib
folder is used for connecting to the MySQL database. Import the database schema usingjavaquiz.sql
in/lib
folder. - Database: Create
config.properties
file insideresource
folder that contains users data (db.user=your_root and db.pass=your_pass). - CSS Styles: The application's UI is styled using CSS. The styles can be found in the
styles.css
file.
Contributions are warmly welcomed! If you find issues or want to add new features, feel free to open an issue or submit a pull request.