Coders Packet

Quiz Application using java swing

By Sejal Sahu

It includes a login interface, quiz rules, and question answering functionality for users to test their knowledge.

quizApp pic1

 

quizApp pic2

 

quizApp pic3

 

The three primary classes in the code are "Login," "Quiz," and "Rules."

The quiz application's login screen is represented by the 'Login' class. It has two buttons—"Rules" and "Exit"—and a form where the user may input their name. The "Rules" button, when clicked, launches the "Rules" screen with the supplied name as a parameter. The application will end when you click the "Exit" button.

The quiz screen is represented by the class 'Quiz'. It has a number of questions, choices, and navigational buttons. The queries and responses are kept in arrays. By selecting the "Next" button, the user can pick an answer and go to the following question. Additionally, there are two erroneous alternatives are disabled by a "50-50 Lifeline" button, and there is a "Submit" button to submit the responses. Based on the right responses, the score is determined.

The rules screen is represented by the 'Rules' class. The user's name is displayed in a welcome message along with details about the quiz's regulations. The "Start" button starts the quiz, and the "Back" button returns you to the login page.

 

Download Complete Code

Comments

No comments yet

Download Packet

Reviews Report

Submitted by Sejal Sahu (Sejal)

Download packets of source code on Coders Packet