Anda di halaman 1dari 30

Question Paper Generator

Project Report On

“Question Paper Generator”


Mini Project Report submitted for

Master of Computer Application (SEM I)


Of
University of Mumbai.

Submitted by

Mr. Akshay A. Rokade


Mr. Omkar S. Manchekar

Under the guidance of

Prof. Rasika Patil

Bharati Vidyapeeth’s

Institute of Management and Information Technology


Navi Mumbai.

BATCH: 2017-2020

BVIMIT Page 1
Question Paper Generator

Bharati Vidyapeeth’s

Institute of Management and Information Technology


Navi Mumbai.

CERTIFICATE

This is to certify that the project titled Question Paper Generatoris submitted by
Mr. Akshay A. Rokade during MCA SEM I of his course in partial fulfillment of Master of
Computer Application under the University of Mumbai, Mumbai through the Bharati
Vidyapeeth's Institute of Management and Information Technology,Navi Mumbai during
academic year 2016-17.

Dr. D.Y.Patil
Director

BVIMIT Page 2
Question Paper Generator

Bharati Vidyapeeth’s

Institute of Management and Information Technology


Navi Mumbai.

CERTIFICATE

This is to certify that the project titled Question Paper Generator is successfully done by
Mr. Akshay A. Rokade during MCA SEM I of his course in partial fulfillment of Master’s
of Computer Application under the University of Mumbai, Mumbai through the Bharati
Vidyapeeth's Institute of Management and Information Technology, Navi Mumbai carried
out by him/her under our guidance and supervision.

External Examiner Internal Examiner


(Signature & Date) (Signature & Date)

BVIMIT Page 3
Question Paper Generator

Declaration
I hereby solemnly declare that the project entitled “Question Paper Generator” is an original
work done by me under the guidance and supervision of Prof. Rasika Patil submitted to
University of Mumbai in partial fulfillment of the requirement for the award of Master of
Computer Application(SEM I) during academic year 2017-2018.

I further declare that, to the best of my knowledge, this report or any part of the report is not
submitted in this University or in any other University.

Mr. Akshay Ananda Rokade.

(Signature & Date)

BVIMIT Page 4
Question Paper Generator

Acknowledgment

I avail this opportunity to express my sincere and deep gratitude to many who are a factor in
helping me gain the knowledge and experience during the project and throughout the course.

I have great pleasure in presenting this project. The completion of this project is not merely
due to only my own efforts but also due to the guidance given by our professors.

I am thankful to our project guide Dr. Abhijit S. Desai / Prof. Rasika Patil for her support. I
also thank Dr. D.Y.Patil, Director BVIMITand respected faculty members for their kind
support and help throughout the entire course.

Finally I express my deep regards to all of those who stretch their helping hands in the
execution of my project.

BVIMIT Page 5
Question Paper Generator

Table of Contents

Abstract :

1. Literature Survey

2. Introduction
2.1 Introduction to Project (purpose , type of audience, Modules)
2.2 Domain Knowledge
2.3 Objective
2.4 Scope
3.Requirement Analysis
3.1 Requirement Gathering Techniques
4. System Study
4.1Existing system with Limitations
4.2 Proposed system with Advantages
5. System Analysis.
5.1 Gantt chart
5.2 Operating tools and technology
6. System Design
6.1 Use Case Diagram
6.2 DFD Diagram
6.3 Design Approaches
6.4 Database Design (with Normalization)
7. Coding
(Sample source code)
8. System Implementation
(Screen shots)
9. System Testing
9.1 Testing Methodologies
9.2 Test Cases
10. Limitation & Future Enhancement
11. References

BVIMIT Page 6
Question Paper Generator

Abstract :
In today’s age, education is the most important way of achieving success. When we discuss
education, it is imperative to mention tests and examination. Examinations prepare students in their
quest for knowledge. So, having a proper examination paper and format is quite necessary. Now the
traditional method of generating question paper has been manual. In this method certain officials
chalk out the question paper. But this method can be ineffective at times owing to bias, repetition
and security concerns. We have proposed an Automated process of Question Paper Generation
which is fast, streamlined, randomized and secure. Every task performed by this system is
automated so that storage space, bias and security is not a concern anymore. Furthermore, we have
proposed a new algorithm which ensures total randomization of questions and avoids repetitions.
The proposed system can be helpful to many educational institutes and NGO based institutes.

1. Literature Survey :
The outcome of coaching and education can be attained by performing evaluation to compute
student’s intellectual levels and therefore the written exam is a method for teachers to validate
student understanding and knowledge, as well as, to evaluate the degree to which students are able
to adjust a learning thesis in a given environment. Evaluation through written examination is a
conventional procedure but it is a universal test technique performed in almost of the educational
colleges present day. Therefore, the question must be catering in following with the subject contents
learned by students to attain learning outcomes. However, the technique of questions writing is very
demanding task for the teacher. The state is getting more challenging when teacher try to essential
learning that learners have achieved, and can reliably demonstrate at the end of a course or
program. Mapping of questions with the Course outcomes is one of the important challenges faced
while making Question paper. So Question paper validation is to be ensured to get desired standard
from outcome attainment perspective as well as learning levels perspective.

1. repetition of questions
2. Chapter wise allocation
3. Analysis of database
4. Formatting of paper
5. Paper pattern

2. Introduction :
In today’s world, time is a major concern. Any product that can effectively reduce time and power
consumption is accepted and appreciated. Thus we are presenting an Automated Question Paper
Generator System that can reduce time consumption by replacing the conventional method of
question paper generation system

A design of suitable automated system for generating question papers and managing related data
may prove vital in an Educational Institute. In this paper, we have proposed an integrated
automated system that stores questions related to a particular course and prints a question paper
based on its syllabus and curriculum.There are provisions to enter and edit data suitable to any
educational organization with complete freedom for specifying courses, semesters, syllabus and
pattern. This enables an educational institute to generate question ensuring security and non-
repetitiveness of question papers and is a boon for organizations with limited staff and resources.

BVIMIT Page 7
Question Paper Generator

Purpose :

 The objective of this particular project topic is to provide professor a facility


generate question papers rather than doing it manually.
 This way a professor can create question paper according to their
requirement .
 The software will empower the college with a powerful tool to generate
questions in a very short span of time thus saving a lot of their precious time.
 Students can use this software for reference.

Type of audience :

This project is use full for students and subject teachers….Teachers can put questions on the
site and they simply create Question paper.

Modules :

1. Login
2. Registration
3. OTP generation
4. Paper generation

2.2 Domain Knowledge :

Many Automatic Question Generation systems have been evolved for different domain like reading
comprehension, vocabulary assessment etc. There are some approaches that have been developed
for generating factual questions from reading material. In , HidenobuKunichika and Tomoki Katyama
employs highly advanced NLP technology based system. They have developed AQG system to
generate factual questions from the contents of story. The system employed the five methods for
question generation: to ask about the content of one sentence, to use synonyms or antonyms, to
use modifiers appeared in plural sentences, to ask the contents represented by plural sentences by
using a relative pronoun, and to ask relationship of time and space

BVIMIT Page 8
Question Paper Generator

2.3 Objective :

 To enable professor to get required criteria thus giving them flexibility to


create paper.
 To help professor to create question paper as per their reuirements ,they can
specify the stream,subject,units in per question,chapter in units,marks for
each question, etc.
 To allow user to choose desired option from many available options in various
categories.
 The login module is added to maintain security.
 The main objective of the proposed system is the automation of all the data
storage.
 The system will help the admin to store all the data and also modify the data.
 It also helps the admin to retrieve the data stored in the database whenever
required

2.4 Scope :

 This software can be widely used in educational institutes etc.


It is a web based application so user location doesn’t matter. Admin can
access this software anywhere anytime.
 This system also evaluate the candidate’s capability and
skills efficiently. It is fully automated system which fast results.
 In this system there is no need of transporting paper through police/security
vans to all colleges.
 This system provide unbiased result. The usage of this system
reduces human effort and save time and resources to an
extent.
 All the details can be viewed at a glance so that the admin does not have to refer to
Different files to check availability.
 Admin will be able to access the complete information & details of syllabus.
 Admin will be able to add & update the complete details in software (The
options available in various categories).

BVIMIT Page 9
Question Paper Generator

3. Requirement Analysis :

3.1 Requirement Gathering :

For requirement gathering for the proposed system “Questing paper generator” we have used
the following requirement gathering technique: -

 Asking: - Asking strategy has been most frequently used while developing the system.
 Deriving information from existing system: - we have gone through the
communication technologies available in the present day. Also we have gone through
the number of site to collect the information regarding the proposed system.

4. System Study :
4.1 Existing system with Limitations :

The existing system for Question Paper Generation requires human staff to chalk out questions that
appear in the question paper. These teachers or professors select the questions according to the
syllabus and pattern as prescribed by the curriculum. The question paper then may be referred to a
higher authority who has the final say in these matters.

Limitation :

As most human working processes, this system suffers due to bias. There might be some questions
which are repeated in many question papers as the professor has a personal inclination towards
them. So there is no guarantee of pure randomly generated question paper. Other problems that
may plague this system are non-availability of staff and resources, natural calamities and accidents.
Also, the security of the system can be easily compromised if leverage over the person responsible
for generating question papers is obtained. Other limitations include: -

a) Lack of storage space


b) Prone to damage
c) Inefficient document transportation
d) Supply costs
e) Poor environmental credentials
f) Limited collaboration
g) Editing problems

BVIMIT Page 10
Question Paper Generator

4.2 Proposed system with Advantages:

 The aim of proposed system is to develop a system of improved facilities. The


proposed system can overcome all the limitations of the existing system. The
system provides proper security and reduces the manual work. The existing
system has several disadvantages and many more difficulties to work well.
The proposed system tries to eliminate or reduce these difficulties up to some
extent. The proposed system will be user friendly and Admin can easily do
their jobs without time lagging.
 This project intends to introduce more user friendliness in the various
activities such as record updating, maintenance.
 Record maintenance and updating can also be accomplished by using the
identification of the user with all the details being automatically generated.
These details are also being promptly automatically updated in the master file
thus keeping the record absolutely up-to-date.
 The entire information is maintained in the database or Files and whoever
wants to retrieve can’t retrieve; only authorized user can retrieve the
necessary information which can easily be accessible from the file

 Advantages of the proposed system are:

The system is very simple in design and to implement. The system


requires very low system resources and the system will work in almost all
configurations. It has got following features:
 Minimize manual data entry.
 Minimum time needed for the various processing.
 Greater efficiency.
 Modifications can be easily made.
 It is very fast comparatively to the Manual System to store, retrieve and
modify the data.
 Accurate information is available.
 Updated data is available.
 Security.

BVIMIT Page 11
Question Paper Generator

5. System Analysis :

5.1 Gantt chart :

5.2 Operating tools and technology :

Hardware Required
Processor : Pentium p4
RAM : 128MB
Hard Disc : 100GB

Software Required
Operating system : Windows 10.
Developing Tool : my sql,xamp server,

Technology :HTMl & php

BVIMIT Page 12
Question Paper Generator

6. System Design :
6.1 Use case diagram:

6.2 DFD :

Level 0 :

0.0
7. Request Request
Questing paper
Profesor ADMIN
8. generation

9. Response Response

BVIMIT Page 13
Question Paper Generator

Level 1

Request for homepage Check for homepage


Professor 1.0 Home_db

Home

Request for login Check for login

2.0 User_db
login

Request for regisration Check for registration


3.0

registration

Request for adding questios Check question

4.0 home_db

Place question

Request for generating question paper Check question format

5.0 home_db

Generating
paper

BVIMIT Page 14
Question Paper Generator

6.3 Design Approaches :

When to use the waterfall model:

 This model is used only when the requirements are very well known, clear and fixed.
 Product definition is stable.
 Technology is understood and easy to generate paper.
 There are no ambiguous requirements
 Ample resources with required expertise are available freely
 The project is short.
professor and customer interaction is involved during the development of the product. Once
the product is ready then only it can be delivered to the end users. Once the product is
developed and if any failure occurs then the cost of fixing such issues are very high, because
we need to update everywhere from document till the logic.

BVIMIT Page 15
Question Paper Generator

6.4 Database Design (with Normalization) :

Sr no. Column name Datatype Constraints

1 id Int(255) Primary Key,

AUTO_INCREMENT
2 email Varchar(255) Not null

3 otp Varchar(10) Not null

4 password Varchar(25) Not null

7. Coding :
(Sample source code)

1. Index.php :-
<!DOCTYPE html>
<html lang="en">
<head>
<title>QuestionPaperGenerator</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet"
href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
</head>
<body>

<nav class="navbar navbar-inverse">


<div class="container-fluid">
<div class="navbar-header">
<a class="navbar-brand" href="#">Question Paper Generator</a>
</div>
<ul class="nav navbar-nav">
<li class="active"><a href="#" data-toggle="modal" data-target="#login">Login</a></li>
<li><a href="#contact">ContactUs</a></li>
<li><a href="#About">AboutUs</a></li>

BVIMIT Page 16
Question Paper Generator

</ul>
</div>
</nav>
<div class="container">

<div class="modal fade" id="login" role="dialog">


<div class="modal-dialog modal-sm">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4 class="modal-title">Teacher Login</h4>
</div>
<!-- Register -->

<div class="container" id="login">

<form action="login.php" method="post">

<div class="container row col-md-3">

<h1>Login</h1>
<div class="form-group">
<label for="inputEmail">Email</label>
<input class="form-control" type="email" name="inputEmail" required placeholder="Email
address" />
</div>
<div class="form-group">
<label for="password">Otp/Password</label>
<input class="form-control" type="password" name="password" required
placeholder="Password" />
</div>
<div class="form-group">
<button type="submit" class="btnbtn-default" name="submit">Login</button>
</div>
<div class="form-group">
<p><a href="#" id="myBtn11">Forgot Password?</a></p>
</div>
</div>
</form>
</div></div></div>
</div>
<div class="modal fade" id="myModal1" role="dialog">
<div class="modal-dialog">

<!-- Modal content-->


<div class="modal-content">
<div class="modal-header" style="padding:35px 50px;">
<button type="button" class="close" data-dismiss="modal">&times;</button>
<h4><span class="glyphiconglyphicon-lock"></span> Forgot Password</h4>
</div>

BVIMIT Page 17
Question Paper Generator

<div class="modal-body" style="padding:40px 50px;">


<form role="form" method="post" action="data_fpass.php">
<div class="form-group">
<label for="usrname"><span class="glyphiconglyphicon-user"></span> Username</label>
<input type="email" class="form-control" id="usrname" name="reqemail"
placeholder="Enter email" required>
</div>
<button type="submit" class="btnbtn-success btn-block"><span class="glyphiconglyphicon-
off"></span> Request Password</button>
</form>
</div>
<div class="modal-footer">
<button type="submit" class="btnbtn-danger btn-default pull-left" data-
dismiss="modal"><span class="glyphiconglyphicon-remove"></span> Cancel</button>
</div>
</div>
</div>
</div>
<script>
$(document).ready(function(){
$("#myBtn11").click(function(){
$("#myModal1").modal();
});
});
</script>

<div class="jumbotron">
<div class="container text-center">
<h1>Question Paper Generator</h1>
<p>Generate Question Paper Automatically...</p>
</div><!-- End container -->
</div><!-- End jumbotron-->

<!-- features -->


<div class="container">
<section>
<div class="page-header" id="features">
<h2>Features.<small> Some of the coolest Features of this
app.</small></h2>
</div><!-- End Page Header -->

<div class="row">
<div class="col-sm-8">
<h3>Generated Question Papers will be in encrypted
format.</h3>
<p>After generating the question paper the admin can
encrypt it using his/her public key.Hence no one can read and misuse it.Before the exam
admin will decrypt it and can take print of it.</p>
</div>

BVIMIT Page 18
Question Paper Generator

</div><!-- End row -->


<div class="row">
<div class="col-sm-8">
<h3>User Can view privious year question
papers.</h3>
<p>Privious year question papers are stored so that
users can refer them as question bank for upcoming exams.</p>
</div>
<div class="row">
<div class="col-sm-8">
<h3>Non IT people can also use this app.</h3>
<p>Privious year question papers are stored so that
users can refer them as question bank for upcoming exams.</p>
</div>
</div>
</section>
</div><!-- End Container -->
<!-- Gallery -->
<div class="container1">
<section>

<div class="carousel slide" id="screenshot-carousel" data-


ride="carousel">
<ol class="carousel-indicators">
<li data-target="#screenshot-carousel" data-slide-to="0"
class="active"></li>
<li data-target="#screenshot-carousel" data-slide-
to="1"></li>
<li data-target="#screenshot-carousel" data-slide-
to="2"></li>
<li data-target="#screenshot-carousel" data-slide-
to="3"></li>
</ol>
<div class="carousel-inner">
<div class="item active">
<imgsrc="imf\1.jpg" alt="Text of the image">
<div class="carousel-caption">
<h3>This is heading</h3>
<p>This is the caption</p>
</div>
</div>
<div class="item">
<imgsrc="imf\2.jpg" alt="Text of the image">
<div class="carousel-caption">
<h3>This is heading</h3>
<p>This is the caption</p>
</div>
</div>
<div class="item">

BVIMIT Page 19
Question Paper Generator

<imgsrc="imf\3.jpg" alt="Text of the image">


<div class="carousel-caption">
<h3>This is heading</h3>
<p>This is the caption</p>
</div>
</div>
<div class="item">
<imgsrc="imf\4.jpg" alt="Text of the image">
<div class="carousel-caption">
<h3>This is heading</h3>
<p>This is the caption</p>
</div>
</div>

</div><!-- End Carousel inner -->


<a href="#screenshot-carousel" class="left carousel-control"
data-slide="prev">
<span class="glyphiconglyphicon-chevron-
left"></span>
</a>
<a href="#screenshot-carousel" class="right carousel-control"
data-slide="next">
<span class="glyphiconglyphicon-chevron-
right"></span>
</a>
</div><!-- End Carousel -->

</section>
</div>
</div>
</div>

</body>
</html>

2.Login.php :

<?php
include 'dbcon.php';
//loginphp
//email college code
$email=$_POST['inputEmail'];
$otp=$_POST['password'];
$con = connect();
//login fetching code
$result=mysqli_query($con,"select * from registration where email='$email'");
$num_rows=mysqli_num_rows($result);
if($num_rows>0)

BVIMIT Page 20
Question Paper Generator

{
WHILE ($rows = mysqli_fetch_array($result))
{
if($rows[3]=="")
{
if($otp==$rows[2])
{
header("Location: changepasswd.php");
}
else
{
echo "<script type='text/javascript'>
alert('Please enter the correct OTP.');
window.open('index.php','_self');
</script>";
}
}
else if($email=="kolambkarashutosh@gmail.com" && $otp=="14101996")
{
echo "<script type='text/javascript'>
alert('Welcome Admin.');
window.open('admin.php','_self');
</script>";
}

else if($otp==$rows[3])
{
echo "<script type='text/javascript'>
alert('connection Successfull');
</script>";
session_start();
$_SESSION['user']=$email;
$_SESSION['coll']=$rows[1];
$link =
"<script>window.open('teacherprofile.php','_self')</script>";
echo $link;
}
else
{
echo "<script type='text/javascript'>
alert('please enter correct password');
window.open('index.php','_self');
</script>";

BVIMIT Page 21
Question Paper Generator

}
}
}
else
{
echo "<script type='text/javascript'>
alert('college code dose not exists.');
window.open('index.php','_self');
</script>";
}
mysqli_close($con);
?>

3.Registration.php :

<?php
include 'dbcon.php';
$con = connect();
function getotp(){
$pass="";
$alphabet =
"abcdefghijklmnopqrstuwxyzABCDEFGHIJKLMNOPQRSTUWXYZ0123456
789";
for ($i = 0; $i< 8; $i++)
{
$n = rand(0,strlen($alphabet)-1);
$pass = $pass . $alphabet[$n];
}
return $pass;
}
$otp=getotp();
function sendMail($email,$otp){
$to = $email; // this is your Email address
$from = "kolambkarashutosh@gmail.com"; // this is the sender's Email
address
$subject = "Form Signup";
$message = "Your Email address :".$email."\nYour one time password :
".$otp."\n \n \n Thank you for Registering under Question Paper Generation.";
$headers = "From:" . $from;
$headers2 = "From:" . $to;
mail($to,$subject,$message,$headers);
}
if(isset($_POST['submit']))

BVIMIT Page 22
Question Paper Generator

{ // Fetching variables of the form which travels in URL


$email=$_POST['inputEmail'];
if($email !='')
{
$sql2="SELECT email FROM registration where email='".$email."'";
$abc=mysqli_query($con,$sql2);
$count=mysqli_num_rows($abc);
//var_dump($abc);
if($count>0)
{
echo "<script type='text/javascript'>alert('This Email $email already exists.
Please use another Emailid.');
window.location.href='admin.php';
</script>";
}
else
{
$sql1="INSERT INTO registration(email, otp) VALUES ('$email', '$otp')";
//var_dump($sql1);
mysqli_query($con,$sql1);
echo "<script type='text/javascript'>alert('Teachers EmailID: $email
registered');
window.location.href='admin.php';
</script>";
}
}
sendMail($email,$otp);
mysqli_close($con); // Closing Connection with Server
}
?>

BVIMIT Page 23
Question Paper Generator

8. System Implementation :
(Screen shots)
1. Index page :-

2. Loginpage :-

BVIMIT Page 24
Question Paper Generator

3. Welcome page :

4. Editing page :

BVIMIT Page 25
Question Paper Generator

5. Generated paper :

6. Database :

BVIMIT Page 26
Question Paper Generator

9. System Testing
9.1 Testing Methodologies :

 To ensure that during operation the system will perform as per


specification.
 TO make sure that system meets the user requirements during
operation
 To make sure that during the operation, incorrect input, processing and
output will be detected
 To see that when correct inputs are fed to the system the outputs are
correct
 To verify that the controls incorporated in the same system as intended
 Testing is a process of executing a program with the intent of finding an
error
 A good test case is one that has a high probability of finding an as yet
undiscovered error

The software developed has been tested successfully using the following
testing strategies and any errors that are encountered are corrected and again the
part of the program or the procedure or function is put to testing until all the errors
are removed. A successful test is one that uncovers an as yet undiscovered error.
Note that the result of the system testing will prove that the system is working
correctly. It will give confidence to system designer, users of the system, prevent
frustration during implementation process etc.,

Unit Testing:

Unit testing is essentially for the verification of the code produced during
the coding phase and the goal is test the internal logic of the module/program.
In the Generic code project, the unit testing is done during coding phase of data
entry forms whether the functions are working properly or not. In this phase all
the drivers are tested they are rightly connected or not.

BVIMIT Page 27
Question Paper Generator

9.2 Test Cases :

Test Test Title Test Test Steps Expected Actual Result


Case Summary
ID

1. Website Display Open the program in Website Website is Pass


website Google Chrome should be seen
seen

2. Login Login to 1. Select textbox. User login Welcome Pass


page should be page should
2. Enter your Id &
successful. be displayed.
password

3. Registration Display the 1. open the program in Registration registration Pass


registration Google chrome page should is seen
page be seen

4. Uptating Display the 1. Add all the Page should Page is Pass
questions editing page questions and be submitted submitted
details. successfully. successfully.
2. Click on submit
button.

5. Generating Display the 1.Fill all the details. Paper Paper Pass
paper paper generate generating is
2. click on print button.
should be done
done successfully.
successfully.

BVIMIT Page 28
Question Paper Generator

6. Display Display the 1.click on show paper. Paper should paper is seen Pass
question paper. be seen.
paper

10. Future Enhancement :


We can implemented this Question Paper Generator System again. it is developed and built
up using Java programming language. The fully functional system has reserves of courses,
questions and patterns of question papers. It then executes the algorithm on the stocked
question set and generates the question paper in PDF format

11. References :

1. www.stackoverflow.com
2. www.codeacademi.com
3. www.tutorialspoint.com
4. www.codeschool.com
5. www.W3Schools.com

BVIMIT Page 29
Question Paper Generator

BVIMIT Page 30