Professional Documents
Culture Documents
Submitted by
Reg. No:
Examiners:
1.......................
2........................
Date:.................
………………
Project Guide
…………………………………. ………………….
Head of the Department Principal
DECLARATION
Place: Bangalore
Date:
Ramesh
(123034)
ACKNOWLEDGEMENT
Place: Bangalore
Date:
Ramesh
(123034)
ABSTRACT
This is a project on “Online Examination System”. This project has been made very
interactive keeping in mind its reusability and user friendliness.
The project has been developed using PHP as a front end and MYSQL SERVER as
back end. The user is provided with a database where the information is stored and can be
retrieved any time when required.
Security is maintained for the system, there is a User Name and Password for an authorized
person only that person can access the data in the system.
Contents
Chapter 1: Synopsis
1.1 Title of the Project........................................................................................................1
1.2 Members Name with Reg.No.......................................................................................1
1.3 External Guid Name.....................................................................................................1
1.4 Objectives of the Project..............................................................................................1
1.5 Problem Statement........................................................................................................1
1.6 Project Scope................................................................................................................2
1.7 Project Category...........................................................................................................2
1.8 Hardware and Software Requirements........................................................................2
1.8.1 Software Specifications......................................................................................2
1.8.2 Hardware Specifications....................................................................................2
1.9 Limitations..................................................................................................................3
1.10 Future Scope of the Project...................................................................................3
Chapter 6: Coding
6.1 Introduction………………………………………………………………………........34
6.2 Coding Standards………………………………………………………………….......34
6.2.1 Code Review and Walkthroughs…………………………………………….....34
6.3 Codes…………………………………………………………………………………..35
Chapter 7: Testing
7.1 Introduction………………………………………………………………………...….40
7.2 Levels of Testing……………………………………………………………………....40
7.2.1 Unit
Testing...........................................................................................................40
7.2.2 Integration Testing................................................................................................40
7.2.3 System Testing......................................................................................................40
7.3 White Box Testing………………………………………………………….………….41
7.4 Black Box Testing………………………………………………………………..……41
7.5 Unit Test Cases…………………………………………………………………….......41
Chapter 8: Screen Shots
8.1 Screen Shots…………………………………………………………………………..51
Chapter 9: Conclusion
9.1 Conclusion………………………………………………………………….………….72
Chapter 10: Future Enhancement
10.1 Future Enhancement………………………………………………………………….73
Chapter 11: Bibliography
11.1 References……………………………………………………………………………74
11.2 Websites……………………………………………………………………………..74
SYNOPSIS
1. SYNOPSIS
Seeraj : 34324
Mahesh : 234234
1.3External Guide Name
Rajesh
Lecturer
Carmel College Bangalore
1.9 Limitations
In the case of system failure/crash it is not possible to conduct online
examination.
It is very difficult to answer the examination where there is slow internet
connection.
Computer knowledge is must to answer online examination.
SOFTWARE
REQUIREMENT
AND
SPECIFICATIONS
2. SYSTEM REQUIREMENT AND SPECIFICATION
2.1 Introduction
SRS – is a complete description of the behaviour of a system to be developed. It
includes a set of use cases that describe all the interactions the users will have with the
software. It deals with the requirements of the proposed system. It describes what the
proposed System should do without describing how the System will do it. An SRS provides
a reference for the validation of the final product; the SRS helps the client to determine if
the System meets the requirements.
2.1.1 Purpose
The purpose of the system is to develop Online Examination system,
used to conduct examinations through network for Educational institutions.
The manual procedure used for conducting examination is time consuming
process and error prone due to human limitations. The System purpose is to
completely automate the old manual procedure of conducting examination
to Online Web Based Examination System.
2.1.2 Scope
This web application is Useful for school, college and university
teachers and professor to conduct class test, internal objective type
examination.
This process will help the examiner to conduct examination, checking
answers and preparing grade card.
Online examinations can be conducted at any time and does not incur
higher cost as traditional exam scenario as there is no paper work
involved(eg: printing question papers, prepare paper admissions etc).
It provides limited time to answer the questions and after the time expiry
the question answer will be disabled automatically and the result will be
sent to the students.
It Allows students to check correct answers after their examination.
2.1.4 References
An Integrated Approach to Software Engineering, Third Edition,
by Pankaj Jalote.
www.w3schools.com– PHP and MySQL tutorials.
www.php.net– PHP Official site.
www.mysql.com – MySQL Database official site.
2.1.5 Overview
Online Examination is a Multiple Choice Questions based examination
system that provides a user friendly environment for examiners to conduct
examination and Students to answer exam.
The system handles all the operations, and generates reports as soon as
the test is finish; this includes name, mark, percentage, etc.
The system will provide tool for creating, conducting and evaluating
examinations.
2. 3 Specific Requirements
2.3.1 External Interface Requirements
2.3.1.1 User Interface
Each part of the user interface intends to be as user friendly as
possible. The fonts, form controls and buttons used will be intended to be
very fast and easy to load on web pages. The pages will be kept light in
space so that it won’t take a long time for the page to load. If any errors,
the error message will be displayed in message boxes.
2.3.1.2 Hardware Interface
Hardware requirements are:
CPU : Pentium or Higher.
Monitor: Any monitor which is capable of displaying the signals
sent by the computer.
Keyboard: A standard QWERTY keyboard for data entering.
Mouse: Any standard mouse.
Printer: Any printer it could be Laser printer, Inkjet Printer or even
a Dot- matrix printer will work fine for the software.
Operating system: UNIX, Linux, Mac, Windows etc...
2.3.1.4Communication Interface
Web Browsers:Google chrome,Internet Explorer (7, 8), Mozilla
Firefox, Opera, etc.
LAN Connection
3.1 Introduction
3.1.1 System Analysis
The system analysis approach emphasizes a closer look on all parts of the
system. The analyst must consider all the system elements, their input, output, control,
feedback and the environment when the system is being constructed.
course, subject,
registration,examination questions
Online
Students Examination Users
hall ticket, result System
result, report
certificate
Exam
information system. A data flow diagram can also be used for the visualization of the data
processing. It is common practice for a designer to draw a context level DFD. It shows the
interaction between the system and the outside entities. This context level DFD, is then
1.0
Login
name, password
2.0
questions
Upload Questions Questions
Record answer
5.0 Results
Attend Exam
answer
6.0
Calculate Results totalmarks Certificate
DFD Level-2 for Admin
course details
Admin
Course
subject
details
2.2
Adding
Examiner Subjects courseid,course
name
Subjects
subjectname,
passmarks
questions,option.
answer 2.3
Adding Question
and Answers
subjectcode,subjectname,
questions,option.
answer
2.4
Adding correct Questions
Answer
Result
DFD Level-2 for Admin
regno,name,password,coursename
Admin
regno
3.2
Verify
login information Registration registration
details
Student Student
authenticate id
student details
Examiner
4.1 regno,name
Assigning Students
Students
Subject
subject code
schedules 4.3 studentid
Schedule Exam
regno,subjectcode,datetime
Exam
4.4
Student
Generate Hall ticket
DFD Level-2 for Student
DFD Level-2 for User
Upload Questions
Here examiner will add questions, options and Correct answer option to
the particular subjects.in order to upload questions Administrator has to add
course and Subjects .
Inputs: course details, subject detail, question options, answer.
Output: question adds to the database.
Scheduling Exam
Here administrator adds student details and it schedules Date and time for
examination. The system generate hall tickets for the students.
Inputs: student details.
Output: hall ticket will be generated.
Attend Exam
Here Student can attend the Exam.
Inputs: subject name.
Output: after attending exam result will be displayed.
Calculate Result
Here users evaluate the answers to provide certificates to the student.
Inputs :
Output: Student can collect the certificate.
DATABASE
DESIGN
4. DATABASE DESIGN
4.1 Introduction
4.1.1 Database
A Database is collection of related data, which can be of any size and
complexity. By using the concept of Database, we can easily store and retrieve the data.
The major purpose of a database is to provide the information, which utilizes it with the
information’s that the system needs according to its own requirements.
TABLE RELATION
4.3 Entity-Relationship Diagram
An entity-relationship (ER) diagram is a specialized graphic that illustrates the
relationships between entities in a database. ER diagrams often use symbols to represent
three different types of information. Boxes are commonly used to represent entities.
Diamonds are normally used to represent relationships and ovals are used to represent
attributes.
Notation
dob
description regno
address
1 N
Course Belongs to Student
status
status contctno
1
1
N
Assignes
Has Attend
confirm
status password subjectcode courseid status examid
N N subjectname M
password
status
Save:
This module is used to SAVE any particular record into our database.
New:
This module is used to create NEW record into our database.
Delete:
This module is used to DELETE particular record from database.
Edit:
We can EDIT any selected record for our convenience.
Clear:
This module is used to CLEAR the fields of any particular record.
Update :
This module is used to make the changes and save the changes of
any particular into our database.
Close:
Every form contains this module. This module is used to CLOSE
the any opened form in the screen.
Print:
This module is used to PRINT the required details in a particular
format.
Student profile
Time table
Hall ticket
Student result
Certificate
Student Page
Examiner Page
Assign subjects
Add questions & answers (options)
Administration Page
Student registration
Student exam fee & registration
Student Generate
Issue Hall Tickets
Registration Certificates
Purpose: This page provides link to login page & user. Examiner, Admin
Subordinates:
Administrator Login
Examiner Login
Student Login
Dependencies: None
Function: This page provides the facility for to read student details and
they can write the online exam. The result can be displayed.
Input: In this page they should select answer among multiple choices.
Subordinates:
Write exam
View Result
Output: The result can be displayed for submitted answer paper.
Function: this page provide the facility for tick the answer for multiple choice
question.
Subordinates: None
Output: This page displays the result for the answer paper.
Function: Using this component the result can be displayed after submitting
Subordinates: None
Subordinates:
Student Detail
Examiner Detail
Create Exam
Print Result
Function: This page provides the facility for store the details of the student
and used to view the student details which we are entered in which they are
Input: We should enter the details like user name, password etc.
Subordinates: None
Function: This module provides the facility for enter the information into
the student details and administrator details table and creation of the
Subordinates: None.
exam.
Function: This page provides the facility for creation of question paper
that includes question with multiple choices the answer will also added
Input:We should enter the different question & multiple choices &
Subordinates: None.
Output: The created question paper can displayed for write the exam.
Function: The page can be used to view the result after submitting the
answer paper.
Subordinates: None.
6. CODING
6.1 Introduction
All the software engineering steps have been discussed so far are directed to words
are final objective of translating the module into the software form that could be
understood by the computer. Coding is an important aspect in system development and
proper care has been taken to ensure that the application is efficient and suits the
requirement specified. Coding id viewed as natural consequences of design.
Development guidelines
The coding is done with following characteristics in mind. They are:
Code efficiency
Response time
Maintainability
Security
Simple ease to understand code
Ease of design code translation.
index.php:
CODE FOR LOGIN
<?php
$dt = date("Y-m-d h:i:s");
if(isset($_POST[submitstudent]))
{
$sqlstudent ="SELECT * FROM students WHERE
regno='$_POST[studentusername]' AND password='$_POST[studentpassword]'";
$stquery = mysqli_query($con,$sqlstudent);
if(mysqli_num_rows($stquery) == 1)
{
$sqlupd = "UPDATE students SET lastlogin='$dt' WHERE
regno='$_POST[studentusername]'";
mysqli_query($con,$sqlupd);
$_SESSION[regno] = $_POST[studentusername];
header("Location: myaccount.php");
}
else
{
$errmsg1 = "<br><b><font color='red'>Failed to login.</font></b>";
}
}
if(isset($_POST[submitteacher]))
{
$sqlteacher ="SELECT * FROM users WHERE
username='$_POST[teacherusername]' AND password='$_POST[teacherpassword]' AND
usertype='Examiner'";
$tequery =mysqli_query($con,$sqlteacher);
if(mysqli_num_rows($tequery) == 1)
{
$rs = mysqli_fetch_array($tequery);
if(mysqli_num_rows($adquery) == 1)
{
$rs = mysqli_fetch_array($adquery);
?>
student.php
CODES FOR INSERTING RECORDS TO THE TABLE
$sql="INSERT INTO students (regno,password, name, dob, address, contactnumber,
createdat, courseid, status) VALUES ('$_POST[regno]', '$_POST[npassword]',
'$_POST[name]', '$_POST[dateofbirth]', '$_POST[address]', '$_POST[contactnumber]',
'$text', '$_POST[course]', '$_POST[status]')";
if(!mysqli_query($con,$sql))
{
die('Error: ' . mysqli_error($con));
}
else
{
$res = "One record is added";
$resi = 1;
}
}
}
}
Student.php:
CODES FOR UPDATING RECORDS TO THE TABLE
$sql="UPDATE students SET password='$_POST[npassword]', name='$_POST[name]',
dob='$_POST[dateofbirth]', address='$_POST[address]',
contactnumber='$_POST[contactnumber]', courseid='$_POST[course]',
status='$_POST[status]', createdat='$text' WHERE regno='$regno'";
if (!mysqli_query($con,$sql))
{
die('Error: ' . mysqli_error($con));
}
else
{
$res = "<font color='green'>1 record updated</font>";
$resi=1;
}
Student.php:
CODES FOR DELETING RECORDS TO THE TABLE
$sqldel ="DELETE FROM students where regno='$_GET[delid]'";
$seldelresult = mysqli_query($con,$sqldel);
if(mysqli_affected_rows($con) == 1)
{
$delresult = "<font color='green'><strong>Record deleted
successfully..</strong></font>";
TESTING
7. Testing
7.1 Introduction
Testing is the major quality control measure used during software development. It
is a basic function to detect errors in the software. During the requirement analysis and
design the output of the document that is usually textual and non-executable after the
coding phase the computer programs are available that can be executed for testing purpose.
This implies that testing not only has to uncover errors introduce during the previous phase.
The goal of testing is to uncover requirement, design, coding errors in the program.
Execute all loops at their boundaries and within their operational bounds.
Examiner
Serial No. Condition Expected Result Result
To be Tested
Administrator
Serial No. Condition Expected Result Result
To be Tested
“ name ”
2 When admin does not enter Should display error message PASS
any values and clicks ‘submit’ “please enter the course name”
3 When the admin does not Should display error message PASS
enter the description and
“please enter the description”
clicks’submit’
4 When the admin does not Should display error message PASS
select the status and “please select status”
clicks’submit’
6 When the admin enters all the Should display message “one PASS
fields and clicks “Submit” record added ”
2 When admin does not enter Should display error message PASS
any values and clicks ‘submit’ “please enter the subject name”
3 When the admin does not Should display error message PASS
select the course and
“please select the course”
clicks’submit’
4 When the admin does not Should display error message PASS
enter the rules and “please enter the rules”
clicks’submit’
5 When the admin does not Should display error message PASS
enter the total marks and
“please enter total marks”
clicks’submit’
6 When the admin does not Should display error message PASS
enter the passmarks and
“please enter passmarks”
clicks’submit’
7 When the admin does not Should display error message PASS
select the status and “please select status”
clicks’submit’
“ name ”
10 When the admin enters all the Should display message “one PASS
fields and clicks “Submit” record is added ”
2 When admin does not enter Should display error message PASS
any values and clicks ‘submit’ “please enter the course”
3 When the admin does not Should display error message PASS
enter the subject and clicks
“please enter the subject”.
’submit’
4 When the admin does not Should display error message PASS
enter the question and clicks “please enter the question”
’submit’
5 When the admin does not Should display error message PASS
enter option A and clicks
“please enter option A”
’submit’
6 When the admin does not Should display error message PASS
enter option B and clicks
“please enter option B”
’submit’
7 When the admin does not Should display error message PASS
enter option C and clicks
“please enter option C”
’submit’
8 When the admin does not Should display error message PASS
enter option D and clicks
“please enter option D”
’submit’
9 When the admin does not Should display error message PASS
enter the answer and clicks
“please enter answer”
’submit’
10 When the admin does not Should display error message PASS
select the status and clicks “please select status”
’submit’
12 When the admin enters all the Should display message “one PASS
fields and clicks “Submit” record is added ”
“ name ”
3 When the admin does not Should display error message PASS
select the subjects and
“please select the subject”
clicks’submit’
4 When the admin does not Should display error message PASS
select the date and “please select the date”
clicks’submit’
5 When the admin does not Should display error message PASS
select the time and
“please select the time”
clicks’submit’
6 When the admin does not Should display error message PASS
select the status and “please select status”
clicks’submit’
“ name ”
10 When the admin enters all Should display message “one PASS
the fields and clicks record is added ”
“Submit”
2. When the student does not Should display error message PASS
enter any fields and clicks “please enter the registration
“change password”. number”.
4. When the student does not Should display error message PASS
enter confirm password “please enter confirm
and clicks “change password”.
password”..
9. Screen Shots
Administrator Page
This is the main page which displays when the admin login is successful. Here admin
can perform various operations
Examiner Page
This is the Examiner page which displays when the Examiner login is successful.
Here Examiner can perform various operations.
Student Account Page
This is the Student Account page which displays when the student login is successful.
Here Student can perform various operations.
Users
Here admin can add new user name and their information by clicking the “Submit” button,
the selected user will be added in the database.
Here admin does not enter any field and clicks “submit” it should display “please enter the
name”
Here admin enter numbers instead of letters in the field “name” and clicks “submit” it
should display “please enter valid character”
Here admin does not select course and clicks “submit” it should display “please
select the course”
Here admin does not enter designation and clicks “submit” it should display “please enter
designation”
Here admin does not select username and clicks “submit” it should display “please select
username”
Here admin does not enter user type and clicks “submit” it should display “please enter
user type”
Here admin does not enter password and clicks “submit” it should display “please enter
password”
Here admin does not enter confirm password and clicks “submit” it should display “please
enter confirm password”
When admin does not enter valid password and clicks “submit” it should display
“password and confirm password not matching”
In this page the Admin can add user by clicking the “submit” button. On clicking submit
button the user record will be added to the database.
In this page when admin can add all the fields of user and clicks “submit button” the record
will be added. And these fields will be stored in the table.
VIEW USERS
In this page the Admin can add student by clicking the “submit” button. On clicking submit
button the student record will be added to the database.
View Student
In this form the Admin can add new course by clicking the “submit” button. On
clicking submit button the course record added to the database.
View Course
In this page admin can view the entire new course which stores in the database.
Subjects
In this page the Admin can add subjects by clicking the “submit” button. On clicking
submit button the subject’s record will be added to the database
View Subjects
Exam
In this page the Examiner can add exam details by clicking the “submit” button. On
clicking submit button the exam record will be added to the database.
View Exam
Questions
In this page the examiner can add different questions by clicking the “submit”
button. On clicking submit button the questions record will be added to the database.
View Questions
In this page admin can views the questions, Options and correct answer.
Attend Exam
In this page student can attend the exam by clicking the “click here” option.
In this page student can answer the exam. after finishing exam as to click finish exam
button.
Examination Result
In this page after pressing the button the exam result will be displayed.
In this page the exam certificate will be generated it contains result of the student.
CONCLUSION
9. Conclusion
Web sites:
www.w3schools.com
www.php.net