This is a simple Java project that simulates an online exam system. The system consists of a single window with multiple choice questions and options to navigate between questions using "Next" and "Bookmark" buttons.
- 10 multiple choice questions
- Ability to navigate between questions using "Next" and "Bookmark" buttons
- Ability to mark questions for review and view marked questions
- Automatic scoring with message display upon exam submission
- Java Swing for GUI
- Java Button, Label, and RadioButton components for user interaction
- Java ActionListener for handling user input
- Save the provided code in a file named OnlineTest.java
- Open a terminal or command prompt and navigate to the directory containing the file
- Compile the code using the command
javac OnlineTest.java
- Run the compiled code using the command
java OnlineTest
This is a simple project and does not include features such as user authentication, question randomization, or time limits. It is intended to serve as a starting point for those interested in building a more comprehensive online exam system.
For any questions or concerns, please contact ankitraj.ofc@gmail.com
Here is an example of how to use the provided Java exam system:
- Open the OnlineTest.java file in your preferred Java IDE.
- Run the program by clicking the "Run" button or using the command
java OnlineTest
. - The program will display a window with multiple choice questions and navigation options.
- Navigate through the questions using the "Next" and "Bookmark" buttons.
- Mark questions for review by clicking the "Mark for Review" button next to the question.
- View marked questions by clicking the "View Marked Questions" button.
- Submit the exam by clicking the "Submit" button.
- The program will display a message with your score and a list of marked questions.
Please note that this is a simple example and may not be suitable for all use cases. For a more comprehensive online exam system, consider implementing additional features such as user authentication, question randomization, and time limits.