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

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.

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