0% found this document useful (0 votes)
436 views80 pages

CHAPTER1-4 Last To Last

This document describes an online examination system project for Jigjiga University. The system aims to address problems with the existing manual examination process such as wasted time and resources in preparing, distributing and grading exams. It allows instructors to create exams online, students to take exams remotely, and results to be stored securely in a database. The project report will cover system modeling including class diagrams, deployment architecture, data storage, user interfaces and testing to ensure correct system functionality.

Uploaded by

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

CHAPTER1-4 Last To Last

This document describes an online examination system project for Jigjiga University. The system aims to address problems with the existing manual examination process such as wasted time and resources in preparing, distributing and grading exams. It allows instructors to create exams online, students to take exams remotely, and results to be stored securely in a database. The project report will cover system modeling including class diagrams, deployment architecture, data storage, user interfaces and testing to ensure correct system functionality.

Uploaded by

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

JIGJIGA UNIVERSITY

INSTITUTE OF TECHNOLOGY

DEPATRMENT OF COMPUTER SCIENCE

PROJECT ON

ONLINE EXAMINATION SYSTEM FOR JIGJIGA UNIVERSITY

INPARTIAL FULFILLIMENT OF THE REQUIREMENTS FOR THE DEGREE


OF BACHEDULAR SCIENCE

IN

COMPUTER SCIENCE

SUBMITTED BY

1. SHAFI FARAH SIRAD…………………..R/5265/10


2. FARDOSA MOHAMED IBRAHIM……..R/4697/10
3. ABDIFATAH DEK ABDULLAHI…........R/0093/10
4. RAHMA KASIM AHMED………………R/5248/10
5. AHMED ABADIR JEBRIL………………R/4049/10

ADVISOR:-FEKADU MEKONNEN

SIGNATURE______________________
July 2021
JIGJIGA UNIVERSITY

ETHIOPIA
ONLINE EXAMINATION SYSTEM

ACKNOWLEDGMENT

First of all we would like to give a great thanks to the Almighty Allah who helped us in all. We

take this opportunity to express our sincere thanks to our Advisor Mr. Fekadu Mekonnen
for his best guidance and support through his suggestions and ideas throughout our project and
correcting various documents error of our project with attention and care.
Finally, we would like extend special thanks to our parents for their unwavering confidence,
encouragement and emotional support which was instrumental to the successful completion of
our bachelor degree coursework and for our classmates for their great help and keeping us some
suggestions based on the projects and others.

I
ONLINE EXAMINATION SYSTEM

Abstract
Jigjiga University Online Examination System is a system that enables the university to reduce
many problems faced in examination system. This project realizes the problems in existing
system and tries to give solution to these problems of the University.

Problems found in the existing system can be considered in four corners. First, instructor’s time
and labor is wasted while preparing the examination and correcting it. It is also boring to do so.
But, the JJUOES makes examination giving process very fast, simple and clear that all
instructors can use it with their own user account. Second, student’s result may be lost,
examination paper may not be evaluated correctly, and student can forget to write his /her name
on examination paper. The JJUOES system solves these problems of students by giving access to
the system that is clear and user friendly. The data is also stored permanently to the database of
the system and can be accessed at needed time. Third, the duplicate office workers waste their
time and labor while duplicating examination paper and ordering it. Some pages may also be
missed. In the JJUOES system there is no need of duplicate office. Thus, it reduces the resources
wastage. Fourth, the examination committee also loses his/her time while checking examination
question manually, but in this system he/she can do his/her work without boring. Generally, the
university will be happy to the system because, those problems will be solved by the system.
Thus, examination system will be done in fast, effective and secured manner.

In this phase two of the project we are going to describe class modeling with design and
description of the class diagram, deployment diagram which shows architecture of the system
(in our case it is client-server), persistence modeling which contain permanent data like user
logs, examination, result and the like, state chart which shows the state of the system as
processed by user, and user interface diagram of the system.

We will also describe the implementation and testing of the JJUOES system. While testing the
accessibility, feasibility and correctness of the system will be checked. The wrong or
unauthorized access must be violated by the system and required service must be gain from it.
This is will be supported by message dialogs that user can understand and use it properly.
Generally, this phase shows real work of the system.

II
ONLINE EXAMINATION SYSTEM

List of Acronyms
CD Compact Disk

GB Giga Byte

GHZ Giga Hertz

HTML Hypertext Markup Language

HW Hardware

MB Mega Byte

OES Online Examination System

PHP Hypertext Preprocessor

SW Software

UI User Interface

III
ONLINE EXAMINATION SYSTEM

Contents
ACKNOWLEDGMENT..............................................................................................................................I
Abstract.......................................................................................................................................................II
List of Acronyms........................................................................................................................................III
List of Tables............................................................................................................................................VII
List of Figures..........................................................................................................................................VIII
CHAPTER ONE..........................................................................................................................................1
1. Introduction.........................................................................................................................................1
1.1 Background..................................................................................................................................2
1.2 Statement of the Problem...................................................................................................................2
1.3 Objective of the Project...............................................................................................................3
1.3.1 General Objective.......................................................................................................................3
1.3.2 Specific Objectives.....................................................................................................................3
1.4 Scope of the Project...........................................................................................................................4
1.5 Limitation of the Project..............................................................................................................4
1.6 Methodology of the Project.........................................................................................................5
1.6.1 Data Collection Methods.....................................................................................................5
1.6.2 Analysis and Design............................................................................................................5
1.6.3 Development Tools..............................................................................................................6
1.7 Significance of the Project...........................................................................................................6
1.8 Operating Environment................................................................................................................7
1.8.1 Hardware Requirements.......................................................................................................7
1.8.2 Software Requirements........................................................................................................7
1.9 Document Organization...............................................................................................................8
CHAPTER TWO.........................................................................................................................................9
2 Description of the Existing Systems................................................................................................9
2.1 Introduction.......................................................................................................................................9
2.2 The Main Activities...........................................................................................................................9
2.3 Function of Existing System............................................................................................................10
2.4 Alternative Solution.........................................................................................................................10
CHAPTER THREE...................................................................................................................................11
3 Requirement Specification and Analysis...........................................................................................11

IV
ONLINE EXAMINATION SYSTEM

3.1 Introduction.....................................................................................................................................11
3.1.1 The Proposed System................................................................................................................11
3.1.2 Intended Audience and Reading Suggestion.............................................................................12
3.1.3 Document Conventions.............................................................................................................12
3.2 Objective.........................................................................................................................................13
3.3 Functional Requirement...................................................................................................................13
3.4 Non- Functional Requirement..........................................................................................................14
3.5 System Use Case.......................................................................................................................15
3.5.1 Use Case Models...............................................................................................................15
3.1.1 Activity Diagram...............................................................................................................28
3.1.2 Sequence Diagram.............................................................................................................32
3.5.4 Analysis Class Diagram............................................................................................................37
CHAPTER FOUR.....................................................................................................................................39
4.1 Design Goal...............................................................................................................................39
4.2 Architectural Design..................................................................................................................39
4.2.1 Deployment Modeling.......................................................................................................40
4.2.2 Persistence Data Management...........................................................................................41
4.3 User Interface Design......................................................................................................................43
CHAPTER FIVE.......................................................................................................................................44
5. Implementation and Testing..................................................................................................................44
5.1 Introduction.....................................................................................................................................44
5.2 Algorithm Design and Coding.........................................................................................................44
5.2.1 Algorithm Design.....................................................................................................................44
5.2.2 Coding......................................................................................................................................45
5.3 Testing.............................................................................................................................................55
5.3.1 Units Testing.............................................................................................................................55
5.3.2 Integration Testing....................................................................................................................56
5.3.3 System Testing.........................................................................................................................56
5.3.4 Acceptance Testing...................................................................................................................56
5.4 Hardware and Software Requirements.............................................................................................56
5.4.1 Hardware Requirements...........................................................................................................57
5.4.2 Software Requirements.............................................................................................................57

V
ONLINE EXAMINATION SYSTEM

5.5 User’s Manual Preparation..............................................................................................................57


5.6 User Training...................................................................................................................................62
5.7 Installation.......................................................................................................................................62
Chapter Six................................................................................................................................................64
6. Conclusion and Recommendation.........................................................................................................64
6.1 Conclusion.......................................................................................................................................64
6.2 Recommendation.............................................................................................................................65
6.3 Future Enhancement........................................................................................................................65
References.................................................................................................................................................66
Appendix...................................................................................................................................................67

VI
ONLINE EXAMINATION SYSTEM

List of Tables
Table3. 1: The scenario or use case description of the Manage Account use case.......................17
Table3. 2 : The scenario or use case description of the Manage Institute use case.......................18
Table3. 3: The scenario or use case description of the Manage Department use case..................19
Table3. 4: The scenario or use case description of the Manage Course use case..........................20
Table3. 5: The scenario or use case description of the Manage User use case.............................21
Table3. 6: The scenario or use case description of the exam approval use case...........................22
Table3. 7 : The scenario or use case description of the Login use case........................................23
Table3. 8: The scenario or use case description of the Read Question use case..........................24
Table3. 9: The scenario or use case description of the View Result use case..............................25
Table3. 10: The scenario or use case description of the Submit questions use case.....................26
Table3. 11: The scenario or use case description of the Change Pass use case.............................27

Table 4. 1 Attribute Administrator................................................................................................41


Table 4. 2 Attribute User...............................................................................................................42

VII
ONLINE EXAMINATION SYSTEM

List of Figures

Figure 3. 1: Use Case OES (Scenario)...........................................................................................16


Figure 3. 2: Activity diagram that shows activities of the administrator.......................................28
Figure 3. 3: Activity diagram that shows activities of the Instructor............................................29
Figure 3. 4: Activity diagram that shows activities of the Student................................................30
Figure 3. 5: Activity diagram that shows activities of the Examination Committee....................31
Figure 3. 6: The sequence diagram of login in the system............................................................32
Figure 3. 7: The sequence diagram of Manage Account in the system.........................................33
Figure 3. 8: The sequence diagram of Manage Institute in the system.........................................33
Figure 3. 9: The sequence diagram of Manage Department in the system....................................34
Figure 3. 10: The sequence diagram of Manage User in the system.............................................34
Figure 3. 11: The sequence diagram of Manage Course in the system.........................................35
Figure 3. 12: The sequence diagram of Mange Question and Check Question in the system......35
Figure 3. 13: The sequence diagram of Take Examination in the system.....................................36
Figure 3. 14: The sequence diagram of view Result in the system...............................................36
Figure 3. 15: Analysis Class Diagram...........................................................................................38

Figure 4. 1: Component of the system...........................................................................................39


Figure 4. 2: Deployment diagram of system.................................................................................40
Figure 4. 3: User interface.............................................................................................................43

Figure 5. 1 Home Page of the System...........................................................................................57


Figure 5. 2 Home Page for admin of the System...........................................................................58
Figure 5. 3 Faculty Management Page of the System...................................................................58
Figure 5. 4 Department Management Page of the System............................................................59

VIII
ONLINE EXAMINATION SYSTEM

Figure 5. 5 Schedule adding page of the system...........................................................................59


Figure 5. 6 Exam adding page of the system.................................................................................60
Figure 5. 7 Login to the System Testing (Null value)...................................................................60
Figure 5. 8 Login to the System Testing (Incorrect user name or password)................................60
Figure 5. 9 Error message when to be entered to the system is not filled.....................................61
Figure 5. 10 Success message for user adding deleting and updating done correctly...................61
Figure 5. 11 Error message when required data is missed............................................................62
Figure 5. 12 success message while managing faculty, department and course...........................62

IX
ONLINE EXAMINATION SYSTEM

CHAPTER ONE

1. Introduction
On-line examination contents providers to focus on creating effective assessment questions and
focusing on examination’s feedback delivery to students. In the paper we present techniques that
are pertinent to the elements of assessment process: answers submission, computerized grading,
and feedback after submission.

As the modern organizations are automated and computers are working as per the instructions, it
becomes essential for the coordination of human beings, commodity and computers in a modern
organization.

The administrators, instructor, Students who are attending for online examination can
communicate with the system through this projects, thus facilitating effective implementation
and monitoring of various activities of Online Examination like conducting Examinations as per
scheduled basis and delivering result to that particular use or student. And the details of students
who attempted Online Examination are maintained at administrator.

The system also helpful for conducting different examination question which can be conducted
regularly. It can also be used for provide immediate results and save precious time of to check
student’s copy and prepare mark sheets, so it is very important for that graduates students to
handle the web based examination system and evaluate their results online. But the purpose The
examination is to facilitate the effort of student to revise the core of learning outcome of the
course covered also make ensure the student to be competent and monitor the level of
achievement in learning outcomes of course.so the system solve the problem which are occur
during examination time taken through manual system. Therefore the document describes all
features and procedures to develop online examination system for Ethiopia higher education
institute. Because of it is very useful for any Institute or Department to test their students
continuously for their mutual development and know about their progress. The system allows
examination agency to create their own examination on online.

1
ONLINE EXAMINATION SYSTEM

1.1 Background
Jigjiga University is one of the public higher institutions that was founded in March 2007, along
with the Second-Generation universities in Ethiopia. It is located in the emerging town of Jigjiga
the capital city of Ethiopian Somali regional state, 635 kilometers away from Addis Ababa. The
University officially started its service with 712 students, 66 and 99 administrative in three
faculties in 2007.
In the recent years, the intake capacity is increasing from year to year. So currently, it has a total
of 21,554 students studying in 57 various academic programs and 627 post-graduate students
pursuing in six academic programs. These programs are operating under eight Colleges, three
Schools and an Institute.

To this effect, the university has shown much achievement in education, research and
community service. Last year only, 1888 students are graduated from different discipline that are
capable of playing a great role in the development of the country.

In it is aim is conducting demand driven research and communicating relevant research output
which are problem solving and result oriented. Most of these research focus in pastoral and agro-
pastoral studies. The research output communication is one strategic objective that focuses on
adoption and adaptation of locally relevant technology and its transferring and assessing the
community awareness on cross cutting issues. It is also engaging in publicizing different research
and related works to the internal and external customers and stakeholders through various means,
like media, seminars, symposium and intellectual forums.

1.2 Statement of the Problem


Jigjiga University, as a higher education institute performs examination process that instructors
give the examination papers to students manually. As a starting point for problem definition, we
tried to see how the examination process will involve in the University. We have also tried to get
some information by having a short discussion with heads of the departments, instructors and
other staffs as well as students.

2
ONLINE EXAMINATION SYSTEM

We recognized that there are many problems in terms of examination giving process with
required quality in the university. Generally, we have noticed the following problems.

 There is high cost to buy copy machines, printers, papers for hard copy as well as
payment for duplicators and invigilators.
 There is accuracy problem in correct examination papers
 High human power wastage.
 Wastage of time to print and to wait for copying in duplicate office.
 It is wastage of time for instructors while correcting examination papers and giving
result back.
 Some pages of examination paper may be jumped by error while duplicating.
 The result of students may be lost.
 Even candidates or students may lose where and when the examination is
performed.

 Time consuming to show the result

 The exam may be stolen during posted to examination place.

These problems will be solved by Online Examination System (OES) for Jigjiga University
project by changing manual examination giving process into intranet based or online
examination system.

1.3 Objective of the Project


1.3.1 General Objective
The general objectives of this project is to develop and implement a web-based examination
system for Jigjiga University .That is to develop and provide a full intranet application, then can
be accessed by students as well as by instructors. It helps to use time and other resources
effectively and efficiently on examination giving process.

1.3.2 Specific Objectives


The specific objectives of Online Examination System for Jigjiga University project is:

 To make the examination process time and cost effective and efficient.

3
ONLINE EXAMINATION SYSTEM

 Time minimizing
 Cost (resource) minimizing
 To enable student to use their time properly while taking examination (timer will start
automatically and show the student how much time is left).
 To enable the students to get examination result from the system as soon as they finish
examination.
 To provide an interface through which student can appear for examination online.
 To enable instructor save their time while correcting examination paper.
 To increase security of the examination system through authentication.

1.4 Scope of the Project


The scopes of the project are the following:

 OES (Online Examination System) will be developed for Jigjiga University.


 The system handles all the operations, and generates reports as soon as
the test is finish, that includes name, mark, time spent to solve the
examination.
 It can be used to solve many problems occurred in the university on examination
giving process.
 It can enable instructors to easily prepare examination papers and see the result
of students.
 It enables students to take examination properly and get fair correction and
result.

1.5 Limitation of the Project

The Limitations of the proposed systems are the following:

 Only multiple choice, matching and true/false type of questions are automated,
subjective questions are checked manually.
 If the time is finished student cannot read the questions again and the answer is
automatically submitted and the result is displayed with the correct answer.

4
ONLINE EXAMINATION SYSTEM

1.6 Methodology of the Project

Starting from proposed system we gathered information and data through different mechanisms.

1.6.1 Data Collection Methods

Different fact finding techniques or approaches were used to gather information about the current
system. It is the fundamental activity for the development of the system. Without them data
modeling cannot be constructed. In order to know how the existing system work and what
problem are there we have been using the following fact-finding techniques.
 Observation: Observation is one of the most important methodologies to gathering
information by physical going to the place and looks how the current system works. It
can be very difficult for humans to explain what they do or to even describe accurately
how they achieve a task, so observation very crucial to gathering information.

 Interview: Interview is another important methodology to gathering information by


asking someone a set of questions. It helps us to get critical and important information
about the overall view of the current system.

1.6.2 Analysis and Design


The goal of this section is to provide the basic overview of the system that we are going to
develop. The system analysis and design approaches for this project we used the object oriented
system analysis & design. Because
 It provides code and function reuse through the concepts of inheritance, polymorphism,
encapsulation, modularity, coupling and cohesion.

 To design the system the project team has choose Object Oriented Modeling techniques
and Unified modeling language tools.

 Understanding of the structure is easy because object oriented modeling and tools used to
represent real world entities.

5
ONLINE EXAMINATION SYSTEM

 It enables us to comprehensively model a system before we develop it.

 Modification of the object implementation is easy because objects are loosely coupled.

1.6.3 Development Tools

We will use the following programming tools:

o PHP to develop user interface prototypes (front end).


o My SQL to make the back end (database part)
o Edraw max :- To Design UML diagrams
o Microsoft Office 2016 for writing documentation

1.7 Significance of the Project

Developing this project has much significance for the university or institutes and the students
which are take online examination. The system is centralized administrator controls and saves
the efforts and time of both the university and the students.
For university:
 Reduce economy spend for buying papers and printers.

 Reduce Time consumption

 Reduce man power like examiner, supervisor and other that participate in
examination

 Avoid document missing about candidate information.

 Avoid tiredness to analysis the student result, because the student file will
stored in the database instead of cabinet so, it is easy to search student file
from database.

 It ensuring the availability of documents in their proper place in the


database.
For students:

6
ONLINE EXAMINATION SYSTEM

 Making students aware about the examination because student can see all
information about examination detail from the system.

 View their examination result online immediately without came to the


Department or class room.

 It reduces time consumption when we see the results and economy


wastage like pen and paper.

 Generally the system Create suitable condition for candidates (students)


to view their result online and detail information

1.8 Operating Environment


1.8.1 Hardware Requirements

 One server computer with :-


 4GB of RAM or more.
 2.97GHZ of Intel Pentium processor speed
 about 500GB hard disk size
 Category 5 UTP cable.
 Flash disc 4-32 GB
 Compactable CD-ROM 700 MB
 External hard disc 1000 GB

1.8.2 Software Requirements

 Microsoft word 2016-for writing documentation sections.

 Xampp server: to provide MySQL for creating and manipulating databases and PHP
to design user interface from the front end of software. That is develop code
 Windows 10: - this operating system is installed on the client computers enable to
join the domain of the network.
 My SQL: - on which the records and all other data stored on.
 Edraw max :- To Design UML diagrams
 Notepad ++ to edit PHP codes.
7
ONLINE EXAMINATION SYSTEM

1.9 Document Organization

This project paper is divided into four chapters or phases. The first phase covers the introduction,
which contains background, statement of problem, objective of the project, scope, and
methodology and significant of the project operating environment.

The second phase covers the system features which contain existing system description, the main
activity, functions of existing systems and alternative solution.

The third phase requirement specification and analysis, functional requirement, and
nonfunctional requirement, systems use case include Use case models, activity diagram,
sequence diagram, and analysis diagram.

The fourth phase design goal which include architectural diagram deployment diagram, and user
interface design.

8
ONLINE EXAMINATION SYSTEM

CHAPTER TWO
2 Description of the Existing Systems

The whole process of assigning examination and evaluating scores of students after the
examination, in the University was done manually till date. Processing the examination paper i.e.
checking and distributing respective scores is used, and it is time consuming and loose of effort.

2.1 Introduction

The major practices of examination process in the University are the following.

The instructor prepares the examination and brings to the Examination Committee of the
department. The Examination Committee then checks the examination and approved it. The
approved examination will be printed and taken to the dean of college or institute for sign. Then
the examination paper will be taken to duplicate office.

The duplicator then duplicates the examination paper with ordered number of copies and keeps
there until 30 minutes left for examination time. The instructor takes the examination paper and
gives to the assigned invigilator(s).

The invigilator distributes examination paper to students in the assigned examination room, and
student does the examination and submits to invigilator. The invigilators then gives the
examination papers back to the instructor. The instructor then corrects the examination paper and
shows the result to student.

2.2 The Main Activities

Online Examination System is a technology-driven way to simplify examination activities like


defining examination patterns with questions, defining examination timer, objective/ subjective
question sections, conducting examinations using the computer or mobile devices in a paperless
manner.

9
ONLINE EXAMINATION SYSTEM

2.3 Function of Existing System

The major function in the existing examination system of the University are instructors, students,
duplicators and examination committees. Their duties are described as follows.

I. Instructor:
 Prepares exam for the student on the course he is giving.
 Submit the exam paper to the Exam Committees.
 Duplicate based on number of students
 Gives the exam paper from the assigned invigilator(s).
 Collect exam paper from invigilator(s) and corrects it.
 Finally, shows the result to students.
II. Student:
 Take the exam in the assigned examination class which is prepared in the hard
copy examination
III. Duplicator:
 Duplicates the exam papers given by instructors.
 Give the duplicated exam papers to respective instructors.
IV. Exam committees:
 Check the exam prepared by respective instructors.
 Then gives back to the respective instructor.

2.4 Alternative Solution

The existing examination system in the University is paper based, time consuming, less flexible.
The chance of loss of records is high and also record searching is difficult.
Maintenance of the system is also very difficult and takes lot of time. Result Processing is slow
due to paper work and requirement of staff. To solve these problems they required a
computerized system, which is used as a core alternative solution to handle all the works. This
alternative solution is the system we are going to develop that will provide a working
environment that will be flexible and will provide ease of work and will reduce the time for
report generation and other paper works.

10
ONLINE EXAMINATION SYSTEM

CHAPTER THREE

3 Requirement Specification and Analysis


3.1 Introduction

A System Requirements Specification also known as a Software Requirements Specification .it


is a document or set of documentation that describes the features and behavior of a system or
software application. A Requirement is any function, constraint, or property that the system must
provide, meet, or satisfy in order to fulfill its purpose. So we need to identify and understands the
problem of the existing system to develop the new system.

System Requirements Analysis gives the professional systems engineer the tools to set up a
proper and effective analysis of the resources, schedules and parts needed to successfully
undertake and complete any large, complex project.

3.1.1 The Proposed System

The Online Examination System (OES) automates each and every activity of the manual
system and increases its throughput. It is created for taking online examination that has the
following features.

 In comparison to the present system, the response time of the system is very
less and it works very fast.
 Result will be very precise and accurate and will be declared in very short
span of time because calculation and evaluations are done by the system itself.
 The proposed system is very secure since all users inter to the system by their
user accounts.
 The logs of appeared students and their marks are stored and can be for
backup for future use.
 The proposed system will reduce cost of examination process.

11
ONLINE EXAMINATION SYSTEM

 It saves the instructors from time wasting while correcting examination papers
and they can get the results of their students from the system immediately.
 It can generate various reports when and where required.

In this system we used waterfall model to apply these ideas, which help us to separate each step
and when we finish a one phase the output of it is the input to the next phase.

3.1.2 Intended Audience and Reading Suggestion

The online examination system is specifically implemented to target certain people which
include students, developers, the testers, project managers, documentation writers, and the
marketing staff. The bigger part of this entire document gives a general analysis and description
of the systems general entities such as system features, External Interface Requirements,
Functional and Non Functional Requirements.

3.1.3 Document Conventions

Documentation conventions and coding conventions are the most important factors that can
improve communications between developers during object design.

Conventions make programs more understandable by making them easier to read. They can also
give information about the function of the identifier-for examinational, whether it's a constant,
package, or class-which can be helpful in understanding the code.

Document conventions
 Packages: lowercase.
 Classes: Capitalized with Internal words also capitalized
 Private or protected: first Word Lower Case but Internal Words Capitalized
 Static private or protected: first Word Lower Case but Internal Words Capitalized
 Local variables: lower case with underscores
 Methods: lower case with underscores

12
ONLINE EXAMINATION SYSTEM

3.2 Objective

The objective of the Online Examination Tool is to provide better information for the users of
this system for better results for their maintenance in student examination schedule details and
grading details.

3.3 Functional Requirement

The user requirement for this system is to make the system fast, flexible, less prone to error,
reduce expenses and save the time. Using the online examination system the following functional
requirements are performed by each actors of the system.

 Functional Requirements for Administrator


 The system administrator should be able to manage account of users,
colleges/institutes, departments, courses and examinations by logging into the
system.
 The system administrator should be able to create schedule of the
examination.
 The system administrator should be able to correct subjective type of
questions manually.
 Functional Requirements for Instructor
 Instructors should be able to manage questions by logging in to the system by
selecting institute/college, department and courses.
 The instructor should be able to see the result of all students.
 Functional Requirements for Examination Committee
 The Examination committees should be able to check the examination
prepared by instructors and approve the examination.
 The Examination committees should be enabled to select the institute/college,
department and course belonging to.
 Functional Requirements for Student
 Student should be able to take examination and submit answer to the system
by his own user account and password.

13
ONLINE EXAMINATION SYSTEM

 The student should be able to see his/her own result that displayed by system.
 The System should be able to show the schedule of the examination before the
examination time.
 The system should be able to authenticate through login its users (Administrator,
Examination committee, Instructor and Student) by checking their information.
 The system should enable users to change their password.

3.4 Non- Functional Requirement


 Performance

 The system is very fast since it is automated.


 The software shall support use of multiple users at a time.
 It works very well with short response time, high throughput and high
availability with 1seconds.

 Error Handling

 The system must have error handling.


 The system should display error message if the user input invalid
information.

 Security

 Authenticated user with predefined access right will only enter to the information
related to database.
 Every users should use strong passwords especially admin.
 One student cannot see the result of another student.
 HTTP must be secured by adding the security capabilities of SSL/TLS to
standard HTTP communications.
 Using SSL/TLS data flow between client and server will be encrypted.

 Availability
 There is no delay in the availability of any information, whatever needed, can be
captured very quickly and easily.

14
ONLINE EXAMINATION SYSTEM

 The server should be always on to be available 24hrs.

 Maintainability
 Backups for database and other sensitive information are available for recovery if
damage is happen.

 Second server should be used if one server failed

 Accessibility
 The system provides access right control for each of its user and every user can
access the data which belong to them.

 Accuracy
 The Online Examination System provides the uses a quick response with very
accurate information regarding the users etc. Any details or system in an
accurate manner, as and when required.

 Response in time
 The system will let the all users (Administrator, Student, and Instructor) to access
the needed information more quickly. That means the response time is 1 seconds

 User-Friendly
 The Online Examination System has a very user-friendly interface. Thus the
users will feel happy since it is easy to work on it. The software provides
accuracy along with a pleasant interface. Make the present manual system
more interactive, speedy and user friendly.

15
ONLINE EXAMINATION SYSTEM

3.5 System Use Case


3.5.1 Use Case Models
Use Case Models represents user requirements gathered during requirement elicitation, contains
use case, actors, system boundary and their relationships. Use Case diagram of our system is
shown as follows with respective description.

16
ONLINE EXAMINATION SYSTEM

Figure 3. 1: Use Case OES (Scenario)

17
ONLINE EXAMINATION SYSTEM

UC Name Manage Account


UC Description Enables System Admin to manage account (create,
change, delete) of the Users of the System.

Actor Administrator
Precondition The users (instructors, students, Examination Committee)
must be the member of the University.

Flow of event The administrator clicks Manage Account button on the


Admin page.
The system displays the Manage Account page.
The administrator chooses the action (create, change,
delete) to be performed.
The system displays the data entry page for respective
action.
The administrator enters the required information of users
of the system. [A1][A2]
The system save account of the Users.[B1]
UCID-01

Post condition The account of the users altered (created, or changed or


deleted)

Alternative course A1: Wrong data Entry Message


of action The system displays “Wrong data Entry!” message.
The system resumes at step 4.
A2: Missing of Required Information Message
The system displays “Enter all information!” massage.
The system resumes at step 4.
B2: Invalid Action Message
The system displays “Invalid Action!” massage.
The system resumes at step 4.

Table3. 1: The scenario or use case description of the Manage Account use case

18
ONLINE EXAMINATION SYSTEM

UC Name Manage Institute

UC Description Enables System Admin to manage institutes/colleges of


the University.

Actor Administrator

Precondition The institutes or colleges must found in the university

Flow of event 1.The administrator clicks Manage Institute button on the


Admin page.
2.The system displays the Manage Institute page.
3.The administrator selects actions (adding, changing and
deleting institutes) to be performed on institutes.
UCID-02

4.The system displays data entry page.


5.The administrator enters the information of
institutes/colleges of the University. [A1][A2]
6.The system the actions performed on institutes or
colleges.
Post condition The institute or college of the system is managed.

Alternative course A1: Wrong data Entry Message


of action
1. The system displays “Wrong data Entry!”
message.
2. The system resumes at step 4.
A2: Invalid action Message

1.The system displays “Invalid Action!” massage.


2.The system resumes at step 4.

Table3. 2 : The scenario or use case description of the Manage Institute use case

19
ONLINE EXAMINATION SYSTEM

UC Name Manage Department

UC Description Enables System Admin to manage departments of each


institutes or colleges in the University.

Actor Administrator

Precondition The department must be registered to respective institutes.

Flow of event 1.The administrator clicks Manage Department button on


the Admin page.
2.The system displays the Manage Department page.
3.The administrator selects actions (adding, changing and
deleting departments) to be performed on departments.
4.The system displays data entry page.
UCID-03

5.The administrator enters the information of departments


of the institute or college. [A1][A2]
6.The system the actions performed on departments.
Post condition The department every institute or college of the system is
managed.

Alternative course A1: Wrong data Entry Message


of action
1. The system displays “Wrong data Entry!”
message.
3. The system resumes at step 4.
A2: Invalid action Message

2.The system displays “Invalid Action!” massage.


The system resumes at step 4.

Table3. 3: The scenario or use case description of the Manage Department use case

20
ONLINE EXAMINATION SYSTEM

UC Name Manage Course

UC Description Enables System Admin to manage courses of each


department in the University.

Actor Administrator

Precondition The course must be registered to respective department.

Flow of event 1. The administrator clicks Manage Course button on the


Admin page.
2. The system displays the Manage Course page.
3. The administrator selects actions (adding, changing and
deleting courses) to be performed on courses.
UCID-04

4. The system displays data entry page.


5. The administrator enters the information of courses of
each department. [A1][A2]
6. The system the actions performed on courses.
Post condition The course of every department is managed.

Alternative course A1: Wrong data Entry Message


of action
1. The system displays “Wrong data Entry!”
message.
2. The system resumes at step 4.
A2: Invalid action Message

1. The system displays “Invalid Action!”


massage.
2. The system resumes at step 4.

Table3. 4: The scenario or use case description of the Manage Course use case

21
ONLINE EXAMINATION SYSTEM

UC Name Manage User

UC Description Enables System Admin to manage user of system

Actor Administrator

Precondition The user must be registered to respective department.

Flow of event 1.The administrator clicks Manage User button on the


Admin page.
2.The system displays the Manage User page.
3.The administrator selects actions (adding, changing and
deleting) to be performed on users.
UCID-05

4.The system displays data entry page.


5.The administrator enters the information of system users.
[A1][A2]
6.The system the actions performed on user.
Post condition The users are managed as per their category.

Alternative course A1: Wrong data Entry Message


of action
7. The system displays “Wrong data Entry!” message.
4. The system resumes at step 4.
A2: Invalid action Message

8.The system displays “Invalid Action!” massage.


The system resumes at step 4.

Table3. 5: The scenario or use case description of the Manage User use case

22
ONLINE EXAMINATION SYSTEM

UC Name Exam approval

UC Description Enables Examination Committee to check the examination


prepared by instructors.

Actor Examination Committee

Precondition The examination must be added to the system by instructor

Flow of event 1.The Examination Committee clicks Check Question button on


the Examination Committee page.
2.The system displays the department and course chooses form
for Examination Committee.
3.The Examination Committee selects the Department, and
UCID-06

course he/she want to check questions for. [A1][A2]


4.The Examination Committee reads the question and approve
it.
5.The system sends the examination to student page.
Post condition The account of the user is deleted; the user cannot enter to the
system or denied to access.

Alternative course A1: Wrong data Entry Message


of action
1. The system displays “Wrong data Entry!” message.
2. The system resumes at step 2.
A2: Invalid action Message

1. The system displays “Question is not added!” massage.


2.The system resumes at step 2.

Table3. 6: The scenario or use case description of the exam approval use case

23
ONLINE EXAMINATION SYSTEM

UC Name Login

UC Description Enables all users of the system to login.

Actor Instructor, student, administrator, examination committee

Precondition The instructor and student out of the system.

Flow of event 1. The user of the system clicks Login button on the home
page.
2. The system displays the Login page.
3. The users their user name and password to enter to the
system. [A1][A2]
4. The system displays access page for the respective
UCID-07

user.
Post condition The user entered to the system and can access the system.

Alternative A1: Information Not Filled Message


course of action
1. The system displays “Please enter your user name and
password!” message.
2. The system resumes at step 2.
A2: Invalid Entry Message

1. The system displays “Incorrect User Name or


Password!” massage.
2. The system resumes at step 2.

Table3. 7 : The scenario or use case description of the Login use case

24
ONLINE EXAMINATION SYSTEM

UC Name Take Examination

UC Description Enables student to do examination.

Actor Student

Precondition Student must be registered for that course and attend the class

Flow of event 1. The student clicks Read Examination button from home page.
2. The system displays the department, year and course choose page for
student.
3. The student chooses the department, year and course that he wants to read
examination. [B 1] [B 2][B3]
4. The system displays the examination page.
5. The student reads the examination questions and selects choose which he/she
realized to be correct answer and clicks Submit Answer button. [B 4]
6. The system closes the examination page and displays the result of the
student.
Post condition The student already taken examination.
UCID-08

Alternative course B1: Invalid Choice Message


of action
1. The system displays, “Incorrect Department choose, please enter the
correct one!” message.
2. The system resumes at step 2.
B2: Choose Message

1. The system displays,” Please choose course you want to do


examination for” message.
2. The system resumes at step 2.
B3: Invalid Choice Message

1. The system displays, “You are not taking this course, please!”
message.
2. The system resumes at step 2.
B4: Time is up Message

1.The system displays, “The time allowed for this examination is


over!” message.
2.The system resumes at step 6.
Table3. 8: The scenario or use case description of the Read Question use case

25
ONLINE EXAMINATION SYSTEM

UC Name View Result

UC Description Enables student to see their own results after they finished the
examination and instructors to see results of all students.

Actor Instructor, Student

Precondition The examination process must be taken place

Flow of event 1.The student or instructor clicks See Result button from home
page.
2.The system displays the department, year and course choose
page for student.
3.The student and instructor choose department, year and
course that he wants to see result. [B 1] [B 2][B3]
4.The system displays the result page for student and
instructor.
UCID-9

5.The student sees his/her own result for that examination.


6.The system closes the result page.
Post condition The result is displayed to the respective user

Alternative course B1: Invalid Choice Message


of action
1. The system displays, “Incorrect Department choose,
please enter the correct one!” message.
2. The system resumes at step 2.
B2: Invalid Choice Message

1.The system displays, “You are not taking this course,


please!” message.
2.The system resumes at step 2.
B3: Examination not Taken Message

1. The system displays,” Examination is no taken you


can’t see result” message.
2. The system resumes at step 2.
Table3. 9: The scenario or use case description of the View Result use case

26
ONLINE EXAMINATION SYSTEM

UC Name Submit questions

UC Enables student to submit his/her answer while


Description he/she is taking the exam

Actor Student

Precondition The student must attend for exam

Flow of event 1. The student reads the question and choose


correct answer and clicks the submit Answer
UCID-10

button[A1]
2. The system checks the answer and record the
result
Post condition The result of the student calculated from the
answer

Alternative A1: Timer Message


course of 1. The system will displays the “The required
action time is ending” message.
2. The system submits the answer as wrong
and calculates the result

Table3. 10: The scenario or use case description of the Submit questions use case

27
ONLINE EXAMINATION SYSTEM

UC Name Change Pass

UC Enables all the users of the system to change


Description their own password

Actor Instructor, student, administrator, examination


committee
UCID-11

Precondition The account of every user must be created first.

Flow of event 1. The user clicks the Change Pass button from
respective page
2. The system displays change password page
3. The user enters the required information and
clicks submit button[B 1] [B 2]
4. The system changes the password of user
Post condition The password is changed; user can enter to the
system only by new password.

Alternative B1: Wrong data Entry Message


course of
1. The system displays “Wrong data
action
Entry!” message.
2. The system resumes at step 2.
Table3. 11: The scenario or use case description of the Change Pass use case

28
ONLINE EXAMINATION SYSTEM

3.1.1 Activity Diagram

Activity diagram used to emphasize the flow of control from activity to activity or to model the
flow of an object as it moves from state at different points in the flow of control.

Figure 3. 2: Activity diagram that shows activities of the administrator

29
ONLINE EXAMINATION SYSTEM

Figure 3. 3: Activity diagram that shows activities of the Instructor

30
ONLINE EXAMINATION SYSTEM

Figure 3. 4: Activity diagram that shows activities of the Student

31
ONLINE EXAMINATION SYSTEM

Figure 3. 5: Activity diagram that shows activities of the Examination Committee

32
ONLINE EXAMINATION SYSTEM

3.1.2 Sequence Diagram

Sequence diagrams show a succession of interactions between classes or object instances over
time. The Sequence diagrams of some classes are given bellow.

Figure 3. 6: The sequence diagram of login in the system

33
ONLINE EXAMINATION SYSTEM

Figure 3. 7: The sequence diagram of Manage Account in the system

Figure 3. 8: The sequence diagram of Manage Institute in the system

34
ONLINE EXAMINATION SYSTEM

Figure 3. 9: The sequence diagram of Manage Department in the system

Figure 3. 10: The sequence diagram of Manage User in the system

35
ONLINE EXAMINATION SYSTEM

Figure 3. 11: The sequence diagram of Manage Course in the system

Figure 3. 12: The sequence diagram of Mange Question and Check Question in the system

36
ONLINE EXAMINATION SYSTEM

Figure 3. 13: The sequence diagram of Take Examination in the system

Figure 3. 14: The sequence diagram of view Result in the system

37
ONLINE EXAMINATION SYSTEM

3.5.4 Analysis Class Diagram

Class diagram is a static diagram that represents the static view of the system. The class
diagrams are widely used in the modeling of object oriented systems because they are the only
UML diagrams, which can be mapped directly with object-oriented languages. Class diagram
shows a collection of classes, interfaces, associations, collaborations, and constraints. Generally
the purpose of the class diagram can be summarized as.
 Describing or modeling the static view of the system.

 Showing the collaboration among the elements of the static view.

 Describing the functionalities performed by the system.

 Construction of software applications using object oriented languages.

 Shows relationships between classes, objects, attributes, and operations.

38
ONLINE EXAMINATION SYSTEM

Figure 3. 15: Analysis Class Diagram

39
ONLINE EXAMINATION SYSTEM

CHAPTER FOUR
4.1Design Goal

Design is the first step in the development phase for any techniques and principles for the
purpose of defining a device, a process or system in sufficient detail to permit its physical
realization.

Once the software requirements have been analyzed and specified the software design involves
three technical activities - design, coding, implementation and testing that are required to build
and verify the software.

The design activities are of main importance in this phase, because in this activity, decisions
ultimately affecting the success of the software implementation and its ease of maintenance are
made. These decisions have the final bearing upon reliability and maintainability of the system.
Design is the only way to accurately translate the customer’s requirements into finished software
or a system.

4.2 Architectural Design

Component diagrams are integral to building your software system. They help your team
understand the structure of existing systems and then build new ones. The purpose of a
component diagram is to show the relationship between different components in a system. The
component diagram shows the relationship between software components, their dependencies,
communication, location and other conditions.

40
ONLINE EXAMINATION SYSTEM

Figure 4. 1: Component of the system

4.2.1 Deployment Modeling

UML deployment diagram show physical view of system, taking software into real world by
showing how software gets assigned to hardware and how communicates. The deployment
diagram shows how the software components, processes, and objects are deployed into the
physical architecture of the system. It shows the configuration of the hardware units (e.g.
Computers, communication devices, etc.) and how the software components are distributed
across the units.

JJUOES (Jigjiga University Online Examination System) is server client structure architecture,
where clients access services offered by server. The deployment diagram is shown as follows.

41
ONLINE EXAMINATION SYSTEM

Figure 4. 2: Deployment diagram of system

Description of the architecture of the system is described as follows.

Clients are responsible for:-


 Provide user interface to the user enabling to get services
 Receiving inputs from user
 Checking range of performance
 Initiating database transactions once all necessary data are collected.
Server responsible for:-
 Transaction performance
 Guaranteeing the integrity of data.
 Putting backup of the database

4.2.2 Persistence Data Management

Persistence of our object can be achieved by relational database since it used as machine to make
object persistent. It describes the persistent data aspect of software system. Our system includes
the basic table that handles the data of system implemented using MySQL server.
Mapping class and relational table
Mapping refers how objects and their relationship are stored in relational database. The mapping
of the data to be persisted in our system is given as follows:
University Online Examination System-OES. We have listed those descriptions as follows.

No Field name Data type Description

1 Name Varchar(30)not null Full Name of Administrator

2 ID Varchar(20)not null Identification of Admin

3 username Varchar(20)not null Username of Admin

4 password Varchar(20)not null Password of Admin

Method: UpdateAdminAcc(),DeleteAdminAcc()

UpdateAdminAcc(): to change the profile of admin

42
ONLINE EXAMINATION SYSTEM

DeleteAdminAcc(): to delete the account of the admin

Table 4. 1 Attribute Administrator

No Fieldname Data Type Description

1 Name Varchar(30) not null Full name of the user (student,


instructor, exam committee)

2 ID No Varchar(20) PRIMARY Identification number of user


KEY, not null

3 username Varchar(20) not null Username of User

4 password Varchar(20) not null Password of the user

5 Department Varchar(50) not null Department of the user

Method:CreateAccount(), Delete Account(), Edit Account()

Create Account():enables admin to create user account for users

Delete Account():enables admin to delete user account for users

Edit Account():enables admin to edit user account for users

Table 4. 2 Attribute User

1 Faculty_id VARCHAR(10)Primary key, Identification number of faculty


NOT NULL

2 Faculty Name VARCHAR(50)NOT NULL Name of the faculty

Method: Add Faculty(),Delete Faculty()and Edit Faculty()

Add Faculty ():used for adding faculty to the system

Delete Faculty ():used for Deleting faculty from the system

Edit Faculty ():used for editing faculty of the system

43
ONLINE EXAMINATION SYSTEM

4.3 User Interface Design

User interface design is the specification of the interaction between the system users and a
system. The process involves input mechanism design, output mechanism design, and navigation
mechanism.

 Navigation mechanism is part of user interface that takes the user form one part of the
system to the other user system. That includes menus or links, buttons, icons, dialog
boxes etc.
 Input design is about designing a form and its controls for GUI system.
 Output design is about designing reports like detailed, summarized, exceptional, graph,
chart, text document report and extra.

In our system the menus that are functioning on the home page are the following:

Figure 4. 3: User interface

44
ONLINE EXAMINATION SYSTEM

CHAPTER FIVE
5. Implementation and Testing
5.1 Introduction
The implementation phase is the most crucial phase in which it transform the design and analysis
of the system into a tangible system by writing the code to the system to be developed and make
it operational and applicable by testing and debugging the functionalities that are done. This
phase involves the construction of the actual project result during this phase that the project
becomes visible to outsiders, to whom it may appear that the project has just begun. This makes
the implementation stage more essential step to develop the required system. So, it is the most
vital and necessary stage in achieving a successful system and in giving the users confidence that
the new system will work and be effective by testing the system that is already implemented. In
this phase, the production system is installed, initial user training is completed, user
documentation is delivered, and the post implementation review meeting is held. When this
phase is completed, the application is in steady state production. Once the system is in steady-
state production, it is reviewed to ensure that we met all of the goals in the project plan for a
satisfactory result

The result of this phase consists of source code, together with documentation to make the code
more readable. This is what we call software implementation. The purpose of these activities is
to convert the final physical system specification into working model with reliable software and
hardware, document the work that has been done, and provide help for current and future users
and take care of the system.

5.2 Algorithm Design and Coding


5.2.1 Algorithm Design
The project used Random algorithm and we use MD5 technique for encryption purpose.
 MD5: Stand for Message-Digest Algorithm and it is a cryptographic hash function
whose main purpose is to verify that a file has been unaltered which is encrypted. MD5
has certain flaws and so it isn't useful for advanced encryption applications, but it's
perfectly acceptable to use it for standard file verifications.

45
ONLINE EXAMINATION SYSTEM

 Random algorithm: This algorithm is used when the candidate take exam, then it
makes exam question order or ranked randomlly.the algorithm randomly order exam
question is one way of code of exam and control cheating because the question order is
randomly ranked for each candidate and the order of exam question is different from
other candidate.

5.2.2 Coding
Login
<?php
session_start();
?>
<html>
<head>
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script type="text/javascript" src="css/javasscript.js"></script>
<style type="text/css">
input[type="text"],input[type="password"],input[type="Submit"],input[type="reset"]
{
width: 180px;
height: 30px;
}

input[type="submit"],input[type="reset"]
{
background:#170b62;
color: #fdfdfd;
box-sizing: border-box;
font-size: 20px;
height: 40px;
}
</style>
</head>

46
ONLINE EXAMINATION SYSTEM

<body>
<div class="login">
<form action=" " method="post" name="myForm" onsubmit="return validateuser()">
<h1><br>&nbsp;&nbsp;&nbsp;Enter UserName</h1><input type="text" name ="un"
placeholder="Enter UserName...." >
<h1>&nbsp;&nbsp;&nbsp;Enter Password</h1> <input type="password" name ="pass"
placeholder="Enter Password...." >
<input type="Submit" name="login" value ="Login" >
<input type="reset" name="reset" value ="Reset" >
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="forgot password.php">Forgot Passsword</a>
</form>
<?php
if(isset($_POST["login"]))
{
include("connection.php");
function encryptpassword($password )
{

$cryptKey='qJB0rGtIn5UB1xG03efyCp';
$passwordEncoded= base64_encode( mcrypt_encrypt( MCRYPT_RIJNDAEL_256,
md5( $cryptKey ), $password, MCRYPT_MODE_CBC, md5( md5( $cryptKey ) ) ) );
return( $passwordEncoded );
}
$uname=$_POST["un"];
$pass=$_POST["pass"];
$plaintext_password=$pass;
$password=encryptpassword($plaintext_password);
if($con)
{
//account
$sql="select * from account where username='$uname' and password='$password'";
$matchfound=mysql_query($sql,$con);

47
ONLINE EXAMINATION SYSTEM

$userexist=mysql_num_rows($matchfound);
if($userexist>0)
{
$sql=mysql_query("delete from attempt");
while($row=mysql_fetch_assoc($matchfound))
{
$id=$row["uid"];
$un=$row["username"];
$pw=$row["password"];
$status=$row["status"];
$pw_status=$row["password_status"];
}
if($pw_status=="unchanged")
{
$_SESSION['userid']=$id;
$_SESSION['oldpassword']=$pass;
header("location:change_password.php");
}
else

{
$sqll="select * from user where uid='$id'";
$matchfound1=mysql_query($sqll,$con);
while($user=mysql_fetch_assoc($matchfound1))
{
$fname=$user["ufname"];
$mname=$user["umname"];
$lname=$user["ulname"];
$role=$user["role"];
$photo=$user["photo"];
}
//store value in session

48
ONLINE EXAMINATION SYSTEM

$fullname=$fname." ".$mname." ".$lname;


$_SESSION['fullname']=$fullname;
$_SESSION['sun']=$un;
$_SESSION['spw']=$pw;
$_SESSION['role']=$role;
$_SESSION['$uid']=$id;
$_SESSION['sphoto']=$photo;
// variable declaration for log file registration
$login_time = date("h:i:s");
$_SESSION['login_time']=$login_time;
//end log record
//Go to Page
if($role=="Admin" && $status=="active")
header("location:Admin/adminpage.php");
else if($role=="Candidate" && $status=="active")
header("location:candidate/candidatepage.php");
else if($role=="Exam setter" && $status=="active")

header("location:setter/examsetterpage.php");
else if($role=="Exam Editor" && $status=="active")
header("location:editor/exameditorpage.php");
else if($role=="Registrar" && $status=="active")
header("location:Registrar/Registrar.php");
else if($role=="Department Head" && $status=="active")
header("location:dept/deptheadpage.php");
else
{
if($status=="inactive")
echo"<font color='red' size=4><b><i>Sorry Your Account Is Bolcked!!!</i></b></font>";
else
{
echo "<h1>Invalid username/passwords<h1>";

49
ONLINE EXAMINATION SYSTEM

header("location:index.php");
}
}
}
}
else
{
$count="insert";
$sql=mysql_query("select*from attempt");
$total=mysql_num_rows($sql);
$total++;
if($total>3)
{
//$sql=mysql_query("delete from attempt");

header("location:index1.php");
}
else
{
echo "<h1>Invalid username/password<h1>";
echo "<br>you are tries $total times,but allowed 4 times<h1>";
$insert=mysql_query("insert into attempt values(' ','$count')");
}
}
}
else
echo"Connection fail".mysql_error();
}
?>
</div></body>
</html>
 Set Exam Question

50
ONLINE EXAMINATION SYSTEM

<?php
if(isset($_POST['savequestion']))
{
$dname=$_POST["departmentname"];
$txtquest=$_POST["txtquest"];
$txta=$_POST["txta"];
$txtb=$_POST["txtb"];
$txtc=$_POST["txtc"];
$txtd=$_POST["txtd"];
$txtansw=$_POST["txtansw"];
$qstatus="active";
$sid=$_POST["sid"];

$qtype1=$_POST["qtype"];
if($con)
{
$sql="insert into question values('
','$year','$dname','$txtquest','$txta','$txtb','$txtc','$txtd','$txtansw','$qtype','$qstatus','$sid')";
$insert=mysql_query($sql,$con);
if($insert)
echo" Question is inserted sucessfully";
else
echo" NO Question inserted inserted !!!".mysql_error($con);
}
else
echo"Connection Failed:".mysql_error($con);
}
?>
 Take Exam

<?php
if(isset($_SESSION['sun'])&&isset($_SESSION['spw']))

51
ONLINE EXAMINATION SYSTEM

{
$uid=$_SESSION['$uid'];
$username=$_SESSION['sun'];
$role=$_SESSION['role'];
$login_time=$_SESSION['login_time'];
$logout_time="empty";
$count=0;//check take exam before this or not
$number=0;//role number question
//check department

$sql="select * from candidate where cid='$uid'";


$recordfound=mysql_query($sql,$con);
while($row=mysql_fetch_assoc($recordfound))
{
$dept=$row["dept"];
$univesity=$row["unversity"];
$year=$row["year"];
$_SESSION['dept']=$dept;
$_SESSION['univesity']=$univesity;
$_SESSION['year']=$year;
}
?>
<div id="header">
<div id="banner">
<!--<div id="welcome_slogan"> -->
<?php
require("dmu.php");
?>
<!--</div> <!--close welcome_slogan-->
</div><!--close banner-->
</div><!--close header-->
<div id="navigation">

52
ONLINE EXAMINATION SYSTEM

<?php
require("candmenu.php");
?>
</div><!--close menubar-->
<div id="site_content"></div>

<div id="site_content">
<div class="sidebar_container">
</div>
<div id="content">
<fieldset class="fieldset">
<br><br>
<?php
$fullname=$_SESSION['fullname'];
$uname=$_SESSION['sun'];
$role=$_SESSION['role'];
$photo=$_SESSION['sphoto'];
?>
<div style="margin: 10px;float: right;border:1px Solid #dadcdc;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);margin-top: -
15px;">
<table cellspacing="0" height="70">
<tr><td colspan="2"><center><?php echo "<img src='../editor/$photo' height=150
width=150>"?></center></td></tr>
<tr><td><b>User Name:</b></td><td><font color="#e9163c"><?php echo
$uname;?></font></td></tr>
<tr><td><b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Ro
le:</b></td><td><font color="#e9163c"> <?php echo $role;?></font></td></tr>
<tr><td>Time Allowed&nbsp;&nbsp;</td> <td style="font-weight: bold;font-size: 20px;"><div
id="showtime" ></div></td> </tr>
</table>
</div>

53
ONLINE EXAMINATION SYSTEM

<div class="style1">

54
ONLINE EXAMINATION SYSTEM

<?php
// Retrive time According to Department
$sq="select * from timer where dept='$dept' and question_type='Regular' and year='$year'";
$t=mysql_query($sq,$con);
while($row=mysql_fetch_array($t))
{
$h=$row["hour"];
$m=$row["min"];
}
?>
<script language ="javascript" >
var tim;
var hour=<?php echo $h;?>;
var min =<?php echo $m+1;?>;
var sec =0;
var f = new Date();
function f1()
{
f2();
document.getElementById("starttime").innerHTML = "Your started Exam at " + f.getHours() +
":" + f.getMinutes();
}
function f2()
{
if (parseInt(sec) > 0){
sec = parseInt(sec) - 1;
document.getElementById("showtime").innerHTML = hour+" :"+min+" :" + sec;
tim = setTimeout("f2()", 1000);
}
else {
if (parseInt(sec) == 0) {

55
ONLINE EXAMINATION SYSTEM

min = parseInt(min) - 1;
if (parseInt(min) == 0) {

var m=document.getElementById('Exam');
m.submit();
clearTimeout(tim);}
else {
sec = 60;
document.getElementById("showtime").innerHTML = "Your Left Time is " + min + " Min " +
sec + " Sec";
tim = setTimeout("f2()", 1000);
}}}}
</script>
<?php
$query="select *from question";
$rand=mysql_num_rows(mysql_query($query,$con));
//set question
$sq="select *from question WHERE dept='$dept' and status='active' and year='$year' and
question_type='Regular' ORDER BY RAND()
LIMIT $rand ";
$result = mysql_query($sq,$con);
// Loop through each records
?>
<?php
while($row = mysql_fetch_array($result))
{
$qid=$row["qid"];
$question=$row["question"];
$option1=$row["optiona"];
$option2=$row["optionb"];
$option3=$row["optionc"];
$option4=$row["optiond"];

56
ONLINE EXAMINATION SYSTEM

$number++;
?>
<div id="radio_button">

<table id="question">
<form id="Exam" action="display.php" method="post" >
<hr>
<tr ><td colspan="2"><?php echo $number;?>. &nbsp;&nbsp;<?php echo $question;?></td>
</tr>
<tr><td width="1"><input type="radio" name="<?php echo $qid;?>" value="A"/></td>
<td>A)&nbsp;&nbsp;<?php echo $option1;?> </td></tr>
<tr><td width="1"><input type="radio" name="<?php echo $qid;?>" value="B"/></td>
<td>B)&nbsp;&nbsp;<?php echo $option2;?> </td></tr>
<tr><td width="1"><input type="radio" name="<?php echo $qid;?>" value="C"/></td>
<td>C)&nbsp;&nbsp;<?php echo $option3;?> </td></tr>
<tr><td width="1"><input type="radio" name="<?php echo $qid;?>" value="D"/></td>
<td>D)&nbsp;&nbsp;<?php echo $option4;?> </td></tr>
<?php
}
?>

5.3 Testing
The test plan is designed to analyze the logic used in the implementation of the Online
Examination System. The tests will allow us to ensure correct program flow, and to determine
the error-handling capability of the system.

Once coding has begun, the testing process can be beginning and proceed in parallel. As each
program module is produced, it can be tested individually, as a part of larger program, and then
as a part of larger system.

5.3.1 Units Testing


Unit testing is a validation method in which a programmer tests if individual units of source code
are fit for use. The system units are tested one by one by inserting invalid data.

57
ONLINE EXAMINATION SYSTEM

In this testing strategy the system components and modules are tested one by one. Each
component where first identified and then tested.

5.3.2 Integration Testing


In this testing part, all the modules combined together and tested for fitness with each other and
with the systems functionality. If error occurs in combining them, the module with problem will
be identified and re combined.
Integration testing is testing in which a group of components are combined to produce output.
Also, the interaction between software and hardware is tested in integration testing if software
and hardware components have any relation

5.3.3 System Testing


It is the final step of testing. In this the team members tests the entire system as a whole with all
forms, code, modules. This form of testing is popularly known as Black Box testing or System
tests. In this the team members tests all the functionalities in the System. All errors in the forms,
functions, modules are tested.
System testing: It is the final step of testing. In this system tested the entire system as a whole
with all forms, code, modules. In this we tested all the functionalities in the System. All errors in
the forms, functions, modules have been tested. Finally, System testing ensures that the entire
integrated software system meets the desired requirements. It tests a configuration to ensure
known and predictable results.

5.3.4 Acceptance Testing


Acceptance testing is the process of testing system prior to its delivery. A system is mainly
developed for an end user normally a customer of the organization. A system is said to be
accepted if and only if the user of the system is satisfied. In this perspective acceptance testing is
widely used to prove that system performs as per the requirements. In acceptance testing the
customers provides the input data to validate the system operation. It is also known as functional
testing, black-box testing, release acceptance, application testing, confidence testing, final testing
and validation testing.
5.4 Hardware and Software Requirements
For the project implementation the following Software and hardware are used.

58
ONLINE EXAMINATION SYSTEM

5.4.1 Hardware Requirements


 Computer Laptop
 Desktop
 External hardisk
 Flash

5.4.2 Software Requirements


 Notepad++ (editor):
 Sublime Text
 Apache: Xampp:
 MySQL-server

5.5 User’s Manual Preparation

Figure 5. 1 Home Page of the System

59
ONLINE EXAMINATION SYSTEM

Figure 5. 2 Home Page for admin of the System

Figure 5. 3 Faculty Management Page of the System

60
ONLINE EXAMINATION SYSTEM

Figure 5. 4 Department Management Page of the System

Figure 5. 5 Schedule adding page of the system

61
ONLINE EXAMINATION SYSTEM

Figure 5. 6 Exam adding page of the system


When user of the system does not enter Username and password it displays value required
message.

Figure 5. 7 Login to the System Testing (Null value)


Wrong Username or password entered:
 Whenever users of the system entered the incorrect username or password the invalid
data entry message will be displayed. If correct required page will be arrived.

Figure 5. 8 Login to the System Testing (Incorrect user name or password)

62
ONLINE EXAMINATION SYSTEM

 When admin do not insert all the required data of the user the system will display value
required message and enables to enter data again. Since data entry interface of all user is
similar the same error message will be displayed.

Figure 5. 9 Error message when to be entered to the system is not filled

Admin page to add user to the system (correct value) testing:


 When admin inserted all the values of user information to register correctly the success
alert message will be displayed. It is similar for all users. The success message will be
displayed when deletion and update of the user is correctly done.

Figure 5. 10 Success message for user adding deleting and updating done correctly

Admin page to manage faculty, department and course to the system (missed value)
testing:
 While admin manages faculty, department and course if data missed while insertion,
value required message will be displayed.

63
ONLINE EXAMINATION SYSTEM

Figure 5. 11 Error message when required data is missed

Admin page to manage faculty, department and course to the system (correct value)
testing:
 When admin entered the required values correctly the success message will be displayed.

Figure 5. 12 success message while managing faculty, department and course

5.6 User Training


During the deployment of the system, the project group members will give short time training for
the system users (administrators, student, exam-commit instructor) and explaining how the
system works and in what way they can manage their system. Help activity integrated with Web
application for client side user (Visitors).

5.7 Installation
After installing both Xampp server and Adobe Dreamweaver software do the following steps
 Step1
 Get the folder “Final project “from the Developing Team.
 Step 2
 Copy the folder to WWW folder in the c: \xampp\www

64
ONLINE EXAMINATION SYSTEM

After doing these steps again, copy the folder “Online examination system data” from the
Developing Team then.
 Step3
 Paste into the folder ”data “in the C: \XampP\www\Data
 Step4
 Installation is finished.

65
ONLINE EXAMINATION SYSTEM

Chapter Six
6. Conclusion and Recommendation
6.1 Conclusion
Considering the drawbacks of the existing system and importance of new technologies the
developed system, Jigjiga University Online Examination system is very useful to simplify
examination system of Jigjiga University. Therefore a great striving played for this project of
Jigjiga University Online Grade Report Generation System to be developed.

The system performs works better than existing system (usability, speed, efficiency and
effectiveness). Security also included in this system developed and every user can access the
required services. The system is also very useful in minimizing time and other utilities wastage.
JJUOES system is developed to give the effective examination process that satisfies the need of
all users in the system.
An effort has been made to study web based Online Examination system for Ethiopian higher
education institutes as partial fulfillment in Information technology. Web based Online
Examination system is computerized Exam taking system, exam marking and view exam result
system automatically. The system solve the problems which occur manually such as un-
readability of candidate answer or question, manual correction error, view results to candidate
after finish exam immediately and other problems which are occur in manual system. The system
is web-based application, which will host in the institute extranet network and is available to the
candidate within the institute as well as the exam setter set or prepare exam question according to
their department and academic year in the system. The exam setter not only prepare exam but
also can update or modify question for own departments. The exam taken to graduate student at
higher education institutes and automatically show the result status of each candidate according
to their identity. This is a very modern and qualified way of candidate assessment technique.
Because it is free from human intervention except adding questions and the software
management.
This project has been prepared with the objective of developing a new web based online
examination system for different higher educational institutions in Ethiopia the main objectives
of this project are to simplify and qualify the candidate evaluation/assessment mechanism by

66
ONLINE EXAMINATION SYSTEM

providing automatic exam process and exam marking techniques. It provides on time exam
result, with no postpone unless technical problem on computers, electricity happens. The new
system will solve the current system drawbacks by making each Exam questions available
digitally and usable anywhere within the institute network.

6.2 Recommendation
Current Jigjiga University Examination System is manual system or file based system and far
away from advanced technology and information. Since this developed system is advanced our
system have to recommend by Jigjiga University to accept and use this system because it is easy
to use and save the time and resources’ for the university.

To use the system properly the all candidate must take computer training. The extranet network
connection must also available in all places. In addition to these the electricity must available in
all place and the users must be familiar to the system.

6.3 Future Enhancement


According to scope of our project the team develops web based application. Because of the time
constraint we may have limitation which should be consideration in, but in the feature the team
believes that this system should be fully operationally by adding some functionality that are not
included in the proposed system. We also want to recommend this project can be expanded and
more automated with additional functionalities by integrating with many new technologies. We
recommend being included the following functionality:
 subjective questions

 Digital signature that identifies the correct candidate

 Make the exam fully automated

 Develop better security mechanism


Generally the project will be better for the future, when we add the above future
enhancement that the candidate can take any type of question as well as make payment
during take re-exam. Therefore in the future will including these future enhancement by
integrating with many new technologies is the better way of developing the system.

67
ONLINE EXAMINATION SYSTEM

References
1. [1] JJUOES documentation Phase I

2. [2] OOSAD Handout.

3. [3] “Fundamentals of Database Systems”, Third Edition, Ramez Elmasri


4. [4] Software Engineering (2009), “A Practitioner’s Approach”, Seventh Edition, Roger S.
Pressman, Ph.D.
5. http://www.tutorialspoint.com/mysql
6. http://www.tutorialspoint.com/php

68
ONLINE EXAMINATION SYSTEM

Appendix
Symbol Description

Actor

System boundary

Decision

Use case

class

Object life line

Deployment diagram

Message line extends from the lifeline of one object to the lifeline
of another object.
Include, relates to the include use case to indicate inserted behavior

Create Return Message

Starting point of activity/state diagram

Ending point of activity/state diagram

69
ONLINE EXAMINATION SYSTEM

70

You might also like