1. Online
Examination
Used Technologies –
Microsoft Visual Studio 2010
SQL Server Built-In Database
Code behind – C# (ASP.NET)
Name – Rupam Dey
Dept. – BCA (5th
Sem)
Sub. – Minor Project
Roll No. – 11901212022
Siliguri Institute of Technology
(WBUT)
2. Online Examination
2 | P a g e
ACKNOWLEDGEMENT
We express our sincere thanks to Mr. S. K. Bhattachrya, HOD and all
the faculty of Computer Application department of Siliguri Institute
of Technology for providing us the excellent opportunity to undergo
such wonderful and effective in-curriculum training. It has truly been
an engrossing and invaluable experience and provided us with the
much needed corporate exposure and industrial awareness.
And lastly thanks to all.
3. Online Examination
3 | P a g e
DECLARATION
We Rupam Dey, Nilanjan Majumdar, Shoumyo Das, Sumit Mitra and
Goutam Bhattachraya here by want to declare that the project on
Online Examination started on October, 2014. This is a group
project of BCA Final Year (5th
Semester) Minor Project. This project is
not submitted to any organization till date and has maintained all
rules and regulation of the university.
____________________ ____________________
Rupam Dey Nilanjan Majumdar
____________________ ____________________
Shoumyo Das Sumit Mitra
____________________
Gautam Bhattachraya
4. Online Examination
4 | P a g e
Date :
CERTIFICATE
This is to certify that the project entitled “Online
Examination” has been developed by RUPAM DEY with
the help of his group.
He has used Microsoft Visual Studio 2010, C# programming
language, Adobe Photoshop and built-in SQL serves as
Database for the project. His work is satisfactory.
I wish him all the best for his bright future.
______________________
S. K. Bhattachraya
HOD of Computer Application department
Siliguri Institute of Technology
5. Online Examination
5 | P a g e
INDEX
Objective
Introduction
Used Technologies
Requirement Specification
Class Diagram
Data Flow Diagram
ER Diagram
Code of every page with the outputs
Feasibility Study
Testing
Conclusion
Future Encasements
6. Online Examination
6 | P a g e
ABSTRACT
Objective –
Main Objective behind to this Project is to make easy to
conduct paper.
The main problem that exists in the manual
system is the conducting a exam at the same time of the specified
duration at different places and collecting them at one place for
evaluation , and then arranging them , and declaring result , which
is quite time consuming and cumbersome process in itself.
Through Online Exam We can save the time expending between
Paper and Result. The main idea behind developing this project is
to provide fast way of conducting exam through internet. Through
The Help of project , a person can be register free and give paper for
checking his ability.
8. Online Examination
8 | P a g e
INTRODUCTION
Stored Repository of exams General problem with time for students
Auto grading Flexible Time Saver Security Develop a system which
allows the faculty to create, modify and store questions which can be
grouped together to form sections can be grouped together to form
tests /examinations.
Online Examination will reduce the huge work done by
teachers, administrators and also students.
Responses by the candidate will be checked automatically and
instantly.
Reduce paper work.
Result will show immediately that reduce student anxiety.
Can be used anywhere anytime as it is web based application.
Useful for teachers for managing question paper and exam.
Online exam can be conduct any time.
9. Online Examination
9 | P a g e
USED TECHNOLOGIES
ASP.NET 4.0
SQL Server Built-In Database
C# programming language
SYSTEM REQUIREMENT
Any Operating System
Any Updated Web Browser
10. Online Examination
10 | P a g e
Context Diagram
The Administrator can do the following:
Create and update accounts
Create, insert, delete questions
Add subjects
Update exam schedule
Maintain the database
View all user records
View result of all students
The students can do the followings:
Create account
Choose subject to give exam
Check result
Public Profiles
16. Online Examination
16 | P a g e
REGISTRATION PAGE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
public partial class Registration : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack)
{
SqlConnection conn = new
SqlConnection(ConfigurationManager.ConnectionStrings["OExamConnString"].ConnectionString);
conn.Open();
string chkuser = "Select count(*) From users Where Mob='" + TextBox4.Text + "' ";
SqlCommand comm1 = new SqlCommand(chkuser, conn);
int temp1 = Convert.ToInt32(comm1.ExecuteScalar().ToString());
if (temp1 == 1) { Response.Write("Mobile Number Allready in Use. Try Something
Else."); }
conn.Close();
}
}
protected void TextBox4_TextChanged(object sender, EventArgs e)
{
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
}
protected void ImageButton1_Click(object sender, ImageClickEventArgs e)
{
}
protected void Button1_Click(object sender, EventArgs e)
{
try
{
Guid nguid = Guid.NewGuid();
SqlConnection conn = new
SqlConnection(ConfigurationManager.ConnectionStrings["OExamConnString"].ConnectionString);
conn.Open();
string insertuser = "Insert Into users
(ID,FN,LN,Gender,DOB,Mob,Email,Addr,City,Dist,State,Country,PWD) Values (@id, @fn, @ln, @g,
@dob, @mob, @email, @addr, @city, @dist, @state, @country, @pwd) ";
SqlCommand comm = new SqlCommand(insertuser, conn);
comm.Parameters.AddWithValue("@id", nguid.ToString());
comm.Parameters.AddWithValue("@fn", TextBox1.Text);
17. Online Examination
17 | P a g e
comm.Parameters.AddWithValue("@ln", TextBox2.Text);
comm.Parameters.AddWithValue("@g", DDL1.SelectedItem.ToString());
comm.Parameters.AddWithValue("@dob", TextBox9.Text);
comm.Parameters.AddWithValue("@mob", TextBox4.Text);
comm.Parameters.AddWithValue("@email", TextBox5.Text);
comm.Parameters.AddWithValue("@addr", TextBox6.Text);
comm.Parameters.AddWithValue("@city", DDL2.SelectedItem.ToString());
comm.Parameters.AddWithValue("@dist", DDL3.SelectedItem.ToString());
comm.Parameters.AddWithValue("@state", DDL4.SelectedItem.ToString());
comm.Parameters.AddWithValue("@country", DDL5.SelectedItem.ToString());
comm.Parameters.AddWithValue("@pwd", TextBox7.Text);
comm.ExecuteNonQuery();
Response.Redirect("Log In.aspx");
Response.Write("Thanks For Registering");
conn.Close();
}
catch (Exception excep)
{
Response.Write("Error!: " + excep.ToString());
}
}
}
Output of the Registration page
18. Online Examination
18 | P a g e
LOGIN PAGE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Configuration;
public partial class Log_In : System.Web.UI.Page
{
protected void BTN1_log_Click(object sender, EventArgs e)
{
try
{
SqlConnection conn = new
SqlConnection(ConfigurationManager.ConnectionStrings[ OexamConnString ].ConnectionString);
conn.Open();
string chkuser = Select PWD from users where Mob=’ + TB1_log.Text + ’ ;
string chkfn = Select FN from users where Mob=’ + TB1_log.Text + ’ ;
SqlCommand 18omm._user = new SqlCommand(chkuser, conn);
string psw = 18omm._user.ExecuteScalar().ToString();
SqlCommand 18omm._fn = new SqlCommand(chkfn, conn);
string fn = 18omm._fn.ExecuteScalar().ToString();
TextBox1.Text = ;
TextBox1.Text = Hello + fn + . ;
if (psw == TB2_log.Text)
{
Session[ New ] = TextBox1.Text;
Response.Redirect( ./Select.aspx );
Response.Write( Thanks For Registering );
}
else
{
Response.Write( Login Credenttials Incorrect );
}
18omm._user.ExecuteNonQuery();
Response.Redirect( Log In.aspx );
Response.Write( Thanks For Registering );
conn.Close();
}
catch (Exception excep)
{
Response.Write( Error!: + excep.ToString());
}
}
protected void Button1_Click(object sender, EventArgs e)
{
try
{
19. Online Examination
19 | P a g e
SqlConnection conn = new
SqlConnection(ConfigurationManager.ConnectionStrings[ OexamConnString ].ConnectionString);
conn.Open();
string chkuser = Select PWD from users where Mob=’ + TB1_log.Text + ’ ;
string chkfn = Select FN from users where Mob=’ + TB1_log.Text + ’ ;
SqlCommand 19omm._user = new SqlCommand(chkuser, conn);
string psw = 19omm._user.ExecuteScalar().ToString();
SqlCommand 19omm._fn = new SqlCommand(chkfn, conn);
string fn = 19omm._fn.ExecuteScalar().ToString();
TextBox1.Text = ;
TextBox1.Text = Hello Admin + fn + . ;
if (TB2_log.Text== admin )
{
Session[ New ] = TextBox1.Text;
Response.Redirect( ./Eques.aspx );
Response.Write( Thanks For Registering );
}
else
{
Response.Write( Login Credenttials Incorrect );
}
19omm._user.ExecuteNonQuery();
Response.Redirect( Log In.aspx );
Response.Write( Thanks For Registering );
conn.Close();
}
catch (Exception excep)
{
Response.Write( Error!: + excep.ToString());
}
}
}
Output of the Log In page
20. Online Examination
20 | P a g e
WELCOME PAGE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Select : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session[ New ] != null)
{
lblWelcome.Text = Session[ New ].ToString();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect( Log In.aspx );
}
}
Output of the Welcome page
21. Online Examination
21 | P a g e
INSTRUCTION PAGE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Instructions : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session[ New ] != null)
{
lblWelcome.Text = Session[ New ].ToString();
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect( Log In.aspx );
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect( Subject.aspx );
}
}
Output of the Instruction page
22. Online Examination
22 | P a g e
SUBJECT SELECTION PAGE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
public partial class Subject : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if (Session["New"] != null)
{
lblWelcome.Text = Session["New"].ToString();
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("Log In.aspx");
}
}
Output of the Select Subject page
23. Online Examination
23 | P a g e
EXAM PAGE
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
public partial class Exam : System.Web.UI.Page
{
SqlConnection Con = new SqlConnection();
SqlCommand Cmd = new SqlCommand();
SqlCommand cmdAns = new SqlCommand();
SqlDataAdapter adp = new SqlDataAdapter();
DataSet ds = new DataSet();
DataSet ds1 = new DataSet();
protected void Page_Load(object sender, EventArgs e)
{
if (Session["CountdownTimer"] == null)
{
Session["CountdownTimer"] = new CountDownTimer(TimeSpan.Parse("2:30:00"));
(Session["CountdownTimer"] as CountDownTimer).Start();
}
string st=Request.QueryString["un"];
if (User.Identity.IsAuthenticated)
{
int i = 0;
Con.ConnectionString = "Data
Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|DBExam.mdf;Integrated
Security=True;User Instance=True";
Con.Open();
Cmd.Connection = Con;
Cmd.CommandText = "select * from Q_data where ID = '"+st+"' ";
Cmd.ExecuteNonQuery();
adp.SelectCommand = Cmd;
adp.Fill(ds);
else
{
for (i = 0; i <= ds.Tables[0].Rows.Count - 1; i++)
{
if (lnk01.Text == ds.Tables[0].Rows[i][1]) {
lnk01.Enabled = false;
}
if (lnk02.Text == ds.Tables[0].Rows[i][1]) {
lnk02.Enabled = false;
}
if (lnk03.Text == ds.Tables[0].Rows[i][1]) {
lnk03.Enabled = false;
}
if (lnk04.Text == ds.Tables[0].Rows[i][1]) {
lnk04.Enabled = false;
24. Online Examination
24 | P a g e
}
if (lnk05.Text == ds.Tables[0].Rows[i][1]) {
lnk05.Enabled = false;
}
if (lnk06.Text == ds.Tables[0].Rows[i][1]) {
lnk06.Enabled = false;
}
if (lnk07.Text == ds.Tables[0].Rows[i][1]) {
lnk07.Enabled = false;
}
if (lnk08.Text == ds.Tables[0].Rows[i][1]) {
lnk08.Enabled = false;
}
if (lnk09.Text == ds.Tables[0].Rows[i][1]) {
lnk09.Enabled = false;
}
if (lnk10.Text == ds.Tables[0].Rows[i][1]) {
lnk10.Enabled = false;
}
if (lnk11.Text == ds.Tables[0].Rows[i][1]) {
lnk11.Enabled = false;
}
if (lnk12.Text == ds.Tables[0].Rows[i][1]) {
lnk12.Enabled = false;
}
if (lnk13.Text == ds.Tables[0].Rows[i][1]) {
lnk13.Enabled = false;
}
if (lnk14.Text == ds.Tables[0].Rows[i][1]) {
lnk14.Enabled = false;
}
if (lnk15.Text == ds.Tables[0].Rows[i][1]) {
lnk15.Enabled = false;
}
}
}
Con.Close();
}
else
{
Response.Redirect("login.aspx");
}
Label2.Text="ALL THE BEST t"+Request.QueryString["fn"];
}
public class CountDownTimer
{
public TimeSpan TimeLeft;
System.Threading.Thread thread;
public CountDownTimer(TimeSpan original)
{
this.TimeLeft = original;
}
public void Start()
{
// Start a background thread to count down time
thread = new System.Threading.Thread(() =>
{
while (true)
{
32. Online Examination
32 | P a g e
}
Output of the Question Insertion page
(after Admin Log In)
CONTACT US PAGE
33. Online Examination
33 | P a g e
Output of the Contact Us page
FEASABILITY STUDY
Feasibility is the analysis of risks, costs & benefits relating to
economics, technology & user operation.
There are several types of feasibility depending on the aspect they
covers.
Some important feasibilities are as follows -
(I) Technical Feasibility
(II) Operational Feasibility
(III) Economical Feasibility
When we are developing the system (software), we must know the
proposed system will be feasible or i.e. practically implemented or
not it may possible the proposed( candidate ) system may not
implemented due to many reasons like it may take long time in
development than the specified time limit ,cost may increase than
proposed one etc. Therefore we must analyze the feasibility of the
system.
34. Online Examination
34 | P a g e
TESTING
Software testing is the process of executing a program with
intension of finding errors in the code. It is a process of
evolution of system or its parts by manual or automatic means
to verify that it is satisfying specified or requirements or not.
Generally, no system is perfect due to communication problems
between user and developer, time constraints, or conceptual
mistakes by developer.
To purpose of system testing is to check and find out these
errors or faults as early as possible so losses due to it can be
saved.
Testing is the fundamental process of software success.
Testing is not a distinct phase in system development life cycle
but should be applicable throughout all phases i.e. design
development and maintenance phase.
Testing is used to show incorrectness and considered to success
when an error is detected.
35. Online Examination
35 | P a g e
CONCLUTION
The package is designed in such a way that future modifications can
be done easily. The following conclusions can be deduced from the
development of the project –
Automation of the entire system improves the efficiency.
It provides a friendly graphical user interface.
It gives appropriate access to the authorized users depending
on their permission.
It effectively helps to save paper.
The system has adequate scope for modification in future if it is
necessary.
36. Online Examination
36 | P a g e
FUTURE ENHANCEMENTS
As we said previously that this is a short term / minor project so we
did not go to the deep of the mentioned topic but I and my team
members have worked hard in order to take a step to save nature as
well as paper. Still we found out that the project can be done in a
better way.