Anda di halaman 1dari 71

CONTENTS

S.NO. DESCRIPTION PAGE NO.

1 OBJECTIVE OF PROJECT 1-2

2. THEORETICAL BACK GROUND OF PROJECT 3-4

3. DEFINITION OF PROBLEM 5-7

4. SYSTEM ANALYSIS AND DESIGN 8-14

5. HARDWARE AND SOFTWARE REQUIREMENT 15-16

6. PLATFORM SPECIFICATION 17-23

7. ER-DIAGRAM 24-25

8. DATA FLOW DIAGRAM 26-27

9. DATABASE DESIGN 28-31

10. INPUT OUTPUT SCREEN DESIGNING 32-40

11. CODING 41-67

12. LIMITATION AND FUTURE SCOPE 68-69

13. CONCLUSION 70-71

14. REFRENCES 72-73

0
CHAPTER 1
Objective of the Project

1
Objective of the Project

Our project is based on the management of Students Examinations


information. It manages student information very effectively and also provides a
quick access to various student information. It provides strong security to the
database and also denies unauthorized access. We can create new user, delete an
existing user or view existing user. The administrator of the system can change the
password of the existing user.

One can also add new student‟s information in the database or delete the
previously entered information. It also facilitates us to take Back-ups of the data.
Our project is very useful in mapping the meanings of interactions of real world
enterprise into conceptual Schema.

This project is very useful for the management of information of students in


Schools, Colleges and various other educational institutes. This project minimize
the task of managing large students information and makes it easier for the
intended user.

Using this project we are just a single click away from the desired student
information.

2
Chapter 2
Theoretical Background of Project

3
Existing System

 Lack of security of data.

 More man power.

 Time consuming.

 Consumes large volume of pare work.

 Needs manual calculations.

 No direct role for the higher officials.

Proposed System

The aim of proposed system is to develop a system of improved


facilities. The proposed system can overcome all the limitations of the
existing system. The system provides proper security and reduces the
manual work.
 Security of data.
 Ensure data accuracy‟s.

 Proper control of the higher officials.

 Minimize manual data entry.

 Minimum time needed for the various processing.

 Greater efficiency.

 Better service.

 User friendliness and interactive.

4
Chapter 3
Definition of Problem

5
LIMITATION OF EXISTING SYSTEM
After studding current system we find that current system has less facility and
it takes much time to perform the operations. Current system cannot provide the
central data storage and it leads to the data redundancy. Current system is not
also real-time so it takes much human hours to perform the tasks.
The existing system in the organization is not completely computerized. The
system is not working smoothly; therefore the organization has decided to replace
it with a completely computerized one. The problems, which the existing system
faces, are:

Benefits of offline examination

To catch up with the advancements in technology and be adapt with the latest

trends and add to your college's USP, take your college online and be ahead in

using technologies for conducting exams and evaluating students. Today in most

schools, a teacher spend approximately 60% of their time in doing clerical work

like making question papers, checking answer copies and preparing results. The

most important and critical of his/her duties i.e. teaching - usually takes a back

seat. Offline examination project attempts to bridge this gap between the teacher

and his/her ultimate objective of being a teacher. Using Offline examination

project by a single click of the mouse, the teacher can generate a unique question

paper for each student randomly and based on the exam result teacher can find out

6
exactly which portion of syllabus or which student needs further attention. Using

Offline examination project you can:-

 Empower the teachers to give personal attention to their students.

 Assist schools in properly identifying and nurturing their talent pool. And

most important

 Let the teachers teach, and let our tailor-made software create and conduct

regular test.

 Offline examination project provides the flexibility to corporations, non-

profits and government to conduct assessment for different skills efficiently

for masses.

7
CHAPTER 4
System Analysis and Design

8
SYSTEM ANALYSIS

Introduction to System Analysis

System analysis is a process of gathering and interpreting facts,

diagnosing problems and the information to recommend

improvements on the system. It is a problem solving activity that

requires intensive communication between the system users and

system developers. System analysis or study is an important phase of

any system development process. The system is studied to the

minutest detail and analyzed. The system analyst plays the role of the

interrogator and dwells deep into the working of the present system.

The system is viewed as a whole and the input to the system are

identified. The outputs from the organizations are

traced to the various processes. System analysis is concerned with

becoming aware of the problem, identifying the relevant and

decisional variables, analyzing and synthesizing the various factors

and determining an optimal or at least a satisfactory solution or

program of action.

A detailed study of the process must be made by various

techniques like interviews, questionnaires etc. The data collected by

these sources must be scrutinized to arrive to a conclusion. The

9
conclusion is an understanding of how the system functions. This

system is called the

Existing system. Now the existing system is subjected to close study

and problem areas are identified. The designer now functions as a

problem solver and tries to sort out the difficulties that the enterprise

faces. The solutions are given as proposals. The proposal is then

weighed with the existing system analytically and the best one is

selected. The proposal is presented to the user for an endorsement by

the user. The proposal is reviewed on user request and suitable

changes are made. This is loop that ends as soon as the user is

satisfied with proposal.

Preliminary study is the process of gathering and interpreting

facts, using the information for further studies on the system.

Preliminary study is problem solving activity that requires intensive

communication between the system users and system developers. It

does various feasibility studies. In these studies a rough figure of the

system activities can be obtained, from which the decision about the

strategies to be followed for effective system study and analysis can

be taken.

10
FEASIBILITY STUDY

Feasibility study is made to see if the project on completion will

serve the purpose of the organization for the amount of work, effort

and the time that spend on it. Feasibility study lets the developer

foresee the future of the project and the usefulness. A feasibility study

of a system proposal is according to its workability, which is the

impact on the organization, ability to meet their user needs and

effective use of resources. Thus when a new application is proposed it

normally goes through a feasibility study before it is approved for

development.

The document provide the feasibility of the project that is being

designed and lists various areas that were considered very carefully

during

The feasibility study of this project such as Technical, Economic and

Operational feasibilities. The following are its features:

11
A. TECHNICAL FEASIBILITY

The system must be evaluated from the technical point of view

first. The assessment of this feasibility must be based on an outline

design of the system requirement in the terms of input, output,

programs and procedures. Having identified an outline system, the

investigation must go on to suggest the type of equipment, required

method developing the system, of running the system once it has been

designed.

Technical issues raised during the investigation are:

 Does the existing technology sufficient for the suggested one?

 Can the system expand if developed?

The project should be developed such that the necessary functions


and performance are achieved within the constraints. The project is
developed within latest technology. Through the technology may
become obsolete after some period of time, due to the fact that never
version of same
Software supports older versions; the system may still be used. So

there are minimal constraints involved with this project. The system

has been developed using Java the project is technically feasible for

development.

12
B. ECONOMIC FEASIBILITY

The developing system must be justified by cost and benefit. Criteria to

ensure that effort is concentrated on project, which will give best, return at

the earliest. One of the factors, which affect the development of a new

system, is the cost it would require.

The following are some of the important financial questions asked

during preliminary investigation:

 The costs conduct a full system investigation.

 The cost of the hardware and software.

 The benefits in the form of reduced costs or fewer costly errors.

Since the system is developed as part of project work, there is no

manual cost to spend for the proposed system. Also all the resources

are already available, it give an indication of the system is

economically possible for development.

13
C. BEHAVIORAL FEASIBILITY

This includes the following questions:


 Is there sufficient support for the users?

The project would be beneficial because it satisfies the


objectives when developed and installed. All behavioral aspects are
considered carefully and conclude that the project is behaviorally
feasible.

14
CHAPTER 5
Hardware and software requirement

15
HARDWARE REQUIREMENTS

The following are the minimum requirement for the smooth and successful running of
the module.

Hardware requirement :-

 Microprocessor - Intel Dual Core or above

 Hard Disk - Min 500GB/1 TB for operating System & program


to setup properly

 Memory - 2GB Ram

 Display - CGA/VGA or higher.

 Key Board - 84/109 Keys use

 Mouse - Any standard mouse

 Printer - Any Laser printer

Software requirement :-

 Operating system: MS Windows 7 or higher


 RDBMS: MS Access 2007
 GUI tool: MS. Visual Basic6.0

16
CHAPTER – 6
PLATFORM SPECIFICATION

17
Platform Specification

Windows XP is used as platform for the project. This is a Microsoft product which
is GUI i.e. Graphical User Interface.

Front end
Visual Basic 6.0 is the most popular programming language in the
world, but does that make it suitable to use as a front end for Oracle, MS-Access,
FoxPro or any database.
VB is capable of producing software as sophisticated as any of the
other data access technique available. It provides various facilities and features for
advance software making. In VB, there are various types of database connectivity
used for programming. ActiveX Data Object (ADO), Remote Data Objects (RDO)
and Data Access Object (DAO) are used for connectivity.

Back end
The most common, quickest and easiest way to manage data is by
using a database. MS-Access provides facility to create database. It includes a
counter column to make an auto incrementing indexed file.

18
VISUAL BASIC

Visual Basic is an ideal programming language for developing sophisticated


professionals applications for Microsoft windows. It takes use of graphical user
interface creating robust and powerful applications. Graphical use interface as the
name suggests uses illustration for next, which enable user to interact with an
application. This feature makes it easier to comprehend things in a quicker and
easier way.

Coding in GUI is quite a traditional linear programming method where the


user is guided through a linear path execution and is limited to a small set of
operation. “Visual” refers to the method used to create Graphical User Interface
that uses illustration rather than the numerous lines of codes to describe the
appearance, function of interface elements. In a GUI environment, the number of
operation open to the user is much greater. Allowing more freedom to the user and
the developer. Features such as easier comprehension, user friendliness, faster
application development and many other aspects such as introduction to Active X
technology and internet features make Visual Basic an interesting toll to work
with.

Visual Basic was developed from the basic programming language. In the
1970‟s Microsoft started developing ROM based interpreted BASIC for early
microprocessor based computers. In 1982, Microsoft Quick Basic revolutionized.

19
BASIC and was legitimized as a serious development language for MS-Dos
environment. Later on, Microsoft Corporation created the enhanced version of
BASIC called visual basic for windows.
VISUAL BASIC – THE MAIN FEATURES

Visual Basic is just not a language. Visual Basic is an object oriented event
driven paid action fourth generation Programming Language. Visual Basic has
always been a choice of programmers for developing windows based GUI System
at the hands of the novice user.

SOME OF THE FEATURES OF VISUAL BASIC ARE

Native Code (Professional and Enterprises Editions). Compile a Visual


Basic project to native code for faster execution, Profiles native code using new
native code compiler options, and debug native code using the Visual C++
environment.

Create your Own Active X Controls (Professional and Enterprise Editions).


Combine existing controls, or create your own from scratch. Active X controls
created with Visual Basic have events, data binding support, licensing support,
property pages, Interface features, and more. Multiple Projects (All Editions).
Open multiple projects Active X controls.

Wizards (all Editions). In the Learning Edition, The Application Wizard is


new and the Setup Wizard has been enhanced to enable creating a dependency file
for a standard project (Professional and enterprise Editions). In the Professional

20
Migration Wizard has been enhanced to support distribution via the Internet; the
installation of remote server components using Distributed COM (DCOM) and
Remote Automation; and the ability to create dependency files of projects and
components created with Visual Basic. The Professional Edition also comes with
the wizard Toolbar and the Wizard Manager. Extensibility Class (Professional and
Enterprise Editions). The new Class allows you to programmatically extend the
development environment and control projects, events, code and visual elements.
Declare, Raise, and Handle your Own Events (All Editions). Object provided by
your components can raise events that can be handled in other applications. You
can handle events raised by other applications, or by your own objects, using With
Events variables. Events provide a simple alternative to asynchronous callbacks.
Code Editor Enhancements (All Editions). Block and Unblock Comments add and
remove the comment character or Debug mode allows you to get current values as
Tool Tips.

Visual Basic has rich set of features for accessing all types scalable database
from desktop database like DBS, SQL server and others. They are as follows: A
number of new data access feature have been added to Visual Basic for version
6.0. These include extensions to ADO, DAO and RDO object Class. In addition, a
paradigm that is entirely new to data access has been added- event-driven
programming. For the first time, developers can launch asynchronous operations
that indicate status or completion through events- you application need not poll to
test for completion of asynchronous events and in many cases you can activate
another process thread to make your applications more efficient and responsive.
Using ADO new features, your code can now use Active.

21
THE FOLLOWING TOPICS INTRODUCE
SELECTED NEW FEATURES

 New Client/Server Active Data Object (ADO) Features

Introduces new features of ADO, including support of RDO, segmentation of the


ADO/Jet architecture, and enhanced error management.
 New Remote Data Object (RDO) Features

Summarize what‟s new in RDO, including event-driven programming, a new client


batch cursor library, batch sophistic queries, and more.
 New Remote Data Control Features

Presents a table outlining six new properties to implement optimistic client batch
update operation.

22
MICROSOFT ACCESS

Accsess_1997 Is Database Management System Microcomputers. Microsoft


Corporation U.S.A Produced it. It is Revised and an Enhanced Version Of „99‟
Software. It is also called Relation Database Management System (RDBMS).

It helps us to design Database file as per the requirements and as per the
specified format. It also helps us to Edit, View and Change Data in the Database.
The Command are easy to use , once the database is ready we can use it to retrieve
selected information form it and print report as per the desired format .The best
part is that the data stored in the database is flexible i.e. We can change and modify
the contents as well as off the Database any Number of Times.

Acces-2000 is Very Simple to learn .The Commands are very Powerful and
Flexible. It is possible to list and print Report, replace contents of a particular field
in the entire Database .We can arrange the Entire Information in a particular order.
Beside this Access-2000 has many other powerful common for Managing Multiple
Database File and for the Protection of Database program file etc. We can also use
it on local area network where several person work simultaneously on different
Computers on a single or Different Application.

23
CHAPTER – 7
ER Diagram

24
25
CHAPTER – 8
DATA FLOW DIAGRAM

26
27
CHAPTER – 9
DATABASE Design

28
DATABASE
1. Table Name: c

Field Name Data Type


Question_no. Number
Question Text
A1 Text
A2 Text
A3 Text
A4 Text

2. Table Name :cc


Field Name Data Type

Question_no. Text

Question Memo

3. Table Name : CClang

Field Name Data Type


Question Text
Answer Text

4. Table Name :C lang

Field Name Data Type


Question Text
Answer Text

5.DBASEANS

29
Field Name Data Type
Question Text
Answer Text

6. Table Name :DBMS

Field Name Data Type


Question_No Text
Question Text
A1 Text
A2 Text
A3 Text
A4 Text

7. Table Name :OS

Field Name Data Type


Question_No Text
Question Text
A1 Text
A2 Text
A3 Text
A4 Text

30
8. Table Name :OSANS

Field Name Data Type


Question Text
Answer Text

9. Table Name :Registration

Field Name Data Type


Id Text
Name Text

10. Table Name :Temp

Field Name Data Type


Quastion Text
Answer Number

31
CHAPTER – 10
INPUT AND OUTPUT SCREEN DESIGNING

32
Login Form

33
Registration

34
Change Password

35
Index

36
C Language

37
C++

38
Show Result

39
Report

40
CHAPTER – 11
CODING

41
Login Form

Dim c As Integer, d As Integer


Private Sub Command1_Click()
c=0
d=0
If Len(Text1.Text) <= 0 Then
MsgBox "Please Enter User Name", vbInformation + vbOKOnly, "OnLine
Examination"
Text1.SetFocus
End If
If Len(Text2.Text) <= 0 Then
MsgBox ("Please Enter Password"), vbInformation + vbOKOnly, "Online
Examination"
Text2.SetFocus
End If

rs.MoveFirst
On Error Resume Next
While Not rs.EOF = True
If rs(9) = Trim(Text1.Text) Then
c=1
End If
rs.MoveNext
Wend
42
If c = 0 Then
MsgBox "invalid user", vbInformation + vbOKCancel, "online examination"
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
Exit Sub
End If

rs.MoveFirst
While Not rs.EOF = True
If rs(9) = Trim(Text1.Text) And rs(10) = Trim(Text2.Text) Then
d=1
Form2.Show
Unload Me
End If
rs.MoveNext
Wend
If d = 0 Then
MsgBox "invalid Password", vbInformation + vbOKCancel, "online
examination"
Text2.Text = ""
Text2.SetFocus
Exit Sub
End If

43
End Sub

Private Sub Command2_Click()


Form3.Show
Unload Me
End Sub

Private Sub Form_Load()


connect
End Sub

Sub connect()
If cn.State = adStateOpen Then
cn.Close
End If
If rs.State = adStateOpen Then
rs.Close
End If
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\project\registration.mdb;Persist Security Info=False"
rs.Open "select * from register", cn, adOpenDynamic, adLockOptimistic
End Sub

44
Private Sub Option3_Click()
Form4.Show
Unload Me

End Sub

Private Sub Option4_Click()


MsgBox "ARE YOU SURE YOU CAN'T CHANGE THAT", vbInformation +
vbOKOnly, "ONLINE EXAMINATION"
End Sub

Registration

Dim counter As Integer


Dim b As Integer

Private Sub Command1_Click()


b=0
rs.MoveFirst
While Not rs.EOF = True
If rs(9) = Trim(Text10.Text) Then
b=1
End If
rs.MoveNext
Wend

45
If b = 0 Then
rs.AddNew
rs(0) = Trim(Text10.Text) & counter
rs(1) = Trim(Text1.Text)
rs(2) = Trim(Text3.Text)
rs(3) = Trim(Text4.Text)
rs(4) = Trim(Text5.Text)
rs(5) = Trim(Combo1.Text)
rs(6) = Trim(Text7.Text)
rs(7) = Trim(Text8.Text)
rs(8) = Trim(Text9.Text)
rs(9) = Trim(Text10.Text)
rs(10) = Trim(Text11.Text)
rs(11) = Trim(Text12.Text)
If (Text11.Text = Text12.Text) Then
rs.Update
MsgBox "your Record Submitted "
Form1.Show
Unload Form3
Else
MsgBox "PASSWARD IS INCORRECT"
Text11.Text = ""
Text12.Text = ""
Text11.SetFocus
rs.MoveFirst
End If
End If
46
If b = 1 Then
MsgBox "THEIR IS ALREADY A REGISTERED USER IN THIS
NAME", vbInformation + vbOKOnly, "ONLINE EXAMMINATION"
rs.MoveFirst
Text10.SetFocus
'Text1.Text = ""
'Text3.Text = ""
'Text4.Text = ""
'Text5.Text = ""
Combo1.Text = "Select A State"
Text7.Text = "-"
'Text8.Text = ""
'Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
Text12.Text = ""
End If
End Sub

Private Sub Form_Load()


connect
counter = 0
While Not rs.EOF = True
counter = counter + 1
rs.MoveNext
Wend
47
End Sub
Sub connect()
If cn.State = adStateOpen Then
cn.Close
End If
If rs.State = adStateOpen Then
rs.Close
End If
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\project\registration.mdb;Persist Security Info=False"
rs.Open "select * from register", cn, adOpenDynamic, adLockOptimistic
End Sub

Change Password

Dim y As Integer, n As Integer


Dim sql, sql1 As String

Private Sub Command1_Click()


n=0
While Not rs.EOF = True
If rs(9) = Trim(Text1.Text) And rs(10) = Trim(Text2.Text) Then
n=1
End If
rs.MoveNext

48
Wend

If n = 1 Then
If Trim(Text3.Text) = Trim(Text4.Text) Then
y=0
sql = "update register set passward = '" & Trim(Text3.Text) & "' where
user_name ='" & Trim(Text1.Text) & "'"
cn.Execute sql
sql1 = "update register set confirm_passward='" & Trim(Text4.Text) & "'
where user_name='" & Trim(Text1.Text) & "'"
cn.Execute sql1
MsgBox "your passward has been updated", vbInformation + vbOKOnly,
"online examination"
Form1.Show
Unload Me
Else
MsgBox "passward has incorrect", vbInformation + vbOKOnly, "online
examination"
End If

End If

If n = 0 Then
MsgBox "please enter correct user name and passward", vbInformation +
vbOKOnly, "online examination"

49
End If

Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
rs.MoveFirst

End Sub

Private Sub Form_Load()


connect
End Sub
Sub connect()
If rs.State = adStateOpen Then
rs.Close
End If
If cn.State = adStateOpen Then
cn.Close
End If
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\project\registration.mdb;Persist Security Info=False"
rs.Open "select * from register ", cn, adOpenDynamic, adLockOptimistic
End Sub

50
Index
Private Sub Command1_Click()
If Option1.Value = True Then
Form5.Show
Unload Me
End If
If Option2.Value = True Then
Form6.Show
Unload Me
End If
If Option3.Value = True Then
Form8.Show
Unload Me
End If
If Option4.Value = True Then
Form9.Show
Unload Me
End If
End Sub

51
C Language

Dim a As Integer
Dim b As Integer

Private Sub Command1_Click()


Dim aa As String

If Label2.Caption <> "" Then


If Option1.Value = True Then
aa = Option1.Caption
ElseIf Option2.Value = True Then
aa = Option2.Caption
ElseIf Option3.Value = True Then
aa = Option3.Caption
ElseIf Option4.Value = True Then
aa = Option4.Caption
End If
End If

'On Error Resume Next


If rs2(0) = rs(0) And rs2(0) = Label2.Caption Then
If rs2(1) <> aa Then
a=0
Else
52
a=1
End If
End If

If a = 0 Then
rs1.AddNew
rs1(0) = Label2.Caption
rs1(1) = 0
rs1.Update
End If

If a = 1 Then
rs1.AddNew
rs1(0) = Label2.Caption
rs1(1) = 10
rs1.Update
End If

Option1.Value = False
Option2.Value = False
Option3.Value = False
Option4.Value = False

rs1.MoveNext
rs2.MoveNext

53
rs.MoveNext

If rs.EOF = True Then


MsgBox "YOUR EXAMINATION IS DONE", vbInformation + vbOKOnly,
"0NLINE EXAMINATION"
Form7.Show
Unload Me
Exit Sub
End If

Label2.Caption = rs(0)
Label1.Caption = rs(1)
Option1.Caption = rs(2)
Option2.Caption = rs(3)
Option3.Caption = rs(4)
Option4.Caption = rs(5)

End Sub

Sub connect()
If cn.State = adStateOpen Then
cn.Close
End If
If rs.State = adStateOpen Then
rs.Close

54
End If
If rs1.State = adStateOpen Then
rs1.Close
End If
If rs2.State = adStateOpen Then
rs2.Close
End If
If rs3.State = adStateOpen Then
rs3.Close
End If
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\project\registration.mdb;Persist Security Info=False"
rs.Open "SELECT * FROM C", cn, adOpenDynamic, adLockOptimistic
rs1.Open "SELECT * FROM temp", cn, adOpenDynamic, adLockOptimistic
rs2.Open "SELECT * FROM Clang", cn, adOpenDynamic, adLockOptimistic
rs3.Open "delete * from temp", cn, adOpenDynamic, adLockOptimistic

End Sub

Private Sub Command2_Click()


On Error Resume Next
rs1.Delete (adAffectCurrent)

rs.MovePrevious
rs1.MovePrevious

55
rs2.MovePrevious

If rs.BOF = True Then


MsgBox "you are in begin"
rs.MoveFirst
rs1.MoveFirst
rs2.MoveFirst
Command2.Enabled = False
End If

Option1.Value = False
Option2.Value = False
Option3.Value = False
Option4.Value = False

Label2.Caption = rs(0)
Label1.Caption = rs(1)
Option1.Caption = rs(2)
Option2.Caption = rs(3)
Option3.Caption = rs(4)
Option4.Caption = rs(5)
End Sub

Private Sub Form_Load()


connect

56
Label2.Caption = rs(0)
Label1.Caption = rs(1)
Option1.Caption = rs(2)
Option2.Caption = rs(3)
Option3.Caption = rs(4)
Option4.Caption = rs(5)
End Sub

C++
Dim a, i As Integer

Private Sub Command1_Click()


Dim aa As String

If Label2.Caption <> "" Then


If Option1.Value = True Then
aa = Option1.Caption
ElseIf Option2.Value = True Then
aa = Option2.Caption
ElseIf Option3.Value = True Then
aa = Option3.Caption
ElseIf Option4.Value = True Then
aa = Option4.Caption
End If
End If
57
If rs2(0) = rs(0) And rs2(0) = Label2.Caption Then
If rs2(1) <> aa Then
a=0
Else
a=1
End If
End If

If a = 0 Then
rs1.AddNew
rs1(0) = Label2.Caption
rs1(1) = 0
rs1.Update
End If

If a = 1 Then
rs1.AddNew
rs1(0) = Label2.Caption
rs1(1) = 10
rs1.Update
End If

Option1.Value = False
Option2.Value = False

58
Option3.Value = False
Option4.Value = False

rs1.MoveNext
rs2.MoveNext
rs.MoveNext

If rs.EOF = True Then


MsgBox "YOUR EXAMINATION IS DONE", vbInformation + vbOKOnly,
"0NLINE EXAMINATION"
Form7.Show
Unload Me
Exit Sub
End If

Label2.Caption = rs(0)
Label1.Caption = rs(1)
Option1.Caption = rs(2)
Option2.Caption = rs(3)
Option3.Caption = rs(4)
Option4.Caption = rs(5)

End Sub

59
Sub connect()
If cn.State = adStateOpen Then
cn.Close
End If
If rs.State = adStateOpen Then
rs.Close
End If
If rs1.State = adStateOpen Then
rs.Close
End If
If rs2.State = adStateOpen Then
rs2.Close
End If
If rs3.State = adStateOpen Then
rs3.Close
End If

cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\project\registration.mdb;Persist Security Info=False"
rs.Open "SELECT * FROM CC", cn, adOpenDynamic, adLockOptimistic
rs1.Open "select * from temp", cn, adOpenDynamic, adLockOptimistic
rs2.Open "select * from cclang", cn, adOpenDynamic, adLockOptimistic
rs3.Open "delete * from temp", cn, adOpenDynamic, adLockOptimistic

End Sub

60
Private Sub Command2_Click()

On Error Resume Next


rs1.Delete (adAffectCurrent)

rs.MovePrevious
rs1.MovePrevious
rs2.MovePrevious

If rs.BOF = True Then


MsgBox "you are in begin"
rs.MoveFirst
rs1.MoveFirst
rs2.MoveFirst
Command2.Enabled = False
End If

Option1.Value = False
Option2.Value = False
Option3.Value = False
Option4.Value = False

Label2.Caption = rs(0)

61
Label1.Caption = rs(1)
Option1.Caption = rs(2)
Option2.Caption = rs(3)
Option3.Caption = rs(4)
Option4.Caption = rs(5)

End Sub

Private Sub Form_Load()


connect

Label2.Caption = rs(0)
Label1.Caption = rs(1)
Option1.Caption = rs(2)
Option2.Caption = rs(3)
Option3.Caption = rs(4)
Option4.Caption = rs(5)

End Sub

62
Show Result

Private Sub Command1_Click()


Dim t As Integer
If t = 0 Then
DataReport1.Show
t=1
End If
If t = 1 Then
DataReport1.Show
End If
End Sub

Private Sub Command2_Click()


On Error Resume Next
DataEnvironment1.rsCommand1.Close
DataEnvironment1.rsCommand1.Open "select * from temp", cn,
adOpenDynamic, adLockOptimistic
Form1.Show
63
Unload Me
End Sub

Private Sub Form_Load()


Command2.Value = False
t=o
connect
If Command1.Value = True Then
Command2.Value = True
End If

End Sub
Sub connect()
If rs.State = adStateOpen Then
rs.Close
End If
If cn.State = adStateOpen Then
cn.Close
End If
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=C:\project\registration.mdb;Persist Security Info=False"
rs.Open "select * from temp ", cn, adOpenDynamic, adLockOptimistic
End Sub

64
CHAPTER –12
LIMITATION AND
FUTURE SCOPE

65
Future Scope

1. Easily Switchable to centralized server system .


2. Accounts related information can be added to check the accounting related
information( regarding fees, dues) of the student.
3. In the future student photograph can be included.
4. Search and Update Option on student information can be implemented on
the basis of certain field.

66
CHAPTER – 13
CONCLUSION

67
Conclusion

This Web Application provides facility to conduct online examination world


wide. 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.

68
Chapter -14
REFERENCE

69
REFERENCE

 Mastering Visual Basic 6 Fundamentals – By Microsoft

 Introduction to VB Programming - By V.K. Jain

 Office 2007 made easy- Alen Neibauer, Tata McGraw Hill

 Database Management System- Alexies & Mathews

 Data Base system – By Korth & Silberschatz

70

Anda mungkin juga menyukai