0% found this document useful (0 votes)
501 views21 pages

Online Quiz Management Using Java: Sr. No. Roll No. (Sem-5) Full Name of Students Enrollment No. Seat No. (Semester-5)

This document contains the source code for an online quiz management system developed using Java. The source code includes classes for the quiz frame with labels, radio buttons for multiple choice answers, and buttons for navigation. Methods are included to initialize the quiz, handle button clicks for next and bookmark, check answers, and update the question count and current question number. The code provides the core functionality for a basic multiple choice online quiz system with navigation between questions.

Uploaded by

chakarpinil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
501 views21 pages

Online Quiz Management Using Java: Sr. No. Roll No. (Sem-5) Full Name of Students Enrollment No. Seat No. (Semester-5)

This document contains the source code for an online quiz management system developed using Java. The source code includes classes for the quiz frame with labels, radio buttons for multiple choice answers, and buttons for navigation. Methods are included to initialize the quiz, handle button clicks for next and bookmark, check answers, and update the question count and current question number. The code provides the core functionality for a basic multiple choice online quiz system with navigation between questions.

Uploaded by

chakarpinil
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 21

Subject name and code: AJP (22517) Academic Year: 2023-24

Couse Name: IF5I Semester: Fifth

A STUDY ON

Online quiz management using java


MICRO PROJECT REPORT
Submitted in Nov 2023 by the group of 2 students
Sr. Roll No. Full Name of Students Enrollment Seat No.
No. (sem-5) No. (semester-5)
1 OTO 53 PINIL BABURAV CHAKAR 2209350316
2 OTO 56 MAYUR SAHEBRAO PAWAR 2209350322

Under the Guidance of


PROF. MS. SHWETA CHANCHALANI
In
Diploma Board of Technical Education,
ISO 9001:2008 (ISO/IEC-27001:201
SHIVAJIRAO S. JONDHALE POLYTECHNIC, ASANGOAN
MAHARASHTRA STATE BOARD OF
TECHNICAL EDUCATION,
MUMBAI

CERTIFICATES
AS
This is to certify that Mr. PINIL BABURAV CHAKAR
Roll No: OTO53 of Fifth Semester of Information Technology Programme in
Engineering & Technology at Shivajirao. S Jondhale Polytechnic Asangaon
(EAST) Shahapur 421601 has completed the Micro Project Satisfactorily in
Subject: AJP
In the academic Year 2023 as prescribed curriculum of I Scheme.

Place: ASANGOAN Enrollment No: 2209350316


Date: / /2023 Exam Seat No:

Project Guide Head of Department Principal

Seal of
institute
MAHARASHTRA STATE BOARD OF TECHNICAL EDUCATION,
MUMBAI

CERTIFICATES

This is to certify that Mr. MAYUR SAHEBRAO PAWAR


Roll No: OTO 56 of Fourth Semester of Information Technology Programme in
Engineering & Technology at Shivajirao. S Jondhale Polytechnic Asangaon
(EAST) Shahapur 421601 has completed the Micro Project Satisfactorily in
Subject: AJP
In the academic Year 2023 as prescribed curriculum of I Scheme.

Place: ASANGOAN Enrollment No: 2209350322


Date: / /2023 Exam Seat No:

Project Guide Head of Department Principal

Seal of
institute

-:Index:-
Sr.No. Name of Chapter Page No.

Abstraction
Chapter 1 3

Introduction
Chapter 2 6

About project
Chapter 3 7

Source code of project


Chapter 4 9

Output of project
Chapter 5 10

Chapter 6 Conclusion 14

References
Chapter 7 16

CHAPTER 1
ABSTRACT
OnlineQuizSystem is an intelligent prototype developed as a multiple choice question
examination system which is built as a Web based application scalable to run on both intranet and
internet. OnlineQuizSystem is intelligent enough and equipped with a level of automation to guide
the students to get proficiency/become subject matter experts by taking the tests. The core
underlying automation of the OnlineQuizSystem will generates questions and options on the fly basis
and captures the answers from students into the database

It ensures that students will have the Mock Tests for practice, and can get the results
displayed in their panel. The OnlineQuizSystem is designed for three major roles. Those are  An
administrator who controls all the level of roles and creates the tests.  An Instructor should be able
to create test questions and manage tests. A Student who is an end user for the tests. The main
objective of the OnlineQuizSystem is to efficiently evaluate the student using a fully automated
system that not only saves a lot of time but also gives fast results. Technologies used to develop this
website are HTML, CSS, and JavaScript for client side validation, C# & ASP.NET for dynamic content
update. Microsoft SQL Server is used as a data base server for this application.

CHAPTER 2
INTRODUCTION
A Quiz Management System In Java is to perform the examination for the student where an teacher
can add questions, set password for quiz ,set timer for the exam and types of examination depends
on the category. As a user student can attend those exams. The student user can submit the test
after finish the exam and get results through mail on there email id(it is implemented by mail
services in java). A teacher and admin user can get the history of his exam results. Admin also can
check the complete activity of all the users and teacher users. Like exams and results. Quiz
Management System project is a desktop application which is developed in Java platform. This Java
project with tutorial and guide for developing a code. Quiz Management System is a open source
you can Download zip and edit as per you need. If you want more latest Java projects here. This is
simple and basic level small project for learning purpose. Also you can modified this system as per
your requriments and develop a perfect advance level project. Zip file containing the source code
that can be extracted and then imported into eclipse,netbeans. This Source code for BE, BTech,
MCA, BCA, Engineering, Bs.CS, IT, Software Engineering final year students can submit in college.
This script developed by ravindra jain.

CHAPTER 3

ABOUT PROJECT
The „MCQ Quiz Application‟ project will be developed to overcome the time consuming
problem of manual system. Apart from that in current system, checking the answer sheets after
taking test, waste the examiners time, so this application will check the correct answer and save the
examiner time and carry the examination in an effective manner. The users which are use this
system don‟t need to high computing knowledge and also system will inform them while entering
invalid data

The aim of this project is to computerized the existing manual system and help the
examiners to save their valuable time and important data. Apart from this, data which are exist in
this system, will exist for long period of time and will be easy accessible. This project helps the
examiners to manage their services in a good way and provide a better service to their users. The
objective of this project is to manage the details of students, examinations, marks, courses and
papers in a good manner

The performance of the application will be fully control by administrator and administrator
can guaranty any one to access. The project will reduce the manual process in managing
examinations and all issues regarding that.

CHAPTER 4

SOURCE CODE OF PROJECT

import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import javax.swing.ButtonGroup;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JOptionPane;
import javax.swing.JRadioButton;

class OnlineTest extends JFrame

implements ActionListener { private

static final long serialVersionUID = 1L;

JLabel label;

JRadioButton radioButton[] = new JRadioButton[5];


JButton btnNext, btnBookmark;
ButtonGroup bg;
int count = 0, current = 0, x = 1, y = 1, now = 0;
int m[] = new int[10];

// create jFrame with radioButton and JButton


OnlineTest(String s) {
super(s);
label = new JLabel();
add(label);
bg = new ButtonGroup();
for (int i = 0; i < 5; i++) {
radioButton[i] = new JRadioButton();
add(radioButton[i]);
bg.add(radioButton[i]);
}
btnNext = new JButton("Next");
btnBookmark = new JButton("Bookmark");
btnNext.addActionListener(this);
btnBookmark.addActionListener(this);
add(btnNext);
add(btnBookmark);
set();
label.setBounds(30, 40, 450, 20);
//radioButton[0].setBounds(50, 80,
200, 20);
radioButton[0].setBounds(50, 80, 450, 20);
radioButton[1].setBounds(50, 110, 200, 20);
radioButton[2].setBounds(50, 140, 200, 20);
radioButton[3].setBounds(50, 170, 200, 20);
btnNext.setBounds(100, 240, 100, 30);
btnBookmark.setBounds(270, 240, 100, 30);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(null);
setLocation(250, 100);
setVisible(true);
setSize(600, 350);
}

// handle all actions based on event


public void actionPerformed(ActionEvent e) {
if (e.getSource() == btnNext) {
if (check())
count = count + 1;
current++;
set();
if (current == 9) {
btnNext.setEnabled(false);
btnBookmark.setText("Result");
}
}
if (e.getActionCommand().equals("Bookmark")) {
JButton bk = new JButton("Bookmark" + x);
bk.setBounds(480, 20 + 30 * x, 100, 30);
add(bk);
bk.addActionListener(this);
m[x] = current;
x++;
current++;
set();
if (current == 9)
btnBookmark.setText("Result"); setVisible(false);
setVisible(true);
}
for (int i = 0, y = 1; i < x; i++, y++) {
if (e.getActionCommand().equals("Bookmark" + y)) {
if (check())
count = count + 1;
now = current;
current = m[y];
set();
((JButton) e.getSource()).setEnabled(false);
current = now;
}
}

if (e.getActionCommand().equals("Result")) {
if (check())
count = count + 1;
current++;
JOptionPane.showMessageDialog(this, "correct
answers= " + count);
System.exit(0);
}
}

// SET Questions with options


void set() {
radioButton[4].setSelected(true);
if (current == 0) {
label.setText("Que1: Which of the following is not introduced with Java 8?");
radioButton[0].setText("Stream API");
radioButton[1].setText("Serialization");
radioButton[2].setText("Spliterator");
radioButton[3].setText("Lambda Expression");
}
if (current == 1) {
label.setText("Que2: Which feature of java 7 allows to not explicitly close IO
resource?");
radioButton[0].setText("try catch finally");
radioButton[1].setText("IOException");
radioButton[2].setText("AutoCloseable");
radioButton[3].setText("Streams");
}
if (current == 2) {
label.setText("Que3: SessionFactory is a thread-safe object.");
radioButton[0].setText("true");
radioButton[1].setText("false");
radioButton[2].setText("don't know");
radioButton[3].setText("false");
}
if (current == 3) {
label.setText("Que4: Which is the new method introduced in java 8 to iterate over a
collection?");
radioButton[0].setText("for (String i : StringList)");
radioButton[1].setText("foreach (String i : StringList)");
radioButton[2].setText("StringList.forEach()");
radioButton[3].setText("List.for()");
}
if (current == 4) {
label.setText("Que5: What is the substitute of Rhino javascript engine in Java 8?");
radioButton[0].setText(" Nashorn");
radioButton[1].setText("V8");
radioButton[2].setText("Inscript");
radioButton[3].setText("Narcissus");
}
if (current == 5) {
label.setText("Que6: How to read entire file in one line using java 8?");
radioButton[0].setText("Files.readAllLines()");
radioButton[1].setText("Files.read()");
radioButton[2].setText("Files.readFile()");
radioButton[3].setText("Files.lines()");
}
if (current == 6) {
label.setText("Que7: Which feature of java 7 allows to not explicitly close IO
resource?");
radioButton[0].setText("try catch finally");
radioButton[1].setText("IOException");
radioButton[2].setText("AutoCloseable");
radioButton[3].setText("Streams");
}
if (current == 7) {
label.setText("Que8: Which of the following is not a core interface of Hibernate?");
radioButton[0].setText("Configuration");
radioButton[1].setText("Criteria");
radioButton[2].setText("SessionManagement");
radioButton[3].setText("Session");
}
if (current == 8) {
label.setText("Que9: SessionFactory is a thread-safe object.");
radioButton[0].setText("true");
radioButton[1].setText("false");
radioButton[2].setText("don't know");
radioButton[3].setText("false");
}
if (current == 9) {
label.setText("Que10: Which of the following is not a state of object in Hibernate?");
radioButton[0].setText("Attached()");
radioButton[1].setText("Detached()");
radioButton[2].setText("Persistent()");
radioButton[3].setText("Transient()");
}
label.setBounds(30, 40, 450, 20);
for (int i = 0, j = 0; i <= 90; i += 30, j++)
radioButton[j].setBounds(50, 80 + i, 200, 20);
}

//declare right answers. boolean check() {


if (current == 0)
return (radioButton[1].isSelected());
if (current == 1)
return (radioButton[1].isSelected());
if (current == 2)
return (radioButton[0].isSelected());
if (current == 3)
return (radioButton[2].isSelected());
if (current == 4)
return (radioButton[0].isSelected());
if (current == 5)
return (radioButton[0].isSelected());
if (current == 6)
return (radioButton[1].isSelected());
if (current == 7)
return
(radioButton[2].isSelecte
d());
if (current == 8)
return (radioButton[0].isSelected());
if (current == 9)
return (radioButton[0].isSelected());
return false;
}

public static void main(String s[])


{
new OnlineTest("Online Test App");
}
}
CHAPTER 5
OUTPUT OF PROJECT
CHAPTER 6

CONCLUSION
As mentioned the project is on java platform which is coded in NetBeans IDE with help
HTML, CSS and JavaScript and running as web page by Apache Tomcat web server. But this project
is only for MCQ test but in the future we have plan to extended it to support subjective type of
questions with more functionality. We will add Administrative part on it which able the system to
delete test, add user, delete user and so on graphically vie the web.

To conclude, this is a simple Online MCQ Quiz which able a teacher to punch MCQ question
to system which will be store in SQL Server database and able the student to attempt any test for
once. The marks of student will be calculated according to questions they attempt and will be
displayed by the system to teachers and student.

CHAPTER 7

REFERENCES

 https://www.tutorialspoint.com/java

 http://www.javapoint.com/java-tutorial

 https://docs.oracle.com/javase/tutorial

INDEX
Sr.No.
Name of Chapter
Page No.
Chapter 1
Synopsis
9
Chapter 2
Abstraction
10
Chapter 3
Introduction
11
Chapter 4
About project
12
Chapter 5
Source code of project
15
Chapter 6
Output of project
27
Chapter 7
Conclusion
29
Chapter 8
References
30

Online quiz management using


java
Samarth Polytechnic ,Belhe
Page 30
CHAPTER 8
REFERENCES
1.Patil,PratekandKarlMoss,201
7,JavaDatabaseProgrammingw
ithJDBC,CoriclisGroupBooks
. 2.
Sierra,KathyandBertBates,200
3,HeadFirstJava,O‟Reilly
. 3.
Sarcar,Vaskaran,2018,JavaDes
ignPatterns,Apress.
4.
http://www.javaworld.com/jav
aworld/jw-01-1998/jw-01-
credentialreveiw.html
5. http://jdbc-tutorial.com
6.
https://www.tutorialspoint.com
/java
7.
http://www.javapoint.com/java
-tutorial
8.
https://docs.oracle.com/javase/
tutorial
Online quiz management using
java
Samarth Polytechnic ,Belhe
Page 30
CHAPTER 8
REFERENCES
1.Patil,PratekandKarlMoss,201
7,JavaDatabaseProgrammingw
ithJDBC,CoriclisGroupBooks
. 2.
Sierra,KathyandBertBates,200
3,HeadFirstJava,O‟Reilly
. 3.
Sarcar,Vaskaran,2018,JavaDes
ignPatterns,Apress.
4.
http://www.javaworld.com/jav
aworld/jw-01-1998/jw-01-
credentialreveiw.html
5. http://jdbc-tutorial.com
6.
https://www.tutorialspoint.com
/java
7.
http://www.javapoint.com/java
-tutorial
8.
https://docs.oracle.com/javase/
tutorial
thank you !!!

You might also like