Documentos de Académico
Documentos de Profesional
Documentos de Cultura
specialization in
Artificial Intelligence
By:
Mehul Mahrishi
I hereby declare that the work presented in this Mini project report entitled, “Online
Examination System” in partial fulfilment for the III semester of Degree of “Master of
Computer Science” in Computer Science with specialization in Artificial Intelligence and
submitted in Department of Computer Science, Central University of Rajasthan is a record
of my own investigations carried under the guidance of Mehul Mahrishi, department of
Computer Science.
I have not submitted the matter presented in this report anywhere for the award of any
other degree.
ii
CERTIFICATE
This is to certify that the mini project report (Code MAI 316) entitled “Online Examination
System” done by Vikram Singh Slathia, Enrollment No 2011MAI025 and Rajesh Sahu,
Enrollment No 2011MAI0 is an authentic work carried out by him at University under my
guidance. The matter embodied in this dissertation/project work has not been submitted
earlier for the award of any degree or diploma to the best of my knowledge and belief.
iii
ACKNOWLEDGEMENT
I also wish to thank all the faculty members of Central University of Rajasthan who
gave me valuable knowledge through their lectures. At this place, I have got plenty of
fundamental and advanced knowledge for my career.
I am indebted my mother, my father and friends for all the encouragement and moral
support.
Rajesh Sahu
iv
ABSTRACT
Online Examination System is web based application for technical evaluation. OLES not only
replace paperwork but also releases the workload of faculty. Most of e-examination system
only have fixed no of question without randomization, so they have pool scalability. The
proposed system has a comprehensive test engine with randomization of questions and it also
allow users to give feedback of system The OLES overcomes the shortcoming of existing
online examination systems and has better extensibility and flexibility.
v
Table of Contents
Abstract v
List of Figures viii
List of Screen shots viii
List of tables viii
Definitions, Acronyms & Abbreviations viii
vi
3.2 Data Flow Diagrams 12
3.3 Module design of system 13
3.3.1 Description of Modules 13
3.3.1.1 Student Module 14
3.3.1.2 Exam Module 14
3.3.1.3 Administrator module 14
4. Implementation and Coding 15-29
4.1 Code 15-21
4.2 Screen Shots 22-27
4.3 Tables 28-29
5. Testing and Validation 30-32
5.1 Introduction 30
5.2 Design of test cases and scenario 30
5.2.1 Integration Testing 30
5.2.2 Validation Testing 31
5.2.2.1 Validation Test Criteria 31
5.2.2.2 Configuration Review 31
5.2.3 Alpha testing and Beta Testing 31
5.2.4 System Testing 31
5.3 Generation of test cases 32
5.4 Validation 32
5.5 Conclusion 32
6. Conclusion and Future work 33
6.1 Conclusion 33
6.2 Future work 33
7. Reference 34
vii
List of Figures
viii
Chapter 1
Introduction
1.1 Introduction
Online Examination Series (OLES) is a Multiple Choice Questions (MCQ) based
examination system. It provides an easy to use environment for both Test Conductors
and Students appearing for Examination. The main objective of OLES is to provide
all the features that an Examination System must have, with the "interfaces that don't
Scare it's Users!".
1.2 Scope
• The main purpose of the system is to efficiently evaluate the candidate
thoroughly through a fully automated system that not only saves a lot of time
but also gives fast results.
• It is a cost-effective and popular means of mass- evaluation system.
• The administrator of the system prepares the tests and questions for each
exam.
• The candidates can login through the client computers with their register
number given to them and can take the exam.
• The questions are shuffled in a random order so that possibilities for getting
questions in the same order for the students who are beside, is very less.
1.3.1 Administrators
Administrators are responsible for management of system users, tests, results and
system backup etc.
1
Chapter 1 Introduction
1.3.2 Faculty
Test conductors are responsible for preparing schedule of tests and questions.
1.3.3 Students
Students are the candidates who are appearing for the Exam.
2
Chapter 2
Analysis
2.1 Introduction
After analyzing the requirements of the task to be performed, the next step is to
analyze the problem and understand its context. The first activity in the phase is to
studying the existing system and other is to understand the requirements and domain
of the new system. Both the activities are equally important but the first activity
serves as a basis of giving the functional specifications and then successful design of
the proposed system. Understanding the properties and requirements of a new system
is more difficult and requires creative thinking as well as understanding of existing
system is also difficult. Improper understanding of present system can lead diversion
from solution
3
Chapter 2 Analysis
So if we register with the OLES, they can automate their day-to-day activities. Thus
the system is economically feasible.
4
Chapter 2 Analysis
2.3.1 Proposed
The main objective of the Online Examination System is that it helps
educational institutions and corporate world to conduct exams to any number of
candidates at a time, in an automated manner. It reduces the time consumption and
workload that exist in the current system of examination. It also helps in storing the
record of each examination and the results are also stored in the system. This makes
the searching of the records easier than the existing system.
2.3.2 Scope
• OLES can be used in educational institutions as well as in corporate world.
• The system handles all the operations and generates reports as soon as the test is
completed which saves the precious time of faculties spent on reviewing answer
sheets.
• OLES is a cost-effective and popular means of mass- evaluation system.
• The administrator of the system prepares the tests and questions for each exam.
• The candidates can login through the client computers with their Enrolment
number given to them by the university and can take the exam.
• The questions are shuffled in a random order so that possibilities for getting
questions in the same order for the students who are sitting beside is very less.
• Can be used anywhere any time as it is a web based application.
5
Chapter 2 Analysis
o Processor :
Pentium 2.0 and above.
o RAM :
256 MB
• Server Side:
o Processor :
Pentium and above.
o RAM :
1 GB
o Hard disk space :
4GB
2.5 Constraints:
• Graphical user interface is only in English.
• Enrolment ID and password is used for identification of user and there is no
facility for guest.
• Only registered users will be authorized to use the services.
• Limited to HTTP or HTTPS.
• This system is working for single server.
2.6 Conclusion
In this phase, we understand the software requirement specifications for the system.
We arrange all the required components to develop the project in this phase itself so
that we will have a clear idea regarding the requirements before designing the project.
Thus we will proceed to the design phase followed by the implementation phase of
the project.
6
Chapter 3
Design
7
Chapter 3 Design
Class Diagram
8
Chapter 3 Design
9
Chapter 3 Design
Object
Objects are instances of classes,
classes, and are
arranged horizontally. The pictorial
representation for an Object is a class with
the name prefixed by the object name
(optional) and a semi-colon.
semi
Actor
Actors can also communicate with objects,
so they too can be listed as a column. An
A
Actor is modelled using the ubiquitous
symbol, the stick figure.
Lifeline
The Lifeline identifies the existence of the
object over time. The notation for a Lifeline
is a vertical dotted line extending from an
object.
Activation
Activations, modelled as rectangular boxes
on the lifeline, indicate when the object is
performing an action.
Message
Messages, modelled as horizontal arrows
between Activations, indicate the
communications between objects.
10
Chapter 3 Design
11
Chapter 3 Design
• Function:-
A circle or bubble represents a process that transforms incoming data to
outgoing data. Process shows a part of the system that transform inputs to
outputs.
• Input or Output:-
A square defines a source or destination of system data. External entities
represent any entity that supplies or receive information from the system but is
not a part of the system.
• Data store:-
The data store represents a logical file. A logical file can represent either a
data store symbol which can represent either a data structure or a physical file
on disk. The data store is used to collect data at rest or a temporary repository
of data. It is represented by open rectangle.
12
Chapter 3 Design
13
Chapter 3 Design
Test page
This is a most creative and important page in this project.
• This test page includes:-
o Timer
o Skip
o Next
o Previous
o Finish.
• The form of questions in test page:-
o Multiple choice questions
o The questions are selected at random
14
Chapter 4
4.1 Code
Imports MySql.Data
Imports MySql.Data.MySqlClient
Public Class login
Inherits System.Web.UI.Page
Dim dbcom As MySqlConnection
Dim stquery As String = ""
Dim sqlcmd As MySqlCommand
Dim dr As MySqlDataReader
Dim paa As String
Protected Sub Page_Load(ByVal sender As Object, ByVal e As
System.EventArgs) Handles Me.Load
End Sub
dbcom = New
MySqlConnection("Server=localhost;Database=onlineexam;Uid=root;pwd=mysql")
stquery = "SELECT * FROM logintable where UserName='" &
TextBox1.Text & "'"
sqlcmd = New MySqlCommand(stquery, dbcom)
'MsgBox(stquery)
dbcom.Open()
dr = sqlcmd.ExecuteReader
While dr.Read
' TextBox2.Text = dr.Item("Password")
15
Chapter 4 Implementation and Coding
paa = dr.Item("Password")
'MsgBox(paa)
End While
If TextBox2.Text <> paa Then
MsgBox("wrong username-password, try again")
Else
MsgBox("Login success")
Response.Redirect("~/examinstruction.aspx")
End If
dr.Close()
dbcom.Close()
Catch ex As Exception
' MsgBox("failure to communicate!" & vbCrLf & vbCrLf & ex.Message)
End Try
End Sub
End Class
Imports MySql.Data
Imports MySql.Data.MySqlClient
Public Class examinstruction
Inherits System.Web.UI.Page
Dim dbcom As MySqlConnection
Dim stquery As String = ""
Dim sqlcmd As MySqlCommand
Dim dr As MySqlDataReader
Dim paa As String
End Sub
16
Chapter 4 Implementation and Coding
dbcom.Close()
'Next i
Catch ex As Exception
MsgBox("failure to communicate!" & vbCrLf & vbCrLf & ex.Message)
End Try
Response.Redirect("~/examform1.aspx")
End Sub
End Class
Imports MySql.Data
Imports MySql.Data.MySqlClient
Public Class examform1
Inherits System.Web.UI.Page
Dim dbcom As MySqlConnection
Dim stquery As String = ""
Dim sqlcmd As MySqlCommand
Dim dr As MySqlDataReader
Dim drtable As New DataTable
Protected Sub Button1_Click(ByVal sender As Object, ByVal e As EventArgs)
Handles Button1.Click
Try
'Button3.Visible = True
dbcom = New
MySqlConnection("Server=localhost;Database=onlineexam;Uid=root;pwd=mysql")
stquery = "select question,option1,option2,option3,option4 from
addq1;"
sqlcmd = New MySqlCommand(stquery, dbcom)
dbcom.Open()
dr = sqlcmd.ExecuteReader
drtable.Load(dr)
GridView1.DataSource = drtable
GridView1.DataBind()
' For i = 1 To 20
' stquery = "select * from addquestion order by rand() limit 20;"
'stquery = "select * from addq1;"q
' sqlcmd = New MySqlCommand(stquery, dbcom)
'dbcom.Open()
'dr = sqlcmd.ExecuteReader
' dr.Read()
'While dr.Read()
' Label1.Text = dr.Item("qid")
'Label2.Text = dr.Item("question")
'RadioButton1.Text = dr.Item("option1")
'RadioButton2.Text = dr.Item("option2")
'RadioButton3.Text = dr.Item("option3")
'RadioButton4.Text = dr.Item("option4")
'End While
' dr.Close()
' dbcom.Close()
'Next i
dr.Close()
dbcom.Close()
Catch ex As Exception
MsgBox("failure to communicate!" & vbCrLf & vbCrLf & ex.Message)
End Try
Button1.Visible = False
17
Chapter 4 Implementation and Coding
End Sub
Private Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs)
Handles Me.Load
Response.Cache.SetCacheability(HttpCacheability.NoCache)
'dbcom = New
MySqlConnection("Server=localhost;Database=onlineexam;Uid=root;pwd=mysql")
' For i = 1 To 20
' stquery = "select * from addquestion order by rand() limit 1;
End Sub
Protected Sub Button4_Click(ByVal sender As Object, ByVal e As EventArgs)
Handles Button4.Click
Dim a(10) As Char
Dim b(10) As Char
Dim right As Integer
Dim wrong As Integer
right = 0
wrong = 0
Try
dbcom = New
MySqlConnection("Server=localhost;Database=onlineexam;Uid=root;pwd=mysql")
stquery = "select * from addq1;"
sqlcmd = New MySqlCommand(stquery, dbcom)
dbcom.Open()
dr = sqlcmd.ExecuteReader
For i = 1 To 10
dr.Read()
a(i) = dr.Item("answer")
Next i
If RadioButtonList1.SelectedValue = "1" Then
b(1) = "1"
ElseIf RadioButtonList1.SelectedValue = "2" Then
b(1) = "2"
ElseIf RadioButtonList1.SelectedValue = "3" Then
b(1) = "3"
ElseIf RadioButtonList1.SelectedValue = "4" Then
b(1) = "4"
End If
18
Chapter 4 Implementation and Coding
19
Chapter 4 Implementation and Coding
' MsgBox(b(1))
' MsgBox(b(2))
If b(1) <> a(1) Then
wrong = wrong + 1
Else
right = right + 1
End If
If b(2) <> a(2) Then
wrong = wrong + 1
Else
right = right + 1
End If
If b(3) <> a(3) Then
wrong = wrong + 1
Else
right = right + 1
End If
If b(4) <> a(4) Then
wrong = wrong + 1
Else
right = right + 1
End If
If b(5) <> a(5) Then
wrong = wrong + 1
Else
right = right + 1
End If
If b(6) <> a(6) Then
wrong = wrong + 1
Else
right = right + 1
End If
If b(7) <> a(7) Then
wrong = wrong + 1
Else
right = right + 1
End If
If b(8) <> a(8) Then
wrong = wrong + 1
Else
right = right + 1
End If
If b(9) <> a(9) Then
wrong = wrong + 1
Else
right = right + 1
End If
If b(10) <> a(10) Then
wrong = wrong + 1
Else
right = right + 1
End If
dr.Close()
dbcom.Close()
Catch ex As Exception
MsgBox("failure to communicate!" & vbCrLf & vbCrLf & ex.Message)
End Try
20
Chapter 4 Implementation and Coding
Me.Dispose()
Try
dbcom = New
MySqlConnection("Server=localhost;Database=onlineexam;Uid=root;pwd=mysql")
stquery = "drop table addq1;"
sqlcmd = New MySqlCommand(stquery, dbcom)
dbcom.Open()
dr = sqlcmd.ExecuteReader
dr.Read()
dr.Close()
dbcom.Close()
Catch ex As Exception
MsgBox("failure to communicate!" & vbCrLf & vbCrLf & ex.Message)
End Try
Response.Redirect("default.aspx", False)
Response.Redirect("examform1.aspx", False)
21
Chapter 4 Implementation and Coding
.
4.2.2 Login form
• There is a quality window because in this person only enter by
login
• Enrolment ID of student is user id and password by which a
person enter the system.
22
Chapter 4 Implementation and Coding
23
Chapter 4 Implementation and Coding
24
Chapter 4 Implementation and Coding
25
Chapter 4 Implementation and Coding
26
Chapter 4 Implementation and Coding
4.3.1 Member
27
Chapter 4 Implementation and Coding
4.3.5 Marks
28
Chapter 5
5.1 Introduction
Software testing is a critical element of software quality assurance and
represents the ultimate review of specification, design and coding. In fact, testing is
the one step in the software engineering process that could be viewed as destructive
rather than constructive.
A strategy for software testing integrates software test case design methods into a
well-planned series of steps that result in the successful construction of software.
Testing is the set of activities that can be planned in advance and conducted
systematically. The underlying motivation of program testing is to affirm software
quality with methods that can economically and effectively apply to both strategic to
both large and small-scale systems.
The following are the Testing Objectives:
• Testing is a process of executing a program with the intent of finding an error
• A good test has a high probability of finding an as yet undiscovered error.
• A successful test is one that uncovers an as yet undiscovered error.
30
Chapter 5 Testing and Validation
Begin construction and testing with atomic modules (lowest level modules).Bottom
up integration testing as its name implies begins construction and testing with atomic
modules. Because modules are integrated from the bottom up, processing required for
modules subordinate to a given level is always available and the need for stubs is
eliminated.
Beta Testing
It’s a acceptance testing conducted by the multiple customers in the customer
environment.
31
Chapter 5 Testing and Validation
5.4 Validation
Validation aims to demonstrate that the software functions in a manner that can be
reasonably expected by the user. An experiment has done for checking the
consistency for the user requirements regarding the username and password which
should be validated through the server and the username and password should be
matched. (showed 4.2 chapter 4)
5.5 Conclusion
In this way we also completed the testing phase of the project and ensured that the
system is ready to go live. Thus we developed a system that provides a paperless
examination.
32
Chapter 6
6.1 Conclusion
Online Examination System (OLES) is a web application. The key concept is to
minimize the amount of paper and convert all forms of documentation to digital form.
It can observe that the information required can be obtained with ease and
accuracy in the computerized system. The user with minimum knowledge about
computer can be able operate the system easily. The system also produces brief result
required by the management.
33
Chapter 7
References
7.1 Books
• Introducing Microsoft .NET, 3rd Edition By David S. Platt - Microsoft Press,
2003
• Database Programming With Visual Basic .Net and Ado.Net: Tips, Tutorials
and code By F. Scott Barker - Sams
7.2 Website
• My SQl
o https://dev.mysql.com/tech-resources/articles/dotnet/
o https://www.geeksengine.com/article/mysql-odbc.html
• .Net
o http://msdn.microsoft.com/en-us/library/gg145045.aspx
7.3 Videos
o http://www.youtube.com/watch?v=CWRwVcZOURw
o
7.4 Projects
• Online Examination system of NIIT
• Online examination system AIEEE
34