Sie sind auf Seite 1von 37

PROJECT REPORT ON ONLINE EXAMINATION

ABHAY ANANDA SHUKLA

UNIVERSITY INSTITUTE OF TECHNOLOGY

INDEX

y y y y y y y y y

y y y y y y y y y y

Purpose. Technologies used. Hardware Interface. Software Interface. Constraints. Feasibility Study. Specification Report. Communication Interface. Bottlenecks Identified in existing system. Need for the new system. Software system attributes. DBMS. E-R Diagram. DFD. Programming codes. Database codes. Input & Output forms. Conclusion. Bibliography.

1. Purpose:

> This Web Application provides facility to conduct online examination worldwide. > It saves time as it allows number of students to give the exam at a time and displays the results as the test gets over, so no need to wait for the result. It is automatically generated by the server. > Administrator has a privilege to create, modify and delete the test papers and its particular questions. > User can register, login and give the test with his specific id, and can see the results as well.

2. Technologies used:

This project is a web application that is developed in ASP.NET having DB2 as back end. 1. Database Design (DB2) 2. Input Design (ASP.NET) 3. Coding (VB.NET)

3. Hardware Interface: Client Side:

Internet Explorer: 6.0 Processor : Pentium IV 2.0 and above. RAM : 256 MB

Processor RAM Disk space

: Pentium IV 2.0 and above. : 1 GB : 4GB

4. Software Interface: Client Side: .NET Framework, Web Browser, Windows XP/2000/Vista Web Server: .NET Framework, Windows XP/2000/Vista Data Base Server: DB2

5. Constraints:
> User interface is only in English i.e. no other language option is available. > User can login only with his assigned username and password i.e. no guest facility is available. > Limited to HTTP/HTTPS.

Feasibility Study
What are the users demonstrable needs? User needs a web-based system, which will remove all the above -mentioned Problems that, the user is facing. The user wants a web -based system, which will reduce the bulk of paperwork, provide ease of work, flexibility, fast record finding, modifying, adding, removing and generating the reports.

How can the problem be redefined? We proposed our perception of the system, in accordance with the problems of existing system by making a full layout of th e system on paper. We tallied the problems and needs by existing system and requirements. We were further updating in the layout in the basis of redefined the problems. In feasibility study phase we had undergone through various steps, which are described as under: How feasible is the system proposed? This was analyzed by comparing the following factors with both the existing system and proposed system. Cost The cost required in the proposed system is comparatively less to the existing system. Effort Compared to the existing system the proposed system will provide a better working environment in which there will be ease of work and the effort required will be comparatively less than the existing system. Time Also the time required generating a report or for doing any other work will be comparatively very less than in the existing system. Record finding and updating will take less time than the existing system. Labor In the existing system the number of staff r equired for completing the work is more while the new system will require quite less number of staff.

Specification Report
System Interface Application would be a self -contained system. It will not access data of any other application nor will other application have access to its data. User Interface Application will be accessed through a Browser Interface. The interface would be viewed best using 1024 x 768 and 800 x 600 pixels resolution setting. The software would be fully compatib le with Microsoft Internet Explorer for version 6 and above. No user would be able to access any part of the application without logging on to the system. Hardware Interface For Server Intel Pentium III or above with 512 MB RAM 4 GB hard disk Network Interface For Client PC With 256 MB RAM Network Interface Software Interface For Server For Client

Windows 2000 Enterprise Edition WAS Server DB2 Server

Windows 95/98/2000/NT Microsoft Internet Explorer 6 & above

Communication Interface
The system should be accessed over LAN or WAN. For Clients to access application server the network should be running TCP/IP protocol.

Operations
Client Side

Interactive operations using options provided in the application, Example Data Entry generation and viewing of reports.
Server Side

Database backup should be taken every day. In case of data base crash, last backup should be restored.

User Characteristics

The end user of the software can be divided into two categories
Administrator : Access to master forms for the purpose of data entry and generation of reports. Operator : Access to his corresponding records and giving examination only.

10

Bottlenecks Identified in Existing System


The first problem is that there are loads of hard copied documents being generated. This brings us to the age -old discussion of keeping information in the form databases versus keeping the same on sheets of paper. Keeping the information in the form of hard-copied documents leads to the following problems:
I. Lack of space It becomes a problem in itself to find space to keep the sheets of paper being generated as a result of the ongoing discussion. The documents being generated are too important to be ill -treated. ii. Filing poses a problem Filing the documents categorically is a time consuming and tedious exercise. iii. Filtering is not easy It becomes hard to filter relevant documents for the irrelevant ones if the count of the same crosses a certain manageable number. iv. Reviewing becomes time-consuming All the process done manually at the centers and all the records are maintained on the papers. So the maintenance of the record is very difficult in the departments and as well as its very difficult for the workers to check the record. The Existing system is paper based, time consuming, monotonous, less flexible and provides a very hectic working schedule. 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. v. Result Processing is slow due to paper work and requirement of staff.

11

Need for the New System


To solve these problems they required a computerized system to handle all the works. They required a web based application 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.
Aims and Objective

The main purpose behind the proposed system is to pro vide a comprehensive computerized system, which can capture, collate and analyze the data from these wards and evaluate the impact of the program.
Constraints, Assumptions, Dependencies Constraints

As this system is based on client server technology, so fo r normal operation minimum of 64 MB RAM will be required on all clients.
Assumptions

In general it has been assumed that the user has complete knowledge of the system that means user is not a nave user. Any data entered by him/her will be valid. To make the software as user friendly as possible but at the same time keeping in minds user requirements. Server OS should be Windows NT/2000/XP. Client PC should be Windows 9X/NT/WorkStation or Windows 2000 with latest service pack.
Dependencies

It depends that the one should follow the international standards for the generating the User ID & should fill the related information in the proper format.

12

Software System Attributes


Usability: The links are provided for each form. The user is facilitated to view and make entries in the forms. Validations are provided in each field to avoid inconsistent or invalid entry in the databases. Some forms consists Hyper Links, which provides further details. Reports screen contains text boxes and drop down lists, so that reports can be produced.

Security: Application will allow only valid users to access the system. Access to any application resource will depend upon users designation. There are two types of users namely Administrator and Student. Security is based upon the individual user ID and Password. Maintainability: The installation and operation manual of examination management system will be provided to the user. Availability: System will be available around the clock except for the time required for the backup of data. Portability: The application is developed in ASP.NET. It would be portable to other operating system provided .NET Framework is available for the OS. As the database is made in DB2, porting the database to another database server would require some development effort.

Acceptance Criteria
The software should meet the functional requirement and perform the functionality effectively and efficiently. A user-friendly interface with proper menus. Data transfer should be accurate and within a reasonable amount of time keeping in mind the network traffic. The system should not allow entry of duplicate key values. System should have the ability to generate transactional Logs to avoid any accidental loss of data. Log file should also be generated.

13

DBMS
1. Questions Name
Ques_no. Question Answer1 Answer2 Answer3 Answer4

Data Type
Number Text Text Text Text Text

Description
Question Number Question First Choice Second Choice Third Choice Fourth Choice

4. Correct ans Name


Ques_no. Ans

Data Type
Number Text

Description
Question Number Correct Answer

5. Given ans Name


Ques_no. Ans

Data Type
Number Text

Description
Question Number Given Answer

2. Administrators Name
User name Password

Data Type
Text Text

Description
Name of the Administrator Password

14

6. Student Name
Roll Name Sex Branch Total Address Contact no

Data Type
Number Text Text Text Number Text Number

Description
Unique Roll no Name of the Student Sex of the Student Branch of the Student Marks of the Student Address of the Student Contact no of the Student

3. Results Name
Roll Name Sex Branch Total

Data Type
Number Text Text Text Number

Description
Unique Roll no Name of the Student Sex of the Student Branch of the Student Marks of the Student

15

User name

Password

Recieve

USER

Register

Use name Use name Branch Exam Result Registration

Roll

Password

Marks

Result

Examination

Perform

GK

E-R DIAGRAM

16

student login

student registration

student registration

give exam

5.0

fetch result perform test

ExamResult

3.1.1
stores resuit fetch question

C l

l t lt 4.0

checks

Figure- DFD

 



 

lt

i ti 3.0

gets result

give exam

i tr ti 2.0

r l

L i 1.0

student verification


i tr ti

t_D

17

PROGRAMMING CODES
VB CODES FOR ADMIN.ASPX.VB Partial Class Admin Inherits System.Web.UI.Page Dim flag As Boolean = False Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Try con.Open() com.CommandText = "select * from Admin where name='" & Trim(TextBox1.Text) & "' and pass='" & Trim(TextBox2.Text) & "'" com.Connection = con dr = com.ExecuteReader If dr.Read Then flag = True End If Catch ex As Exception MsgBox(ex.Message) Finally con.Close() com.Cancel() dr.Close() End Try If flag = True Then flag = False Response.Redirect("ShowGANS.aspx") Else MsgBox("Login fail", MsgBoxStyle.Critical, "Error") End If End Sub

18

VB CODES FOR STUDENTLOGIN.ASPX.VB


Partial Class Default2 Inherits System.Web.UI.Page Dim flag As Boolean = False Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Try con.Open() com.CommandText = "select * from student where roll='" & Trim(TextBox2.Text) & "' and name='" & Trim(TextBox1.Text) & "'" com.Connection = con dr = com.ExecuteReader If dr.Read Then flag = True End If Catch ex As Exception MsgBox(ex.Message) Finally con.Close() com.Cancel() dr.Close() End Try If flag = True Then flag = False Session("Roll") = Trim(TextBox2.Text) MsgBox("Login Success", MsgBoxStyle.Information, "LOGIN") Response.Redirect("Question.aspx") Else MsgBox("Login fail...", MsgBoxStyle.Critical, "Login Error") TextBox2.Text = "" TextBox1.Text = "" End If End Sub Protected Sub TextBox1_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox1.TextChanged End Sub

19

Protected Sub TextBox2_TextChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles TextBox2.TextChanged End Sub Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load End Sub End Class

20

VB CODES FOR QUESTION.ASPX.VB Partial Class _Default Inherits System.Web.UI.Page Shared s As String Shared i As Integer = 0 Shared j As Integer = 0 Shared flag As Boolean = False Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Response.AddHeader("Refresh", 5) If Not IsPostBack() Then datacon() End Sub Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click If flag = True Then datacon() End Sub Sub datacon() Try con.Open() com.CommandText = "select * from question" com.Connection = con adp.SelectCommand = com adp.Fill(ds, "question") j = ds.Tables(0).Rows.Count If i < ds.Tables(0).Rows.Count Then Label2.Text = ds.Tables(0).Rows(i).Item(0) Label1.Text = ds.Tables(0).Rows(i).Item(1) RadioButton1.Text = ds.Tables(0).Rows(i).Item(2) RadioButton2.Text = ds.Tables(0).Rows(i).Item(3) RadioButton3.Text = ds.Tables(0).Rows(i).Item(4) RadioButton4.Text = ds.Tables(0).Rows(i).Item(5) If flag = True Then com1.CommandText = "insert into gans values('" & CInt(Label2.Text) & "','" & s & "')" com1.Connection = con com1.ExecuteNonQuery() i = i + 1 flag = False

21

End If Else Response.Redirect("result.aspx") End If Catch ex As Exception MsgBox(ex.Message) Finally ds.Clear() con.Close() com.Cancel() com1.Cancel() RadioButton1.Checked = False RadioButton2.Checked = False RadioButton3.Checked = False RadioButton4.Checked = False End Try End Sub Protected Sub RadioButton_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles RadioButton1.CheckedChanged, RadioButton2.CheckedChanged, RadioButton3.CheckedChanged, RadioButton4.CheckedChanged If RadioButton1.Checked = True Then s = RadioButton1.Text If RadioButton2.Checked = True Then s = RadioButton2.Text If RadioButton3.Checked = True Then s = RadioButton3.Text If RadioButton4.Checked = True Then s = RadioButton4.Text flag = True End Sub End Class

22

VB CODES FOR RESULT.ASPX.VB Partial Class Default3 Inherits System.Web.UI.Page Dim r As Integer Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load r = Session("Roll") Static total As Integer Try con.Open() com.CommandText = "select * from ans" com.Connection = con com1.CommandText = " select * from gans" com1.Connection = con dr = com.ExecuteReader dr1 = com1.ExecuteReader While (dr.Read()) dr1.Read() If dr.Item(0) = dr1.Item(0) Then total = total + 1 End If End While If Not dr.Read Then com2.CommandText = "update student set total ='" & total & "'where roll='" & r & "'" com2.Connection = con com2.ExecuteNonQuery() End If Catch ex As Exception MsgBox(ex.Message) Finally com2.Cancel() con.Close() dr.Close() dr1.Close() End Try Try con.Open() com.CommandText = "select * from student where roll='" & r & "'" com.Connection = con

23

dr = com.ExecuteReader If dr.Read Then Label4.Text = dr.Item(0) Label3.Text = dr.Item(1) Label2.Text = dr.Item(2) Label1.Text = dr.Item(3) Label5.Text = dr.Item(4) End If Catch ex As Exception MsgBox(ex.Message) Finally con.Close() com.Cancel() dr.Close() End Try End Sub Protected Sub Button1_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Session.Abandon() Session.Clear() Response.Redirect("lOGIN.ASPX") End Sub End Class

24

VB CODES FOR GANS.ASPX.VB Partial Class ShowGANS Inherits System.Web.UI.Page Shared count As Integer = 0 Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load Try con.Open() com1.CommandText = "select * from gans" com1.Connection = con adp.SelectCommand = com1 adp.Fill(ds) GridView1.DataSource = ds GridView1.DataBind() Page.DataBind() Catch ex As Exception MsgBox(ex.Message, MsgBoxStyle.OkOnly, "Error") Finally con.Close() com1.Cancel() ds.Clear() GridView1.Dispose() End Try End Sub Protected Sub Button1_Click1(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button1.Click Try con.Open() com.CommandText = "delete gans" com.Connection = con com.ExecuteNonQuery() MsgBox("Deleted Successfully...") Catch ex As Exception MsgBox(ex.Message, MsgBoxStyle.Critical, "Error") Finally con.Close() com.Cancel() End Try End Sub

25

Protected Sub GridView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles GridView1.SelectedIndexChanged End Sub Protected Sub CheckBox1_CheckedChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles CheckBox1.CheckedChanged If CheckBox1.Checked = True Then Panel1.Visible = True Try con.Open() com2.CommandText = "select * from question" com2.Connection = con dr = com2.ExecuteReader While dr.Read count = dr.Item(0) End While count += 1 TextBox1.Text = count Catch ex As Exception MsgBox(ex.Message, MsgBoxStyle.Critical, "Error") Finally com2.Cancel() dr.Close() con.Close() End Try Else Panel1.Visible = False End If End Sub Protected Sub Button2_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles Button2.Click Try con.Open() com.CommandText = "insert into question values('" & Trim(TextBox1.Text) & "','" & Trim(TextBox2.Text) & "','" & Trim(TextBox3.Text) & "','" & Trim(TextBox4.Text) & "','" & Trim(TextBox5.Text) & "','" & Trim(TextBox6.Text) & "')" com.Connection = con com.ExecuteNonQuery()

26

com1.CommandText = "insert into ans values('" & Trim(TextBox1.Text) & "','" & Trim(TextBox7.Text) & "')" com1.Connection = con com1.ExecuteNonQuery() MsgBox("Question Inserted.....") Catch ex As Exception MsgBox(ex.Message, MsgBoxStyle.Critical, "Error") Finally con.Close() com.Cancel() com1.Cancel() TextBox1.Text = "" TextBox2.Text = "" TextBox3.Text = "" TextBox4.Text = "" TextBox5.Text = "" TextBox6.Text = "" TextBox7.Text = "" Panel1.Visible = False CheckBox1.Checked = False End Try End Sub End Class

27

DATABASE CODES
DATABASE NAME ONLINEEXAM

TABLE ADMIN

Column Name name(prim. key) pass

Data Type varchar varchar

Length 50 50

Allow Nulls

TABLE STUDENT

Column Name roll(prim. key) name sex sub total address contact

Data Type varchar varchar char char int varchar bigint

Length 10 50 10 10 4 50 8

Allow Nulls

yes

yes

28

DATABASE NAME QUESTION

Column Name queno(prim. key) que op1 op2 op3 op4

Data Type int varchar varchar varchar varchar varchar

Length 4 400 50 50 50 50

Allow Nulls

DATABASE NAME ANS

Column Name queno(prim. key) ans

Data Type varchar varchar

Length 4 50

Allow Nulls

DATABASE NAME GANS

Column Name queno(prim. key) gans

Data Type varchar varchar

Length 4 50

Allow Nulls

yes

29

Input and Output Forms

1. Home Page

30

2. Student Registration

31

3. Result Form

32

4. Administrative Registration

33

5. Student ogin

34

6. Question Form

35

7. Add New Question

36

8. About us

37

9.

ontact us

38

Conclusion
This Web Application provides facility to conduct online examination worldwide. It saves time as it allows number of students to give the exam at a time and displays the results as the test gets over, so no need to wait for the result. It is automatically generated by the server. Administrator has a privilege to create, modify and delete the test papers and its particular questions. User can register, login and give the test with his specific id, and can see the results as well.

39

Bibliography
y Programming

Microsoft

ASP.NET 2.0 Core Reference


By: Dino Esposito

y ASP.NET 2.0 All-in-One Desk For Dummies


By:Wlley Publishing,Inc.

y Professional Asp.Net 2.0


By: Evjen, Hanselman, Rader.

y Beginning Asp.Net 2.0


By: Chris Hart.

y Pro Asp.Net 2.0 In Vb 2005


By: Laurence Moroney, Matthew Macdonald, and Matthew Macdonald.

y Asp.Net 2.0 Black Book, 2007 Eds


By: Dreamtech Press, Kogent Solutions Inc.

Das könnte Ihnen auch gefallen