KEMBAR78
Final Report Project | PDF | Php | System
0% found this document useful (0 votes)
114 views60 pages

Final Report Project

Uploaded by

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

Final Report Project

Uploaded by

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

PROJECT REPORT

ON

ONLINE EXAMINATION PORTAL


BY
Hritik Kumar (2000900100029)
Ashok Kumar Paswan (1900900100030)
Harsh Deol (2000900100026)
Om Saran (2000900100045)

Submitted in partial fulfillment of the requirements of


the degree of

BACHELOR OF TECHNOLOGY
in
Computer Science and Engineering

Under the Guidance of


Prof. Vipin Kr. Kushwaha

Department of Computer Science and Engineering


IEC College of Engineering and Technology, Greater Noida, U.P.-201310

Dr APJ ABDUL KALAM TECHNICAL UNIVERSITY


LUCKNOW (UP) India
i

DECLARATION
I hereby declare that the major project report which is being presented on, Online
Examination Portal submitted to Prof.Vipin Kr. Kushwaha in the partial fulfillment of
the requirements for the award of the degree of Bachelor of Technology in Computer
Science and Engineering, is an authentic record of our own work.
The matter embodied in this report has not been submitted by me for the award of any other
degree.

HRITIK KUMAR
(2000900100029)

ASHOK KUMAR PASWAN


(1900900100030)

OM SARAN
(2000900100045)

Harsh Deol

(2000900100026)
ii

CERTIFICATE

Certified that Hritik Kumar (2000900100029), Ashok Kumar Paswan (1900900100030),


Om Saran (1900900100037), Harsh Deol (2000900100026) has carried out the research
work presented in this project entitled “Online Examination Portal ” for the award of
Bachelor of Technology from Dr. APJ Abdul Kalam Technical University, Lucknow under
my supervision. The project embodies results of original work, and studies are carried out
by the student himself and the contents of the project do not form the basis for the award of
any other degree to the candidate or to anybody else from this or any other
University/Institution.

Prof.(Dr.) B. Sharan Prof. Vipin Kr. Kushwaha

Dean Academics &HoD-CSE/IT Associate Professor Dept. of CSE/IT

Date:

iii
ACKNOWLEDGEMENT
We would like to express our sincere thanks to our guide and staff in charge Prof.Vipin Kr.
Kushwaha, Associate Professor, CSE/IT Department, for his vital support, valuable
guidance and for providing us with all facility and guidance for presenting assisting us in
times of need.

We would also take this opportunity to express our heartfelt gratitude to Prof. (Dr.)B.
Sharan, Dean Academics & Head of the Department of Computer Science &
Engineering, for his valuable support and cooperation in the presentation of this paper.

We are thankful to our friend for their lively discussion and suggestions. Finally, we would
like to thank the almighty who have given us all that is required for the successful completion
of my project.

Sincerely

Hritik Kumar
(2000900100029)

Ashok Kumar Paswan


(1900900100030)

Om Saran
(2000900100045)

Harsh Deol
(2000900100026)

iii
Date:

ABSTRACT

In an online examination system examine get their user id and password with his/her admit
card. This id is already saved in the examination server. When examine login to the server
he/she get his/her profile already register. On the certain time examine gets the message to
start the examination. All answers given by examine are saved into the server with his/her
profile information. Online examination system also allows to correct the answer if the
examine needed to change any answer in the examination time duration, however, after the
time duration any change will not allow. This also makes c checking the answer easy and
error proof as computers are more accurate than man and provide fast results too. Php is a
web base language so we can create an online examination system in PHP.
In the world of internet, all task has been done through internet, so we have decide why
Exam has not conducted through internet. For convert current exam system into digital
exam system, we have build this small Online Exam system project. If this system has
build in professional level then it will automate our existing examination system into
digitize exam system. In this system it will required less labor force for execute system and
it will be more accurate and less time consuming and at the same time we can conduct
more person exam at the same time and it will publish result in a very short time. Below
you can find benefits of Online Examination System. If this system has been implemented
then examination will not limited in to four wall of class room, but student can part into
exam from any place.

iii
TABLEOF CONTENTS

DECLARATION ...............................................................................................ii
CERTIFICATE..................................................................................................iii.
ACKNOWLEDGEMENT .................................................................................iv
ABSTRACT .......................................................................................................v
TABLE OF CONTENT………………………………………………….….…vi
LIST OF FIGURES………………………………………………………….....ix

iii
Chapter1: INTRODUCTION…………………………………………………….………1

1.1 Problem Statement……………………………………………………………….…………….1


1.2 Project Introduction……..….…………………………………………………………………..1

Chapter2:LITERATURESURVEY……………………………………………….…..…1
-
2.1Initial Investigation……………………………………………………………………….…......1
2.2 Problem Defnation……………………………………………………………………...……....1
2.3 Evaluation of Existing System……………………………………………………..…...1
2.3.1 Proposed System……………………………………………………………….......…2
2.4 Software Selection……………………………………………………………...............3

Chapter3:HARDWARE AND SOFTWARE REQUIREMENTS……………………...4


3.1 Hardware Requirements……………………………………………………………….………..4
3.2Software Requirements…...………………………………………………...…………...4

Chapter4: SOFTWARE REQUIREMENTS SPECIFICATION…………………..…..5


4.1 Software Scope……………………………………………………………………..…….….….5
4.2 Product Perspective……………………………………………………………………….….....5
4.3 Characterstics of Adimn and User Module……………………………………………..............5
Admin………………………………………………………………………………..………...……6
User………………………………………………………………………………...............64.
4 Functional Requirements…………………………………………………………………...…….7
4.5 Non-Functional Requirements………………………………………………………..…........8
Accessibility……………………………………………………………………………..…….…….9
Availability…………………………………………………………………………………….........9
Backup………………………………………………………………………………………..…….9
Certification…………………………………………………………………………………..…….9
Compliance………………………………………………………………………..……….…....…10
Configuration Management……………………………………………………………...........…....10
Capacity…………………………………………………………………………………...………..10
Disaster Recovery……...……………………………………………………...…….……………...10
Extensibility………………………………………………………………..…………….…………10
Maintainability……………………..……………………………………………………….………11
Network Topology………………………………,…………….……………………….…………..11
Durability………………………………………………………………..…….……………………11

Chapter5: System Defination………….………………...…………... …....12


5.1 System Architecture…………………………………………………………………………….12
5.1.1 Architecture Structure………………………………………………………………………...12

ix
5.2 Use Case Analysis………………………………………………………...……………....13
5.3Activity Diagram…………………………………………………………………..15
5.4 Sequence Diagram…………………………………………………………..........16
5.5DFD Requirement…………………………………………………………..… ….17

Chapter6: Detailed Design……………………………………….….. 20

6.1 ER Digram…………………...…………………………………………....…..…21

Chapter7: IMPLEMENTATION………………………………….. 22

7.1 System Implementation………………….……………………………………….23


7.2 ScreenShots………….………………………………………………………........24
7.3 Code………………….……………………………………………..……..............28

Chapter8:TESTING AND RESULTS…………………………….……………....45

8.1 Introduction to Testing………………………………………………………….…..…..45


8.1.1Unit Testing…………………………………………………………..…….….................45
8.1.2System Testing……………………………………………………………...……….......45
8.1,3Acceptance Testing…………………………………………….………………….……..45
8.1.4Testing Report……………………………………………………………..…...........…...46
8.1.4.5 Testing Unit………………………………………………………………....…...…....46
8.1.4 Test Cases……………………………………………………………………….……..47

Chapter9:CONCLUSIONS………………………………………….........................48

Chapter10:FUTUREIMPROVEMENTS………………….……….........................49

Chapter11:BIBLOGRAPH…………………………………………….………...…50

ix
LIST OF FIGURES

Fig. 1. Architecture Structure…………………………………………………12


Fig. 2. Use Case Diagram……………………………………………………..13
Fig. 3. Activity Diagram in User Side……………………………………...…14
Fig. 4. Activity Diagram Admin Side……………………………………....…15
Fig. 5. Sequence Diagram……………………………………………………..16
Fig. 6. DFD Level 0, Level 1, Level 2………………………………………...18
Fig. 7. User Details…………………………………………………...……….20
Fig. 8. Complete ER Diagram…………………………………………………21
Fig. 9. User Table, Admin Table, Subject Table…………………………..….25
Fig. 10. Class Diagram…………………………………………………...…....26

ix
Chapter 1
INTRODUCTION
1.1 PROBLEM STATEMENT

 We are going to make an attractive examination portal in which user can create an
account after which user have to sign in to attempt the test.
 Most of the currently existing portal we know have some problems like crashing and
getting hanged.
 We will try to overcome these problems.
 We tried to make this site robust, reliable and it takes less bandwidth to move from
one page to next page.
 We have also working on encryption and decryption of the password using some
algo.

1.2 PROJECT INTRODUCTION


Online Examination System is a technology-driven way to simplify examination activities
like defining exam patterns with question banks, defining exam timer, objective/ subjective
question sections, conducting exams using the computer or mobile devices in a paperless
manner.Online Examination System is a cost-effective, scalable way to convert traditional
pen and paper-based exams to online and paperless mode.Candidates can appear for the
exam using any desktop, laptop, or mobile device with a browser. Exam results can be
generated instantly for the objective type of questions.
Chapter 2
LITERATURE SURVEY
2.1 INITIAL INVESTIGATION
Since the traditional have many drawbacks such as time consuming, Difficulty of
analyzing the test manually, More observers are required to take exam of many students,
Results are not accurate since calculations is done manually, The chance of losing exam's
result is higher in current systems, Checking of result is time consuming since it done
manually .Online examination is the crucial parts among online education. It is efficient
and fast enough and reduces the large amount of material resources. Online Examination
system is developed based on web.

2.2 PROBLEM DEFINITION


Online Examination arrangement is a Multiple-Choice Questions based Examination
framework. It gives a simple way to utilize the environment for both test-conductors and
understudies showing up for examination. Online Examination System is a web application
that sets up a system between the establishments and under studiess. The site has a
manager who watches out for the general working of the framework.

2.3 EVALUATION OF EXISTINGSYSTEM


Existing system is manual entry and keeping of the details of the student who are
registered already. This system is required to prepare registration\application form,
question paper for the students and required to print a lot of number manually. To
calculate how many students registered, and verification of details of these students in a
month by hand is very difficult. This requires quite a lot of time and wastage of money as
it requires quite lot of manpower to do that. Another factor that takes into account that is
the possibility of errors.

DISADVANTAGES
 Time Consuming for creating question paper.
 Time to check right and wrong answers.
 Human error.
1
 Limitation of no of student can give examination at a time.
 Require teacher to monitor exam centre.
 Student needs to come exam centre for giving test.

2.3.1 PROPOSED SYSTEM

This application is used to conduct online examination. The students can sit at
individual terminals and login to write the exam in the given duration. . The
questions have to be given to the students. This application will perform correction,
display the result immediately and also store it in database. This application provides
the administrator with a facility to add new exams. This application provides the
Instructor add questions to the exam, modify questions in the exam in a particular
exam. This application takes care of authentication of the administrator, Instructor as
well as the student.

2
2.4 SOFTWARESELECTION
PHP:

PHP is a server-side scripting language designed for web development but also used
as a general-purpose programming language. PHP originally stood for Personal
Home Page, it now stands for PHP: Hypertext Pre-processor, which is a recursive
backronym.PHPcode can be simply mixed with HTML code,or it can be used in
combination with various templating engines and web frameworks. PHP code is
usually processed by a PHP interpreter, which is usually implemented as a web
server's native module or a Common Gateway Interface (CGI) executable.

MySQL:

MySQL is (as of July 2013) the world's second most widely used relational
database management system (RDBMS) and most widely used open-source
RDBMS. The SQL acronym stands for Structured Query Language. The MySQL
development project has made its source code available under the terms of the
GNU General Public License, as well as under a variety of proprietary agreements.
MySQL is a relational database management system (RDBMS), and ships with no
GUI tools to administer MySQL databases or manage data contained within the
databases.

JavaScript:
JavaScript (often shortened to JS) is a lightweight, interpreted, object-oriented
language with first-class functions, and is best known as the scripting language for
Web pages, but it's used in many non-browser environments as well. It is a
prototype-based, multi-paradigm scripting language that is dynamic, and supports
object-oriented, imperative, and functional programming styles.

3
Chapter 3
HARDWARE & SOFTWARE REQUIRMENTS

3.1 HARDWARE REQUIREMENTS

 Processor : Pentium Dual Core, AMD, Intel andabove


 RAM : 1GB
 Harddisk : 20GB
 ScreenResolution : 600x800

3.2 SOFTWARE REQUIREMENTS

 OperatingSystem : XP/7/10.
 Frontend : HTML5, CSS, Js.
 Backend : MySQL
 Server-SideScripting : PHP
 Softwareused : Notepad++, vs code.

4
Chapter 4

SOFTWARE REQUIREMENTS SPECIFICATION


4.1 SOFTWARESCOPE

This software system is very essential for every educational institution has it
reduces Man Effort. Computer-based tests as a method of conducting an
assessment enable users to manage an exam easily. The flexibility associated
with computer-based tests reduces exam anxiety among test takers. Online
examination managed avoids the possibilities of secretly using unfair means to
get the right answers. Organizing and running exams online not only reduces
an organization’s administrative burden but also saves cost and time with safe
and secure data.

4.2 PRODUCT PERSPECTIVE

This website is designed for the web-based browsers. There should be an internet
connection for appearing these tests. This interface is very easy and can be
maintained by anyone. This familiar GUI will make the user feel more comfortable
navigating and viewing the data on our system. Once our application is loaded into
browser it allows user to give online test and make themselves improved.

4.3 CHARACTERISTICSOF ADMIN AND USER


MODULE

Admin:

Admin has right to create batches, test series, create question bank and student with

5
limited controls and permission. Admin has authority to managing everything inside the
application like batch management, student management, test series with section
management and question bank management. Admin can use software easily to conduct
online exam in institute.

User:

In this panel, student can register with user’s details and start the test at particular time
which set by admin. Complete test and get results in Score Card, Question Report &
answer report.

4.4 FUNCTIONAL REQUIREMENTS

A functional requirement defines a function of a system or its component, where a


function is described as a specification of behavior between outputs and inputs.

Functional requirements may involve calculations, technical details, data manipulation


and processing, and other specific functionality that define what a system is supposed to
accomplish. Behavioral requirements describe all the cases where the system uses the
functional requirements, these are captured in use cases. which impose constraints on
the design or implementation (such as performance requirements, security, or
reliability). Generally, functional requirements are expressed in the form "system must
do <requirement>," while non-functional requirements take the form "system shall be
<requirement>." The plan for implementing functional requirements is detailed in the
system design, whereas non-functional requirements are detailed in the system
architecture

The Functional Requirements Specification documents the operations and activities that
a system must be able to perform.

6
Functional Requirements should include:

 Descriptions of data to be entered into the system


 Descriptions of operations performed by each screen
 Descriptions of work-flows performed by the system
 Descriptions of system reports or other outputs
 Who can enter the data into the system

The Functional Requirements Specification is designed to be read by a general audience.


Readers should understand the system, but no particular technical knowledge should be
required to understand the document.

 Login Form: In this login form login option is provided to login. The admin
or user can login to the software the administrator will be responsible for
adding new user, new account and new group, this information will be
stored in the login table.
 Registration Module: A registered user is a user of a website, program, or
previouslyregistered.Registeredusersnormallyprovidesomesortofcredentials(
suchasausername or e-mail address, and a password) to the system in order
to prove their identity: this is known as logging
 Admin Module: Configuration, and reliable operation of computer systems;
especially multi-user computers, such as servers. The system administrator
seeks to ensure that the uptime, performance, resources, and security of
the computers they manage meet the needs of the users, without
exceeding a set budget when doing.

7
4.5 NON-FUNCTIONAL REQUIREMENTS

A Non-Functional Requirement (NFR) defines the quality attribute of a software system.


They judge the software system based on Responsiveness, Usability, Security, Portability
and other non-functional standards that are critical to success of the software system.
Example of non-functional requirement, how fast does the website load? Failing to meet
non-functional requirements can result in systems that fail to satisfy user needs.

A non-functional requirement is a requirement that specifies criteria that can be used to


judge the operation of a system, rather than specific behaviors. They are contrasted
with functional requirements that define specific behavior or functions.

Non-functional Requirements allows you to impose constraints or restrictions on the


design of the system across the various agile backlogs. Example, the site should load
in 3 seconds when the number of simultaneous users are> 10000. Description of non-
functional requirements is just as critical as a functional requirement.
Some Typical non-function requirements are:
 Accessibility
 Adaptability
 Auditability and control
 Availability
 Backup
 Capacity, current and forecast
 Certification
 Compliance
 Configuration management
 Dependency on other parties
 Disaster Recovery
 Deployment
 Efficiency
 Effectiveness
 Emotional Factors
8
Accessibility
Accessibility considered here refers to the design of products, devices, services, or
environments so as to be usable by people with disabilities. The concept of accessible
design and practice of accessible development ensures both "direct access" (i.e.
unassisted) and "indirect access" meaning compatibility with a
person's assistive technology.

Availability

The degree to which a system, subsystem or equipment is in a specified operable and


committable state at the start of a mission, when the mission is called for at an
unknown, i.e. A random, time. Simply put, availability is the proportion of time a
system is in a functioning condition.

Backup

A backup, or data backup is a copy of computer data taken and stored elsewhere so
that it may be used to restore the original after a data loss event Backups can be
used to recover data after its loss from data deletion or corruption, or to recover
data from an earlier time. Backups provide a simple form of disaster recovery;

Certification
It refers to the confirmation of certain characteristics of an object, person, or
organization. This confirmation is often, but not always, provided by some form of
external review, education, assessment,or audit. Accreditation is a specific
organization's process of certification.

9
Compliance
Compliance means conforming to a rule, such as a specification, policy, standard or law.
Regulatory compliance describes the goal that organizations aspire to achieve in their
efforts to ensure that they are aware of and take steps to comply with relevant laws,
policies, and regulations.

Configuration management
Configuration management is a systems engineering process for establishing and
maintaining consistency of a product's performance, functional, and physical attributes
with its requirements, design, and operational information throughout its life. The CM
process is widely used by military engineering organizations to manage changes
throughout the system lifecycle of complex systems, such as weapon systems, military
vehicles, and information systems.

Capacity
Channel capacity, in electrical engineering, computer science, and information
theory, is the tight upperbound on the rate at which information can be reliably
transmitted over a communication channel.

Disaster Recovery
Disaster Recovery involves a set of policies, tools and procedures to enable the
recovery or continuation of vital technology infrastructure and systems following a
natural or human-induced disaster. Disaster recovery focuses on the IT or technology
systems supporting critical business functions,

Extensibility
Extensibility is a software engineering and systems design principle that provides for
future growth. Extensibility is a measure of the ability to extend a system and the
level of effort required to implement the extension.
10
Maintainability
Maintainability is the ease with which a product can be maintained in order to: correct
defects or their cause, repair or replace faulty or worn-out components without having
to replace still working parts, prevent unexpected working conditions, maximize a
product's useful life, and maximize efficiency, reliability, and safety, meeting to new
requirements.

Network topology
Network topology is the arrangement of the elements (links, nodes, etc.) of
a communication network. Network topology can be used to define or
describe the arrangement of various types of telecommunication networks,
including command and control radio
networks, industrial field buses and computer networks.

Durability
Durability is the ability of a physical product to remain functional, without requiring
excessive maintenance or repair, when faced with the challenges of normal operation
over its design lifetime. There are several measures of durability in use, including years
of life, hours of use, and number of operational
cycles.]In economics, goods with a long usable life are referred to as durable goods

11
Chapter 5
SYSTEM DEFINATION

5.1 SYSTEM ARCHITECTURE

A system architecture or systems architecture is the conceptual model that defines the
structure, behavior, and is organized in a way that supports reasoning.

 The fundamental organization of a system, embodied in its components, their


relationships to each other and to the environment, and the principles governing its
design and evolution.
 Arepresentationofasystem,includingamappingoffunctionalityontohardwareandsoftw
arecomponents, a mapping of the software architecture onto the hardware
architecture, and human interaction with these components.

5.1.1 ARCHITECTURE STRUCTURE

12
5.2 –USE CASE ANALYSIS (Use case diagrams)
Ausecasediagramisagraphicdepictionoftheinteractionsamongtheelementsofasystem.
Ausecaseis a methodology used in system analysis to identify, clarify, and organize
system requirements.

Fig 5.2: Use case diagram

13
5.3 ACTIVITY DIAGRAM

Activity diagrams is graphical representations of workflows of stepwise


activities and actions with support for choice, iteration and concurrency. Activity
diagrams show the overall flow of control. Activity diagrams are constructed
from a limited number of shapes, connected with Arrows run from the start
towards the end and represent the order in which activities happen.

Activity Diagram in User Side

14
Activity Diagram in Admin Side

Fig 5.4: Activity diagram Admin side

15
5.4 SEQUENCE DIAGRAM

A sequence diagram is an interaction diagram that emphasizes the time ordering of


messages. A sequence diagram shows a set of objects and the messages sent and
received by those objects. The objects are typically named or anonymous instances
of classes, but may also represent instances of other things, such as collaborations,
components and nodes.

Fig5.5:Sequence diagram
16
5.5 DFD REQUIREMENT

DATA FLOW DIAGRAM

A Data Flow Diagram (DFD) is a structured analysis and design tool that can be used for
flowcharting. A DFD is a network that describes the flow of data and the processes that
change or Trans form the data throughout a system. This network is constructed by
using a set of symbols that do not imply any physical implementation. It has the purpose
of clarifying system.

EXTERNAL ENTITY

An external entity is a source or destination of a data flow. Only those entities which
originate or receive data are represented on a data flow diagram. The symbol used is a
rectangular box.

PROCESS

A process shows a transformation or manipulation of data flow within the system. The
symbol used is an oval shape.

DATAFLOW
The data flow shows the flow of information from a source to its destination .Data flow is
represented by a line, with arrow heads showing the direction of flow. Information always
flows to or from a process and may be written, verbal or electronic.

DATA STORE

A data store is a holding place for information within the system: It is represented by an
open-ended narrow rectangle. Data stores may belong-term files such as sales ledgers,
or may be short-term accumulations: for example, batches of documents that are waiting
to be processed. Each data store should be given a reference followed by an arbitrary
number.

17
DFD Level 0

18
19
Chapter 6

6.1 ER DIAGRAMS

Fig6.2: User Detail

20
Fig6.4:Complete ER-DIAGRAM

21
Detailed Design
Conceptual design in itself is not the end of the design process, rather it serves as a basis for the
detailed MIS design. The performance requirements specified by the conceptual design become
inputs to the detailed design phase , in which these are further refined ,detailed and finalized to be
called. Thus ,the main objective of the detailed design is to prepare a blue print of a system that meets
the goals of the conceptual system design requirements. Detailed design involves the following
phases.

DATA-BASED SIGN

Databases are the storehouses of data used in the software systems. The date is stored in
tablesinsidethedatabase.Severaltablesarecreatedforthemanipulationofthedataforthesystem.Twoesse
ntialsettingsfor a database are-PRIMARY KEY- the field that is unique for all the record
occurrences. FOREIGN KEY-thefield used to set relation between tables.
Normalization is a technique to avoid redundancy in the tables. Database normalization is the
process of organizing the fields and tables of a relational database to minimize
redundancy.Normalizationusuallyinvolvesdividinglargetablesintosmaller(andlessredundant)tablesa
nddefiningrelationshipsbetweenthem. The objective is to isolate data so that additions, deletions,
and modifications of a field can be made in just one table and then propagated through the rest of
the database using the defined relationships.

TYPES OF NORMALIZATIONS
First Normalization Form (1 NF)
Second Normalization Form (2 NF)
Third Normalization Form (3 NF)
Boyce-cod Normalization Form (BCNF)

22
TABLE STRUCTURE

User Table:

23
Table 6.1: User table
Admin Table:

Table6.2: Admin Table

Subject table:

Table 6.3: Subject Table

24
Chapter 7

IMPLEMENTATION

7.1 SYSTEM IMPLEMENTATION (MODELS)


Implementation is the stage of the project when the theoretical design is turned out
into a working system. Thus it can be considered to be the most critical stage in
achieving a successful new system and in giving the user, confidence that the new
system will work and be effective.

7.2 SCREENSHOTS

Login

Fig7.2: User login

25
Fig7.2.1: Admin login
Dashboard:

26
Examination portal:

Examinee Result:

27
Result:

Fig7.5. User Result

Feedback:

Fig: 7.6: Users Feedback

28
7.3 Code

Index.html
<!DOCTYPE html>
<html lang="en">
<head>
<title>Online Exam</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="src/bootstrap/css/bootstrap.css">
<link rel="stylesheet" href="src/font-awesome/css/font-awesome.css">
<link rel="stylesheet" href="src/css/style.css">
<style type="text/css">
html {
scroll-behavior: smooth;
}
</style>
</head>
<body>
<nav class="navbar navbar-fixed-top" id="navbar">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle" data-toggle="collapse" data-
target="#myNavbar">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="index.html">Online Exam</a>
</div>
<div class="collapse navbar-collapse" id="myNavbar">

29
<ul class="nav navbar-nav navbar-right">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#services">Services</a></li>
<li><a href="#developers">Developers</a></li>
<li><a href="register.php">Register</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Login
<ul class="dropdown-menu">
<li><a href="userlogin.php">User Login</a></li>
<li><a href="admin/login.php">Admin Login</a></li>
</ul>
</li>
</ul>
</div>
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col-sm-12 coverBg">
<div class="coverText">
<h1 class="heroText">Online Examination System</h1>
<p>Online Examination System has become a fast growing examination method because of
its speed and accuracy</p>
<br>
<a href="register.php">Register</a>
</div>

</div>
</div>
</div>
<br>

30
</ul>
</div>
<div class="footer-items">
<h1>Quick Links</h1>
<div class="border"></div>
<ul>
<a href="https://www.W3schools.com/"><li>W3schools</li></a>
<a href="https://www.Javatpoint.com/"><li>Javatpoint</li></a>
<a href="https://www.geeksforgeeks.org/"><li>GeeksForGeeks</li></a>
<a href="https://www.TutorialsPoint.com/in/"><li>TutorialsPoint</li></a>
<a href="https://www.edureka.co/"><li>Edureka</li></a>
</ul>
</div>
<div class="footer-items">
<h1>Contact Us</h1>
<div class="border"></div>
<ul>
<li><i class="fa fa-university" aria-hidden="true"></i>Brindavan College</li>
<li><i class="fa fa-phone" aria-hidden="true"></i>+91 6207473452</li>
<li><i class="fa fa-phone" aria-hidden="true"></i>+91 9801775502</li>
<li><i class="fa fa-envelope" aria-
hidden="true"></i><a href="#">piyushkant2016@gmail.com</a></li>
<li><i class="fa fa-envelope" aria-
hidden="true"></i><a href="#">princeaditya678@gmail.com</a></li>
</ul>
<div class="social-media">
<a href="https://www.facebook.com/"><i class="fa fa-facebook" aria-
hidden="true"></i></a>
<a href="https://twitter.com/"><i class="fa fa-twitter" aria-hidden="true"></i></a>
<a href="https://www.instagram.com/"><i class="fa fa-instagram" aria-
hidden="true"></i></a>
<a href="https://in.linkedin.com/"><i class="fa fa-linkedin" aria-hidden="true"></i></a>

31
</div>

<p class="title">Student of MCA</p>


<p>Brindavan College</p>
<div style="margin: 24px 0;">
<a href="#"><i class="fa fa-instagram"></i></a>
<a href="#"><i class="fa fa-twitter"></i></a>
<a href="#"><i class="fa fa-linkedin"></i></a>
<a href="#"><i class="fa fa-facebook"></i></a>
</div>
<p><a href="about/about_prince.html">View Detail</a></p>
</div>
</div>
</div>
</div>
</div>
<!--Footer Section-->
<section id="footer">
<div class="footer">
<div class="inner-footer">
<div class="footer-items">
<h1>Description</h1>
<p>This Web page is developed only for education purpose by Brindavan College's Students.</
p>
<p>Brindavan College</p>
<p>Dawarka Nagar - 560063</p>
<p>Karnatka, India</p>
</div>
<div class="footer-items">
<h1>Our Page</h1>
<div class="border"></div>
<ul>

32
<a href="#"><li>Home</li></a>
<a href="#services"><li>Services</li></a>
<a href="#developers"><li>Developer Contact</li></a>
<a href="#about"><li>About us</li></a>

<div class="container-fluid">
<div class="row about-bg" style="margin-top:-19.55px;" id="about">
➤User have to register itself by filling all the detail mentioned in the form.
<br>➤Login at least before 15 min with your email id and password on the date & time giv
en for ur choosen subject's exam.
<br>➤Fill the answersheet by choosing one of the option(MCQ), answer will be submitted
automatically.
<br>➤Result will be published on specific date and time.
</div>
</script>
</body>
</html>

getregister.php

<?php
$filepath = realpath(dirname(__FILE__));
include_once ($filepath.'/classes/User.php');
$usr = new User();

function register($data){
global $usr,$registerMsg;
$name = $data['name'];
$fname = $data['fname'];
$dob = $data['dob'];
$gender = $data['gender'];
$address = $data['address'];
33
$contact = $data['contact'];
$collage= $data['collage'];
$subject= $data['subject'];
$email = $data['email'];
$password = $data['password'];
$registerMsg = $usr-
>userRegistration($name,$fname,$dob,$gender,$address,$contact ,$collage,$subject,$email,
$password);
$registerMsg=trim($registerMsg);
if($registerMsg=='exist')
{
$data['msg']='<div class="alert alert-warning text-
center"> <strong>Warning!</strong> Email Address Already Exist! Please a
nother Email</div>';
}elseif($registerMsg=='success'){
header('Location: userlogin.php?'.$registerMsg);
}elseif($registerMsg=='Not Register'){
$data['msg']='<div class="alert alert-warning text-
center"><strong>Warning!</strong> Error..Not Registered!!!</div>';
}

return $data;
}

?>

Register.php
<?php
$filepath = realpath(dirname(__FILE__));
include_once ($filepath.'/classes/Exam.php');
$exm = new Exam();
include 'inc/header.php';
include 'getregister.php';
34
$subject = $exm->getSubjects();
$data=array_fill_keys(array('name','fname','dob','gender','address','contact','collage','email','p

</div>
<div class="col-md-6">
<div class="form-group">
<label for="contact">Contact No. *</label>
<input type="number" name="contact" id="contact" value="<?php echo $data['contact']?
>" class="form-control" required/ >
</div>
<div class="form-group">
<label for="collage">Name of Collage *</label>
<input type="text" name="collage" id="collage" value="<?php echo $data['collage']?>" cl
ass="form-control" required/>
</div>
<div class="form-group">
<label for="sub">Subject *</label>
<select name="subject" id="sub" class="form-control">
<option value="selectCourse">Select Course</option>
<?php
if($subject){
while($result = $subject->fetch_assoc()){
?>

<option value="<?=$result["id"] ?>"> <?=$result["subject"] ?></option>


<?php } } ?>
</select>
</div>
<div class="form-group">
<label for="email">E-mail *</label>
<input type="email" name="email" id="email" value="<?php echo $data['email']?>" plac
eholder="example@gmail.com" class="form-control" required/>

35
</div>
<div class="form-group">
<div class="panel-body">
<?php echo $data['msg'];?>
<span id = "state" class="msg"></span>
<form action="" method="post" id="registerForm" onSubmit="return check();">
<div class="col-md-6">
<div class="form-group">
<label for="name">Name *</label>
<input type="text" name="name" id="name" value="<?php echo $data['name']?>"class="fo
rm-control" required/>
</div>
<div class="form-group">
<label for="fname">Father's Name *</label>
<input type="text" name="fname" id="fname" value="<?php echo $data['fname']?>" class=
"form-control" required/>
</div>

<div class="form-group">
<label for="dob">Date Of Birth *</label>
<input type="date" name="dob" id="dob" value="<?php echo $data['dob']?>" class="form-
control" min="1980-01-01" max="<?=date('Y-m-d');?>" required/>
</div>
<div class="form-group">
<label for="gender">Gender *</label>
<select name="gender" id="gender" class="form-control">
<option value="male">Male</option>
<option value="female">Female</option>
</select>
</div>
<div class="form-group">
<label for="address">Address *</label>

36
<textarea class="form-
control" rows="5" name="address" id ="address" required/><?php echo $data['address']?></text
area>
</div>

<label for="password">Password *</label>


<input type="password" name="password" id="password" class="form-
control"required/>
assword','msg'),"");
if(isset($_POST['submit']) && $_POST['submit']=="addUser"){
$data=register($_POST);
}

<style type="text/css">
select {
border: 1px solid #ddd;
margin-bottom: 10px;
padding: 8px 10px;
width: 100%;
</style>

<div class="panel panel-primary">


<div class="panel-heading text-center">Examinee Register</div>
<div class="panel-body">
<?php echo $data['msg'];?>
<span id = "state" class="msg"></span>
<form action="" method="post" id="registerForm" onSubmit="return check();">
<div class="col-md-6">
<div class="form-group">
<label for="name">Name *</label>
<input type="text" name="name" id="name" value="<?php echo $data['name']?>"class="for
37
m-control" required/>
</div>
<div class="form-group">
<label for="fname">Father's Name *</label>
<input type="text" name="fname" id="fname" value="<?php echo $data['fname']?>" class=
"form-control" required/>
</div>

<div class="form-group">
<label for="dob">Date Of Birth *</label>
<input type="date" name="dob" id="dob" value="<?php echo $data['dob']?>" class="form-
control" min="1980-01-01" max="<?=date('Y-m-d');?>" required/>
</div>
<div class="form-group">
<label for="gender">Gender *</label>
<select name="gender" id="gender" class="form-control">
<option value="male">Male</option>
</div>
<div class="form-group">
<label for="email">E-mail *</label>
var errorPassLen='<div class="alert alert-
warning"><strong>Warning!</strong> Please Enter Minimum 8 Characters</div>';
var contact=$('#contact').val().toString().length;
var passLength=$('#password').val().toString().length;
if(passLength!=8){
$('.msg').html(errorPassLen);
return false;
}
if(contact!=10){
$('.msg').html(errorCont);
return false;
}

38
if($('#sub').val()=="selectCourse"){
$('.msg').html(errorSub);
return false;
}
if($('#password').val() === $('#repassword').val()){
return true;
}else{
$('.msg').html(errorPass);
return false;
}

</script>
<?php include 'inc/footer.php';?>

Login.php

admin
<?php
$filepath = realpath(dirname(__FILE__));
include_once("../lib/Session.php");
include_once ($filepath.'/../classes/Admin.php');
$ad = new Admin();
Session::checkAdminLogin();
$adminExist=$ad->getAdminExisting();
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: pre-check=0, post-check=0, max-age=0");
header("Pragma: no-cache");
header("Expires: Mon, 6 Dec 1977 00:00:00 GMT");
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
?>
39
<?php
if($adminExist){
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$adminData = $ad->getAdminData($_POST);
}
}else{
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$adminReg = $ad->addAdminData($_POST);
if($adminReg){
echo "<script> alert('Register Successfully');
window.location='login.php';
</script>";
}
}
}
?>
<!DOCTYPE html>
<html>
<head>
<title>Login</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<link rel="stylesheet" href="../src/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="css/login.css">
</head>
<body>
<div class="loginPage">

40
<?php if($adminExist)
{
?>
<div class="loginBox">
<h2>Admin Login</h2>
</div>
<div class="form-group">
<label for="repassword">Re-Enter Password *</label>
<input type="password" name="password" id="repassword" class="form-
control" required/>
</div>
</div>
<button type="submit" id="regsubmit" class="btn btn-primary reg-
btn" name="submit" value="addUser">
Register Now
</button>
</form>
<br>
<div style="font-size: 16px;text-
align:center;">Already Registered ? <a href="userlogin.php">Login</a> Here</div>

</div>
</div>
<script>
function check(){
var errorPass='<div class="alert alert-
warning"><strong>Warning!</strong> Password Does Not Match!<br> Please Re-Enter.</div>';
var errorSub='<div class="alert alert-
warning"><strong>Warning!</strong> Please Select Subject</div>';
var errorCont='<div class="alert alert-
warning"><strong>Warning!</strong> Please Enter Currect Contact No.</div>';
var errorPassLen='<div class="alert alert-

41
warning"><strong>Warning!</strong> Please Enter Minimum 8 Characters</div>';
var contact=$('#contact').val().toString().length;
var passLength=$('#password').val().toString().length;
if(passLength!=8){
$('.msg').html(errorPassLen);
return false;

<?php
if(isset($adminData)){
echo $adminData;
}
?>
<img src="../img/user.png" class="user">
<form action="" method="post">
<p>Username</p>
<input type="text" name="adminUser" placeholder="Enter Username" required/>
function check(){
var passLength=$('#pass').val().toString().length;
if(passLength!=8){
$('.msg').html(errorPassLen);
return false;
}
if($('#pass').val() === $('#repass').val()){
return true;
}else{
$('.msg').html(errorPass);
return false;
}
}
</script>
</html>

42
Userlogin.php

<?php
$filepath = realpath(dirname(__FILE__));
include_once ($filepath.'/inc/header.php');
include_once ($filepath.'/../classes/User.php');
$usr = new User();
if($_SERVER['REQUEST_METHOD'] == 'POST'){
$email= $_POST['email'];
$password =($_POST['password']);
$userlogin = $usr->userLogin($email,$password);
}
?>
<?php
$msg="";
Session::checkLogin();
?>
<?php
if (isset($_GET['success'])) {
center">Registration Successfully Complete<br> please Login Here</div>';
}
?>
</style>
<p>Email</p>
<input type="email" name = "email" placeholder="Enter Email">
<p>Password</p>
<input type="password" name = "password" placeholder="Enter Password" id="password">
<input type="submit" name = "" value="Log In" id="loginsubmit">
<a href="forget.php"> Forget Password</a>
<hr>
<div style="font-size: 16px;text-
</form>
43
</div>
<div class="msg">
<span class="empty" style ="display:none">Field Must Not be Empty !</span>
<span class="error" style ="display:none">Email or Password not Matched !</span>
<span class="disable" style ="display:none">User ID Disable !</span>
</div>
</div>
<script type = "text/javascript" src="src/jquery/jquery.js"></script>
<script type = "text/javascript" src="jvascrpt/main.js"></script>

</body>
</html>

44
Chapter 8
TESTINGAND RESULT

8.1 INTRODUCTION TO TESTING

Testing
isaprocessofexecutingaprogramwithintentoffindinganerroritpresentsaninterestingano
maly for the softwareengineering.
The goal of the software testing is to convince system developer and customers that
the software is good enough for operational use. Testing is a process intended to
build confidence in the software.
Testingisasetofactivitiesthatcanbeplannedinadvanceandconductedsystematicallyitiso
ftenreferred to as verification & validation.

8.1.1 UNIT TESTING

Unit testing is usually conducted as part of a combined code and unit test phase of
the software lifecycle, although it is not uncommon for coding and unit testing to be
conducted as two distinct phases.
8.1.2 SYSTEM TESTING

Systemtestingisactuallyaseriesofdifferenttestswhoseprimarypurposeisfullytoexercis
ethecomputer- based system. The system tests that where applied are recovery
testing and performance testing. Finally a review or audit is conducted which is a
final evaluation that occurs only after operating the system long enough for user to
have gained a familiarity with it. System testing was done by the inspection team to
verify that all the functionality identified is the software requirement specification
has been implemented.
8.1.3 ACCEPTANCE TESTING

User acceptance of the system is the key factor for the success of any system. This
is done by user. The system is given to the user and they test it with live data.
Acceptance testing involves the planning and execution of function.

45
8.1.4 TESTING REPORT

This document describes the plan for testing. This course is for scheduling software
engineering. All the major activities are specified here. No additional testing is
added other than this.

8.1.5 TESTING UNITS

Testing is to be performed in this project on the following modules:

 User Loginmodule
 Register module
 Admin loginmodule

Here we have specified all the test cases that are to be used for the system testing,

8.2 TEST CASES

The below table shows the global error messages which were designed during the
testing process for all modules.

User Login module:

Test case Condition to be checked Expected Output


Empty user type, user If user type, usernameand Message Box
name
password are null
and password
If user type, user name Invalid user type, user name Message Box
or passwordenteredare or password
invalid

46
Register Module:

Test case Condition to be checked Expected Output

Enter Username If user name is null Message box

Enter the e-mail id If e-mail id is null Message box

Enter the details If details arenull Message box

Enter the password If place is null Message box

Admin login module:

Test case Condition to be checked Expected Output


Empty admin name If admin type, admin nameand Message Box
and password password are null
If admin name or Invalid admin name or Message Box
password entered are password
invalid

47
Chapter 9

CONCLUSION

The package was designed in such a way that future modifications can be
done easily. The following conclusions can be deduced from the development
of the project.

 Automation of the entire system improves the efficiency

 It provides a friendly graphical user interface which proves to be better


when compared to the existing system.

 It gives appropriate access to the authorized users depending on their


permissions.

 It effectively overcomes the delay in communications.

 Updating of information becomes so easier.

 System security, data security and reliability are the striking features.

 The System has adequate scope for modification in future if it is


necessary.

48
Chapter 10

FUTURE IMPROVEMENT

This application avoids the manual work and the problems concern with it. It is an easy
way to obtain the information regarding the different scheduled examinations information
that are Currently issued.Well, I and my team members have worked hard in order to
present an improved website better than the existing one’s regarding the information about
the various activities. Still, we found out that the project can be done in a better way.
Primarily, when we request information about a particular schedule it just shows the exam
date and platform. So, after getting the information we can get access to the online exam.
The enhancement that we can add
 the searching option. We can directly search to the particular student details
from this site.
 the payment option. We can receive the exam payment online.
 we can use AI like chatbot to help users.

49
Chapter 11
BIBLIOGRAPHY
Good teachers are worth more than thousands of books, we have them in our department.

BOOK REFERENCE

1. Programming the world wide web by Robert W. Sebesta.


2. Web programming by Chris Bates.
3. Software engineering by Ian Sommerville.
4. Online book references and notes.

WEBSITES

[1] www.stackoverflow.com

[2] www.youtube.com

[3] https://www.php.net

[4] www.google.com

[5] www.w3schools.com

50

You might also like