Java Microproject Gghhkk[1]
Java Microproject Gghhkk[1]
CHAPTER 1
Introduction
Theaimofthisprojectistocomputerizedtheexistingmanualsystemand help
the examiners to save their valuable time and important data.Apart
fromthis, data which are exist inthis 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.
Functionalitiesoftheprojectwillbeasfollowing:
• AbletheexaminerstopunchtheMCQ
questions online;
• Abletheuserstosolvethequestionsonline;
• Examinerscanmanagetheinformation
regarding exam;
• Correctanswerswillbeevaluatedbysystem
(First it should be determining byexaminer);
• Userscanseetheirresultaftersubmittingthe
test.
STC/SPRT/CSE/2024-25 Page1
Quiz Management System
To design and implement this project we plan that the project support to
differenttypesofusersapartfrom itsadministrativepart.Whenproject is run
for the first time it allowed the user to select as who he/she wants to login
inthe system. Project support login as teacher andlogin as student. If a
user who is student, try tologin as teacher system will not allow him and
vice versa. User who add as teacher in system will be able to punch test
and questions to system and also will beable to observe the result of the
student which attempt tests. User who login to system as student will be
able to select a particular test and attempt questions depend on this
test.After attempting the test and submitting that user will receive a
messagethat youhaveattempt thetestsuccessfullyandiftheuser triesto
attempt the same test, system will not allow him/her.Also a user which
login tosystem as student will be able to observe the result of test he/she
attempt.
Toconcludeintroduction,wehaveusethesemodulestofollowthe objectives
of our project and each of these modules have logical connections to
other modules which they are depend.
STC/SPRT/CSE/2024-25 Page2
Quiz Management System
ExistingSystems
There are various MCQ quiz applications exist in the internet with
different criteria. Each of the existing applications has their own
goodnessandproblems.InthisMCQquizapplicationwhichisdesigned
andimplementedinJSPbasedwetrytoovercomethe existingproblems with
following features:
Removesource confuseissue;
Bettermanagement;
Connectiontodatabaseforbetter storingof data;
Better frontend management;
Better backendmanagement;
Trytodecreaseerrorissuerduringruntime.
STC/SPRT/CSE/2024-25 Page3
Quiz Management System
CHAPTER 2
Project Objectives
- TocreateanappropriateplatformforbestmanagingofMCQtest;
- ToovercomethetimeconsumingissuesandtakingMCQtests;- To
release the marks of the test taker as soon as possible;- To manage
the information of different tests.
Methodology
- Initiation(Requirement Specification);
- Planninganddesign;
- Execution (constructionand coding);
- Validation(Testing);
- Closure(InstallationandMaintenance).
STC/SPRT/CSE/2024-25 Page4
Quiz Management System
Figure1:SDLCDiagramofproject
ProjectRequirementsSpecification
- Systemmuststoreinformationaboutusers(StudentandTeachers),tests,
questions and result;
- Systemshouldabletheteachertopunch tests;
- Eachteachershouldbeabletopunchmanytests;
- Systemshoulddonotallow unauthorizedusertoenterthesystem;
- Eachstudentshouldbeabletoattemptmany tests;
- SystemshouldkeepanddisplaytheresultsofStudents;
- Systemshouldsupporttestwhichoneormorequestiondependentonit;
- Systemshouldallowtheadministratortodeleteand updatetestsandquestions
dependent on it.
STC/SPRT/CSE/2024-25 Page5
Quiz Management System
CHAPTER 3
Project Design
For designing and implementing of Online MCQ Quiz application we used HTML,
CSS, JavaScript and SQL Server with the context of Java and JSP. Following pages
havebeendesignedusingHTML,CSSandJavaScripttohandlethedefinedobjective of this
project.
1. Index:
This the first page which user observe after running the project. This page will able
theusertoselectthetypeof login.Selecting“Login asTeacher”willdirecttheuserto
Teacher Login Page and selecting “Login as Student” will direct the user to Student
Login Page.
2. Login Pages:
STC/SPRT/CSE/2024-25 Page6
Quiz Management System
3. Home Pages:
After users successfully login to system. Each particular user will be directed to their
particular Home Page which are “Teacher Home” and “Student Home”. Teacher
Home will able the teachers to observe information about the Online MCQ Quiz and
punch a test by clicking on “Punch Test” and observe student results by clicking on
“StudentMarks”.StudentHomewillablethestudenttoobservetheinformation about the
Online MCQ Quiz, attempt a test by clicking on “Attempt Test” and observe his/her
result by click on “Marks”.
STC/SPRT/CSE/2024-25 Page7
Quiz Management System
STC/SPRT/CSE/2024-25 Page8
Quiz Management System
4. PunchTest
ClickingonpunchtestinTeacherHomewilldirecttheteachertoapagewhichallow the
teacher to write the name of test he/she wants to punch. When teacher type the
nameoftestandclickon“Submit toQuestions”,systemwillbedirectedtoInsert Question
page.
Figure6:EnteringNameofTest
By clicking on “Submit to Enter Question” button, teacher will be able to insert
question for the particular test which he/she enter its name.As the teacher enter the
testname,anautomaticIDwillbegeneratedfor this testinTestTableofdatabaseand
allasessionwillbecreated, allquestionswhichenteredwillbestorefortheparticular test
according to Test ID and session which has been created. Teacher will receive of
“Question Successfully Sored” each time when he/she write the questions and its
answer and click on “Submit Question” button.
STC/SPRT/CSE/2024-25 Page9
Quiz Management System
5. Student Marks:Clickingon“StudentMarks”willdirectthe
teacher to page which display the result of all students which
attempt the test.
Figure8:ResultofAllStudentWhichAttempttheTests
Figure9:SelectTestPageofStudent
When student select the test and click on “Go to SelectedTest” the page will
be directed to questions of selected test. Student can attempt all questions of
thattest andafterclickingon“SubmitTest”,willreceiveamessagethat“You
STC/SPRT/CSE/2024-25 Page10
Quiz Management System
HaveSuccessfullyAttempt”thetest.Iftheparticularstudenthas already
attemptthetestbefore,he/shewillreceivethemessage“Sorry,YouHaveAlready Attempted
this Test”.
Figure10:AttemptingTestPage
Figure11:ResultoffAllTestforparticularstudentwhichhavataken
STC/SPRT/CSE/2024-25 Page11
Quiz Management System
CHAPTER 4
Code
import java.util.*;
class Student {
String name;
String rollNumber;
int score;
STC/SPRT/CSE/2024-25 Page12
Quiz Management System
{"What is the capital of France?", "A) London", "B) Paris", "C) Rome", "D)
Berlin", "B"},
{"Which is the smallest prime number?", "A) 1", "B) 2", "C) 3", "D) 0", "B"},
{"Who developed Java?", "A) James Gosling", "B) Dennis Ritchie", "C) Bjarne
Stroustrup", "D) Guido van Rossum", "A"},
{"What does HTML stand for?", "A) Hyper Text Markup Language", "B)
HighText Machine Language", "C) Hyperloop Machine Language", "D) None",
"A"},
{"Which planet is known as the Red Planet?", "A) Earth", "B) Mars", "C)
Jupiter", "D) Venus", "B"},
{"Which is not an OOP concept?", "A) Inheritance", "B) Encapsulation", "C)
Compilation", "D) Polymorphism", "C"},
{"What is the full form of CPU?", "A) Central Process Unit", "B) Central
Processing Unit", "C) Computer Personal Unit", "D) None", "B"},
{"Which of these is not a programming language?", "A) Java", "B) Python",
"C) HTML", "D) C++", "C"},
{"Which keyword is used to define a class in Java?", "A) define", "B)
function", "C) class", "D) create", "C"},
{"Which operator is used to compare two values in Java?", "A) =", "B) ==",
"C) !=", "D) <>", "B"}
};
STC/SPRT/CSE/2024-25 Page13
Quiz Management System
// Save result
Student student = new Student(name, rollNumber, score);
results.add(student);
// Display result
System.out.println("\nQuiz Completed!");
System.out.println(student);
STC/SPRT/CSE/2024-25 Page14
Quiz Management System
if (answer.equals(questions[i][5])) {
score++;
}
System.out.println();
}
return score;
}
}
STC/SPRT/CSE/2024-25 Page15
Quiz Management System
CHAPTER 5
Output
STC/SPRT/CSE/2024-25 Page16
Quiz Management System
STC/SPRT/CSE/2024-25 Page17
Quiz Management System
A) Java
B) Python
C) HTML
D) C++
Your answer: C
Quiz Completed!
Name: John Doe, Roll Number: 12345, Score: 10/10
STC/SPRT/CSE/2024-25 Page18
Quiz Management System
CHAPTER 6
Future Scope and Conclusion
Toconclude,thisisasimpleOnlineMCQQuizwhichableateacherto punch
MCQ question to system which will be store in SQLServer 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.
STC/SPRT/CSE/2024-25 Page19
Quiz Management System
CHAPTER 7
References
1. http://www.javaworld.com/javaworld/jw-01-1998/jw-
01credentialreveiw.html
2. http://jdbc-tutorial.com
3. https://www.tutorialspoint.com/java
4. http://www.javapoint.com/java-tutorial
5. https://docs.oracle.com/javase/tutorial
STC/SPRT/CSE/2024-25 Page20