https://github.com/himu143/json-quiz-project-on-java
This Java project is made for a quiz exam, enabling the addition of quiz questions and the start of the quiz-taking procedure. It offers a thorough method that displays the right and wrong responses while also calculating the marks obtained from five randomly selected questions from a certain module, like testing.
https://github.com/himu143/json-quiz-project-on-java
intellij java json
Last synced: 2 months ago
JSON representation
This Java project is made for a quiz exam, enabling the addition of quiz questions and the start of the quiz-taking procedure. It offers a thorough method that displays the right and wrong responses while also calculating the marks obtained from five randomly selected questions from a certain module, like testing.
- Host: GitHub
- URL: https://github.com/himu143/json-quiz-project-on-java
- Owner: Himu143
- Created: 2023-03-01T15:49:04.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-03-01T16:57:07.000Z (over 3 years ago)
- Last Synced: 2025-03-01T17:17:21.692Z (over 1 year ago)
- Topics: intellij, java, json
- Language: Java
- Homepage:
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Quiz-project-on-Java (Adding question and participating quiz exam)
## Technology & Tools Used
- Java
- Intellij IDEA
## Project Scenario:
#### Create a quiz program that will take questions, option and answer from admin user and save it to the question bank. Then if any user want to give the quiz, random 5 questions will be shown to the user from the question bank.
Program output:
1. Add Quiz
2. Start Quiz
#### if user select option 1, then system will tell user to input a question, 4 options and correct ans to save data in a quiz bank. The quiz bank will be a json file. For an example,
System>Please add a ques here:
User>Which testing is done by developer?
System>Input options.
Option a:
User> Unit Testing
Option b:
User> Integration Testing
Option c:
User> Sanity Testing
Option d:
User> Regression Testing
System> Please input the correct ans
User> a
System: Quiz saved at the database. Do you want to add more? (y/n)
if user press y, then the previous scenario will happen again otherwise the program will be closed.
If user select option 2, then,
System> You will be asked 5 questions, each questions has 1 marks
1. Which testing is done by developer?
- a. Unit Testing
- b. Integration Testing
- c. Sanity Testing
- d. Regression Testing
User> a
System> Correct!
else not correct,
System: Not correct
#### Finally 5 different random questions will appear from your question database. At least add 15 questions from any category from testing.
Result: You got [correct_marks] out of 5
JSON Format:
[
{
"Question":"Which testing is done by developer?",
"option a":"Unit Testing",
"Option b":"Integration Testing",
"Sanity Testing":"Sanity Testing",
"Option d":"Regression Testing",
"answer":"a"
},
{
"Question":"Which is functional testing?",
"option a":"Load Testing",
"Option b":"Security Testing",
"Sanity Testing":"Gorilla Testing",
"Option d":"Benchmark Testing",
"answer":"c"
}
]
## Video Output:
https://user-images.githubusercontent.com/78273243/222193212-b3588b51-9a7a-4f3a-b324-a1cf0ec8df47.mp4