0% found this document useful (0 votes)
8 views

Java Microproject Gghhkk[1]

The MCQ Quiz Application project aims to automate the manual examination process, allowing examiners to efficiently manage tests and students to take quizzes online. The system supports user roles for teachers and students, enabling functionalities like test creation, question management, and result evaluation. The project is designed using HTML, CSS, JavaScript, and SQL Server, following a waterfall model for development.

Uploaded by

sg003ff
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)
8 views

Java Microproject Gghhkk[1]

The MCQ Quiz Application project aims to automate the manual examination process, allowing examiners to efficiently manage tests and students to take quizzes online. The system supports user roles for teachers and students, enabling functionalities like test creation, question management, and result evaluation. The project is designed using HTML, CSS, JavaScript, and SQL Server, following a waterfall model for development.

Uploaded by

sg003ff
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/ 20

Quiz Management System

CHAPTER 1
Introduction

The ‘MCQ Quiz Application’project will be developed to overcome the


time consuming problem of manual system.Apart from that in current
system,checkingtheanswersheetsafter takingtest,wastetheexaminers time,
so this application will check the correct answer and save the examiner
time and carry the examination in an effective manner. The
userswhichareusethissystemdon’tneedtohighcomputingknowledge and
also system will inform them while entering invalid data.

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.

The objective of this project is to manage the details of students,


examinations, marks, courses and papers in a good manner. The
performance ofthe application will befullycontrol by administrator and
administratorcanguarantyanyonetoaccess.Theproject willreducethe
manual process in managing examinations and all issues regarding that.

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.

- Index:Which allowusersto selecttheirtypeofloginto system;


- TeacherLogin:Abletheteacherstologintosystemwithavalid user
name and password. If a teacher is successfully login to system,
he/she will have access to following pages:oTeacher Home:
Which have information about
OnlineMCQQuizandissuessupportbythissystem for
the teachers;
o PunchTest:Whichabletheteachertopunchatest and
after entering the test name and clicking on ‘Submit
to Enter Questions’, teacher will be able to add
questions to the particular test. oStudents
Marks:Whichabletheteachertoobservetheresultof all
student who have attempt the tests;

STC/SPRT/CSE/2024-25 Page2
Quiz Management System

- Student Login:Able the students to login to system with a valid


usernameandpassword.Ifstudentissuccessfullylogintosystem,
he/she will have access to following pages: o Student Home:
Which have information about Online MCQ
Quiz and issues support by this system for students;o Attempt
Test: Which able the student to select a particular test for
attempting from the existing test in system from drop down list
andafterclickingon‘gotoselectedtest’,thequestionsofselected test
will be displayed for the student to attempt.Than student will be
able to attempt the questions and after submitting, student will
receive a message that test is successfully attempt. o Marks:
Which able the particular students to have access to result of the
test which he/she attempt.

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

The main objective of the project MCQ QuizApplication is to manage the


details of students, examinations, marks, courses and papers. The project
is totally at administrative end and thus only the administrator is
grantedtheaccess.Thepurposeof theproject istobuildanapplicationto
reduce the manual work for managing the MCQ quiz and we will follow
to achieve these objectives in this project.

- TocreateanappropriateplatformforbestmanagingofMCQtest;
- ToovercomethetimeconsumingissuesandtakingMCQtests;- To
release the marks of the test taker as soon as possible;- To manage
the information of different tests.

Methodology

The methodology of developing of project will be a step-by-step


sequence to design, develop and deliver the application. In software
engineeringthismethodologycalled‘waterfallmodel’whichoneportion of
work follows after another in a linear sequence. Following steps will be
followed in this methodology:

- Initiation(Requirement Specification);
- Planninganddesign;
- Execution (constructionand coding);
- Validation(Testing);
- Closure(InstallationandMaintenance).

STC/SPRT/CSE/2024-25 Page4
Quiz Management System

Figure1:SDLCDiagramofproject

ProjectRequirementsSpecification

By project requirements specifications we can analyze the tasks which going to be


donebythesystem.Thefunctionandperformanceofallocated tosoftwareaspartof
systemengineeringarerefinedbyestablishingacompleteinformationdescription.A
detailed functional and behavioral description of the project and concentrating on
requirements and constraints of that will provide and good product. The proposed
system should follow these requirements:

- 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.

Figure2:Project Index Page

2. Login Pages:

Loginpageexistforboth teachersandstudent.After userselectthetypeofloginfrom figure


2, the login page of particular user will be displayed. Users enter their user

STC/SPRT/CSE/2024-25 Page6
Quiz Management System

nameandpasswordandafterclickingon loginfirstsystemwill check isitavaliduser


ornot.Ifuseris authenticatedbythesystem,willbe directedtoparticularHomePage and if
not authenticated by the system the message “Either user name or password is
incorrect” will be displayed to user.

Figure3:Student &TeacherLogin Pages

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

Figure4: Teacher Home Page

: Figure5:Student Home Page

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.

Figure7:Insert Question Page

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

5. Attempt Test: Clicking on “Attempt Test” on Student Home will


directthestudenttothepagewhichablethestudenttoselectthetest he/she
wish to attempt.After student select the test from drop down list and
click on “Go to Selected Test”, the system will be directed to the
questions of particular test.

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

6. Marks: Clicking on “Marks” in Student Home will direct the


systemtothepagewhichwillshowtheresultofparticularstudent for all
test he/she attempt.

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;

Student(String name, String rollNumber, int score) {


this.name = name;
this.rollNumber = rollNumber;
this.score = score;
}

public String toString() {


return "Name: " + name + ", Roll Number: " + rollNumber + ", Score: " + score
+ "/10";
}
}

public class QuizManagementSystem {


static Scanner scanner = new Scanner(System.in);
static List<Student> results = new ArrayList<>();

static String[][] questions = {

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"}
};

public static void main(String[] args) {


System.out.println("------ Quiz Management System ------");

// Accept student credentials


System.out.print("Enter your name: ");
String name = scanner.nextLine();

STC/SPRT/CSE/2024-25 Page13
Quiz Management System

System.out.print("Enter your roll number: ");


String rollNumber = scanner.nextLine();

int score = startQuiz();

// Save result
Student student = new Student(name, rollNumber, score);
results.add(student);

// Display result
System.out.println("\nQuiz Completed!");
System.out.println(student);

// Optional: Display all saved results


System.out.println("\n----- All Results -----");
for (Student s : results) {
System.out.println(s);
}
}

public static int startQuiz() {


int score = 0;
System.out.println("\nAnswer the following questions (A/B/C/D):\n");

for (int i = 0; i < questions.length; i++) {


System.out.println((i + 1) + ". " + questions[i][0]);

STC/SPRT/CSE/2024-25 Page14
Quiz Management System

for (int j = 1; j <= 4; j++) {


System.out.println(questions[i][j]);
}
System.out.print("Your answer: ");
String answer = scanner.nextLine().trim().toUpperCase();

if (answer.equals(questions[i][5])) {
score++;
}
System.out.println();
}

return score;
}
}

STC/SPRT/CSE/2024-25 Page15
Quiz Management System

CHAPTER 5
Output

------ Quiz Management System ------

Enter your name: John Doe


Enter your roll number: 12345

Answer the following questions (A/B/C/D):

1. What is the capital of France?


A) London
B) Paris
C) Rome
D) Berlin
Your answer: B

2. Which is the smallest prime number?


A) 1
B) 2
C) 3
D) 0
Your answer: B

3. Who developed Java?


A) James Gosling
B) Dennis Ritchie
C) Bjarne Stroustrup

STC/SPRT/CSE/2024-25 Page16
Quiz Management System

D) Guido van Rossum


Your answer: A

4. What does HTML stand for?


A) Hyper Text Markup Language
B) HighText Machine Language
C) Hyperloop Machine Language
D) None
Your answer: A

5. Which planet is known as the Red Planet?


A) Earth
B) Mars
C) Jupiter
D) Venus
Your answer: B

6. Which is not an OOP concept?


A) Inheritance
B) Encapsulation
C) Compilation
D) Polymorphism
Your answer: C

7. What is the full form of CPU?


A) Central Process Unit
B) Central Processing Unit
C) Computer Personal Unit
D) None
Your answer: B

8. Which of these is not a programming language?

STC/SPRT/CSE/2024-25 Page17
Quiz Management System

A) Java
B) Python
C) HTML
D) C++
Your answer: C

9. Which keyword is used to define a class in Java?


A) define
B) function
C) class
D) create
Your answer: C

10. Which operator is used to compare two values in Java?


A) =
B) ==
C) !=
D) <>
Your answer: B

Quiz Completed!
Name: John Doe, Roll Number: 12345, Score: 10/10

----- All Results -----


Name: John Doe, Roll Number: 12345, Score: 10/10

STC/SPRT/CSE/2024-25 Page18
Quiz Management System

CHAPTER 6
Future Scope and Conclusion

Asmentionedtheprojectisonjavaplatform whichiscodedinNet Beans 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 addAdministrative part on it which able the
system to delete test, add user, delete user and so on graphically vie the
web.

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

You might also like