SlideShare a Scribd company logo
1 of 36
Download to read offline
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)
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.
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
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
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
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.
Online Examination
7 | P a g e
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.
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
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
Online Examination
11 | P a g e
DATA FLOW DIAGRAM (DFD)
Online Examination
12 | P a g e
ER DIAGRAM
Online Examination
13 | P a g e
OUTPUTS
Online Examination
14 | P a g e
WITH
THE
C#
CODE
Online Examination
15 | P a g e
HOME PAGE
Output of the Home page
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);
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
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
{
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
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
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
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
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;
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)
{
Online Examination
25 | P a g e
System.Threading.Thread.Sleep(1000);
TimeLeft = TimeLeft.Subtract(TimeSpan.Parse("00:00:01"));
}
});
thread.Start();
}
}
public void exam()
{
Load += Page_Load;
}
protected void lnk01_Click(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?ID=" + lnk01.Text));
}
protected void Lnk02_Click(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk02.Text));
}
protected void lnk03_Click1(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk03.Text));
}
protected void lnk04_Click1(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk04.Text));
}
protected void lnk05_Click1(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk05.Text));
}
protected void lnk06_Click1(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk06.Text));
}
protected void lnk07_Click1(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk07.Text));
}
protected void lnk08_Click1(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk08.Text));
}
protected void lnk09_Click1(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk09.Text));
}
protected void lnk10_Click1(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk10.Text));
}
protected void lnk11_Click1(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk11.Text));
}
protected void lnk12_Click1(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk12.Text));
}
protected void Lnk13_Click1(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk13.Text));
Online Examination
26 | P a g e
}
protected void Lnk14_Click1(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk14.Text));
}
protected void Lnk15_Click1(object sender, EventArgs e)
{
Response.Redirect(("Q_DB.aspx?qi=" + lnk15.Text));
}
protected void btnsubmitans_Click(object sender, EventArgs e)
{
// submitexam();
int count = 0;
int notattempted = 0;
foreach (DataListItem Items in DataList2.Items)
{
RadioButton r1 = (RadioButton)Items.FindControl("RadioButton1");
RadioButton r2 = (RadioButton)Items.FindControl("RadioButton2");
RadioButton r3 = (RadioButton)Items.FindControl("RadioButton3");
RadioButton r4 = (RadioButton)Items.FindControl("RadioButton4");
Label l = (Label)Items.FindControl("lblCorAns");
//l3.Text = "hello?";
if (r1.Checked)
{
if (r1.Text == l.Text)
count++;
}
else
{
if (r2.Checked)
{
if (r2.Text == l.Text)
count++;
}
else
{
if (r3.Checked)
{
if (r3.Text == l.Text)
count++;
}
else
{
if (r4.Checked)
{
if (r4.Text == l.Text)
count++;
}
else
{
notattempted++;
}
}
}
}
}
//always zero!
lblRes.Visible = true;
lblRes.Text = "Your score is " + count + ". " + notattempted + " Questions were left
unattended!";
}
Online Examination
27 | P a g e
public void submitexam()
{
string u_ans = "";
RadioButton rdo = new RadioButton();
Label lbl = new Label();
int i;
if ((DataList2.Items.Count < 1))
{
Response.Write("Please Select any Question...");
}
else
{
lbl = (Label)DataList2.Items[0].FindControl("lblno");
rdo = (RadioButton)DataList2.Items[0].FindControl("rdoans1");
if ((rdo.Checked == true))
{
u_ans = rdo.Text;
}
rdo = (RadioButton)DataList2.Items[0].FindControl("rdoans2");
if ((rdo.Checked == true))
{
u_ans = rdo.Text;
}
rdo = (RadioButton)DataList2.Items[0].FindControl("rdoans3");
if ((rdo.Checked == true))
{
u_ans = rdo.Text;
}
rdo = (RadioButton)DataList2.Items[0].FindControl("rdoans4");
if ((rdo.Checked == true))
{
u_ans = rdo.Text;
}
try
{
Con.ConnectionString = "Data
Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|DBExam.mdf;Integrated
Security=True;User Instance=True";
Con.Open();
Cmd.CommandText = ("select ID, Cans from Q_data where(ID = "
+ (lbl.Text + (") and (Cans = '"
+ (u_ans + "')"))));
Cmd.Connection = Con;
Cmd.ExecuteNonQuery();
adp.SelectCommand = Cmd;
adp.Fill(ds1);
if ((ds1.Tables[0].Rows.Count < 1))
{
cmdAns.Connection = Con;
cmdAns.CommandText = ("insert into answers values('"
+ (User.Identity.Name + ("',"
+ (lbl.Text + ",'FALSE')"))));
cmdAns.ExecuteNonQuery();
Online Examination
28 | P a g e
}
else
{
cmdAns.Connection = Con;
cmdAns.CommandText = ("insert into answers values('"
+ (User.Identity.Name + ("',"
+ (lbl.Text + ",'TRUE')"))));
cmdAns.ExecuteNonQuery();
}
}
catch (Exception ex)
{
Response.Write("Error in Connection.");
}
}
}
}
Output of the Question Answer page
(Upper portion)
Online Examination
29 | P a g e
Output of Question Answer page
(Upper portion)
Showing the Result in the red box
(after submit the sheet)
Online Examination
30 | P a g e
QUESTION DATABASE UPDATING PAGE
(AFTER ADMIN LOG IN)
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 EQues : 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)
{
try
{
Guid nguid = Guid.NewGuid();
SqlConnection conn = new
SqlConnection(ConfigurationManager.ConnectionStrings["OExamConnString"].ConnectionString);
conn.Open();
string insertuser = "Insert Into Q_CPP (ID, Question, Op1, Op2, Op3, Op4,
Cans) Values (@id, @ques, @op1, @op2, @op3, @op4, @cans) ";
SqlCommand comm = new SqlCommand(insertuser, conn);
comm.Parameters.AddWithValue("@id", nguid.ToString());
comm.Parameters.AddWithValue("@ques", TextBox1.Text);
comm.Parameters.AddWithValue("@op1", TextBox2.Text);
comm.Parameters.AddWithValue("@op2", TextBox3.Text);
comm.Parameters.AddWithValue("@op3", TextBox4.Text);
comm.Parameters.AddWithValue("@op4", TextBox5.Text);
comm.Parameters.AddWithValue("@cans", TextBox6.Text);
comm.ExecuteNonQuery();
Response.Redirect("EQues.aspx");
Response.Write("Success");
conn.Close();
}
catch (Exception excep)
{
Response.Write("Error!: " + excep.ToString());
}
}
protected void Button3_Click(object sender, EventArgs e)
{
Online Examination
31 | P a g e
try
{
Guid nguid = Guid.NewGuid();
SqlConnection conn = new
SqlConnection(ConfigurationManager.ConnectionStrings["OExamConnString"].ConnectionString);
conn.Open();
string insertuser = "Insert Into Q_data (ID, Question, Op1, Op2, Op3, Op4,
Cans) Values (@id, @ques, @op1, @op2, @op3, @op4, @cans) ";
SqlCommand comm = new SqlCommand(insertuser, conn);
comm.Parameters.AddWithValue("@id", nguid.ToString());
comm.Parameters.AddWithValue("@ques", TextBox1.Text);
comm.Parameters.AddWithValue("@op1", TextBox2.Text);
comm.Parameters.AddWithValue("@op2", TextBox3.Text);
comm.Parameters.AddWithValue("@op3", TextBox4.Text);
comm.Parameters.AddWithValue("@op4", TextBox5.Text);
comm.Parameters.AddWithValue("@cans", TextBox6.Text);
comm.ExecuteNonQuery();
Response.Redirect("EQues.aspx");
Response.Write("Success");
conn.Close();
}
catch (Exception excep)
{
Response.Write("Error!: " + excep.ToString());
}
}
protected void Button4_Click(object sender, EventArgs e)
{
try
{
Guid nguid = Guid.NewGuid();
SqlConnection conn = new
SqlConnection(ConfigurationManager.ConnectionStrings["OExamConnString"].ConnectionString);
conn.Open();
string insertuser = "Insert Into Q_CA (ID, Question, Op1, Op2, Op3, Op4,
Cans) Values (@id, @ques, @op1, @op2, @op3, @op4, @cans) ";
SqlCommand comm = new SqlCommand(insertuser, conn);
comm.Parameters.AddWithValue("@id", nguid.ToString());
comm.Parameters.AddWithValue("@ques", TextBox1.Text);
comm.Parameters.AddWithValue("@op1", TextBox2.Text);
comm.Parameters.AddWithValue("@op2", TextBox3.Text);
comm.Parameters.AddWithValue("@op3", TextBox4.Text);
comm.Parameters.AddWithValue("@op4", TextBox5.Text);
comm.Parameters.AddWithValue("@cans", TextBox6.Text);
comm.ExecuteNonQuery();
Response.Redirect("EQues.aspx");
Response.Write("Success");
conn.Close();
}
catch (Exception excep)
{
Response.Write("Error!: " + excep.ToString());
}
}
protected void Button1_Click(object sender, EventArgs e)
{
Response.Redirect("Log In.aspx");
}
Online Examination
32 | P a g e
}
Output of the Question Insertion page
(after Admin Log In)
CONTACT US PAGE
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.
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.
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.
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.

More Related Content

Similar to Online_Examination

School admission process management system (Documention)
School admission process management system (Documention)School admission process management system (Documention)
School admission process management system (Documention)Shital Kat
 
Project Report Online Test
Project Report Online TestProject Report Online Test
Project Report Online TestAbhishek Kumar
 
PPT Final Project - College Website.pptx
PPT  Final Project - College Website.pptxPPT  Final Project - College Website.pptx
PPT Final Project - College Website.pptxRakesh Bhujade
 
Schooladmissionprocessmanagement 140227084915-phpapp01
Schooladmissionprocessmanagement 140227084915-phpapp01Schooladmissionprocessmanagement 140227084915-phpapp01
Schooladmissionprocessmanagement 140227084915-phpapp01Aarambhi Manke
 
Final Report PTAT
Final Report PTATFinal Report PTAT
Final Report PTATAchal Patel
 
Pritam online exam synopsis
Pritam online  exam synopsisPritam online  exam synopsis
Pritam online exam synopsisPritam Bhansali
 
Assesmment System - project report
Assesmment System - project reportAssesmment System - project report
Assesmment System - project reportArpit Pandya
 
Project.12
Project.12Project.12
Project.12GS Kosta
 
Attendance management system project report.
Attendance management system project report.Attendance management system project report.
Attendance management system project report.Manoj Kumar
 
Online course registration system development software engineering project pr...
Online course registration system development software engineering project pr...Online course registration system development software engineering project pr...
Online course registration system development software engineering project pr...MD.HABIBUR Rahman
 
System Analysis & Design Report on Summer Training System
System Analysis & Design Report on Summer Training SystemSystem Analysis & Design Report on Summer Training System
System Analysis & Design Report on Summer Training Systemthededar
 
IRJET - Automated Exam Cell System
IRJET - Automated Exam Cell SystemIRJET - Automated Exam Cell System
IRJET - Automated Exam Cell SystemIRJET Journal
 
Smart Sessional with QR Attendance
Smart Sessional with QR AttendanceSmart Sessional with QR Attendance
Smart Sessional with QR Attendancerashidalyasuog
 
Cars price predictor in machine learning
Cars price predictor in machine learningCars price predictor in machine learning
Cars price predictor in machine learningashutosh15699
 

Similar to Online_Examination (20)

School admission process management system (Documention)
School admission process management system (Documention)School admission process management system (Documention)
School admission process management system (Documention)
 
ShobhaResume
ShobhaResumeShobhaResume
ShobhaResume
 
Project Report Online Test
Project Report Online TestProject Report Online Test
Project Report Online Test
 
PPT Final Project - College Website.pptx
PPT  Final Project - College Website.pptxPPT  Final Project - College Website.pptx
PPT Final Project - College Website.pptx
 
Schooladmissionprocessmanagement 140227084915-phpapp01
Schooladmissionprocessmanagement 140227084915-phpapp01Schooladmissionprocessmanagement 140227084915-phpapp01
Schooladmissionprocessmanagement 140227084915-phpapp01
 
Final Report PTAT
Final Report PTATFinal Report PTAT
Final Report PTAT
 
Pritam online exam synopsis
Pritam online  exam synopsisPritam online  exam synopsis
Pritam online exam synopsis
 
Final project se
Final project seFinal project se
Final project se
 
4176.pdf
4176.pdf4176.pdf
4176.pdf
 
Assesmment System - project report
Assesmment System - project reportAssesmment System - project report
Assesmment System - project report
 
Project.12
Project.12Project.12
Project.12
 
Attendance management system project report.
Attendance management system project report.Attendance management system project report.
Attendance management system project report.
 
Online course registration system development software engineering project pr...
Online course registration system development software engineering project pr...Online course registration system development software engineering project pr...
Online course registration system development software engineering project pr...
 
Online cet
Online cetOnline cet
Online cet
 
System Analysis & Design Report on Summer Training System
System Analysis & Design Report on Summer Training SystemSystem Analysis & Design Report on Summer Training System
System Analysis & Design Report on Summer Training System
 
Exam management system
Exam management systemExam management system
Exam management system
 
Student acadamic system Final report
Student acadamic system Final reportStudent acadamic system Final report
Student acadamic system Final report
 
IRJET - Automated Exam Cell System
IRJET - Automated Exam Cell SystemIRJET - Automated Exam Cell System
IRJET - Automated Exam Cell System
 
Smart Sessional with QR Attendance
Smart Sessional with QR AttendanceSmart Sessional with QR Attendance
Smart Sessional with QR Attendance
 
Cars price predictor in machine learning
Cars price predictor in machine learningCars price predictor in machine learning
Cars price predictor in machine learning
 

Online_Examination

  • 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
  • 11. Online Examination 11 | P a g e DATA FLOW DIAGRAM (DFD)
  • 12. Online Examination 12 | P a g e ER DIAGRAM
  • 13. Online Examination 13 | P a g e OUTPUTS
  • 14. Online Examination 14 | P a g e WITH THE C# CODE
  • 15. Online Examination 15 | P a g e HOME PAGE Output of the Home page
  • 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) {
  • 25. Online Examination 25 | P a g e System.Threading.Thread.Sleep(1000); TimeLeft = TimeLeft.Subtract(TimeSpan.Parse("00:00:01")); } }); thread.Start(); } } public void exam() { Load += Page_Load; } protected void lnk01_Click(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?ID=" + lnk01.Text)); } protected void Lnk02_Click(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk02.Text)); } protected void lnk03_Click1(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk03.Text)); } protected void lnk04_Click1(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk04.Text)); } protected void lnk05_Click1(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk05.Text)); } protected void lnk06_Click1(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk06.Text)); } protected void lnk07_Click1(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk07.Text)); } protected void lnk08_Click1(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk08.Text)); } protected void lnk09_Click1(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk09.Text)); } protected void lnk10_Click1(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk10.Text)); } protected void lnk11_Click1(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk11.Text)); } protected void lnk12_Click1(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk12.Text)); } protected void Lnk13_Click1(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk13.Text));
  • 26. Online Examination 26 | P a g e } protected void Lnk14_Click1(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk14.Text)); } protected void Lnk15_Click1(object sender, EventArgs e) { Response.Redirect(("Q_DB.aspx?qi=" + lnk15.Text)); } protected void btnsubmitans_Click(object sender, EventArgs e) { // submitexam(); int count = 0; int notattempted = 0; foreach (DataListItem Items in DataList2.Items) { RadioButton r1 = (RadioButton)Items.FindControl("RadioButton1"); RadioButton r2 = (RadioButton)Items.FindControl("RadioButton2"); RadioButton r3 = (RadioButton)Items.FindControl("RadioButton3"); RadioButton r4 = (RadioButton)Items.FindControl("RadioButton4"); Label l = (Label)Items.FindControl("lblCorAns"); //l3.Text = "hello?"; if (r1.Checked) { if (r1.Text == l.Text) count++; } else { if (r2.Checked) { if (r2.Text == l.Text) count++; } else { if (r3.Checked) { if (r3.Text == l.Text) count++; } else { if (r4.Checked) { if (r4.Text == l.Text) count++; } else { notattempted++; } } } } } //always zero! lblRes.Visible = true; lblRes.Text = "Your score is " + count + ". " + notattempted + " Questions were left unattended!"; }
  • 27. Online Examination 27 | P a g e public void submitexam() { string u_ans = ""; RadioButton rdo = new RadioButton(); Label lbl = new Label(); int i; if ((DataList2.Items.Count < 1)) { Response.Write("Please Select any Question..."); } else { lbl = (Label)DataList2.Items[0].FindControl("lblno"); rdo = (RadioButton)DataList2.Items[0].FindControl("rdoans1"); if ((rdo.Checked == true)) { u_ans = rdo.Text; } rdo = (RadioButton)DataList2.Items[0].FindControl("rdoans2"); if ((rdo.Checked == true)) { u_ans = rdo.Text; } rdo = (RadioButton)DataList2.Items[0].FindControl("rdoans3"); if ((rdo.Checked == true)) { u_ans = rdo.Text; } rdo = (RadioButton)DataList2.Items[0].FindControl("rdoans4"); if ((rdo.Checked == true)) { u_ans = rdo.Text; } try { Con.ConnectionString = "Data Source=.SQLEXPRESS;AttachDbFilename=|DataDirectory|DBExam.mdf;Integrated Security=True;User Instance=True"; Con.Open(); Cmd.CommandText = ("select ID, Cans from Q_data where(ID = " + (lbl.Text + (") and (Cans = '" + (u_ans + "')")))); Cmd.Connection = Con; Cmd.ExecuteNonQuery(); adp.SelectCommand = Cmd; adp.Fill(ds1); if ((ds1.Tables[0].Rows.Count < 1)) { cmdAns.Connection = Con; cmdAns.CommandText = ("insert into answers values('" + (User.Identity.Name + ("'," + (lbl.Text + ",'FALSE')")))); cmdAns.ExecuteNonQuery();
  • 28. Online Examination 28 | P a g e } else { cmdAns.Connection = Con; cmdAns.CommandText = ("insert into answers values('" + (User.Identity.Name + ("'," + (lbl.Text + ",'TRUE')")))); cmdAns.ExecuteNonQuery(); } } catch (Exception ex) { Response.Write("Error in Connection."); } } } } Output of the Question Answer page (Upper portion)
  • 29. Online Examination 29 | P a g e Output of Question Answer page (Upper portion) Showing the Result in the red box (after submit the sheet)
  • 30. Online Examination 30 | P a g e QUESTION DATABASE UPDATING PAGE (AFTER ADMIN LOG IN) 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 EQues : 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) { try { Guid nguid = Guid.NewGuid(); SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["OExamConnString"].ConnectionString); conn.Open(); string insertuser = "Insert Into Q_CPP (ID, Question, Op1, Op2, Op3, Op4, Cans) Values (@id, @ques, @op1, @op2, @op3, @op4, @cans) "; SqlCommand comm = new SqlCommand(insertuser, conn); comm.Parameters.AddWithValue("@id", nguid.ToString()); comm.Parameters.AddWithValue("@ques", TextBox1.Text); comm.Parameters.AddWithValue("@op1", TextBox2.Text); comm.Parameters.AddWithValue("@op2", TextBox3.Text); comm.Parameters.AddWithValue("@op3", TextBox4.Text); comm.Parameters.AddWithValue("@op4", TextBox5.Text); comm.Parameters.AddWithValue("@cans", TextBox6.Text); comm.ExecuteNonQuery(); Response.Redirect("EQues.aspx"); Response.Write("Success"); conn.Close(); } catch (Exception excep) { Response.Write("Error!: " + excep.ToString()); } } protected void Button3_Click(object sender, EventArgs e) {
  • 31. Online Examination 31 | P a g e try { Guid nguid = Guid.NewGuid(); SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["OExamConnString"].ConnectionString); conn.Open(); string insertuser = "Insert Into Q_data (ID, Question, Op1, Op2, Op3, Op4, Cans) Values (@id, @ques, @op1, @op2, @op3, @op4, @cans) "; SqlCommand comm = new SqlCommand(insertuser, conn); comm.Parameters.AddWithValue("@id", nguid.ToString()); comm.Parameters.AddWithValue("@ques", TextBox1.Text); comm.Parameters.AddWithValue("@op1", TextBox2.Text); comm.Parameters.AddWithValue("@op2", TextBox3.Text); comm.Parameters.AddWithValue("@op3", TextBox4.Text); comm.Parameters.AddWithValue("@op4", TextBox5.Text); comm.Parameters.AddWithValue("@cans", TextBox6.Text); comm.ExecuteNonQuery(); Response.Redirect("EQues.aspx"); Response.Write("Success"); conn.Close(); } catch (Exception excep) { Response.Write("Error!: " + excep.ToString()); } } protected void Button4_Click(object sender, EventArgs e) { try { Guid nguid = Guid.NewGuid(); SqlConnection conn = new SqlConnection(ConfigurationManager.ConnectionStrings["OExamConnString"].ConnectionString); conn.Open(); string insertuser = "Insert Into Q_CA (ID, Question, Op1, Op2, Op3, Op4, Cans) Values (@id, @ques, @op1, @op2, @op3, @op4, @cans) "; SqlCommand comm = new SqlCommand(insertuser, conn); comm.Parameters.AddWithValue("@id", nguid.ToString()); comm.Parameters.AddWithValue("@ques", TextBox1.Text); comm.Parameters.AddWithValue("@op1", TextBox2.Text); comm.Parameters.AddWithValue("@op2", TextBox3.Text); comm.Parameters.AddWithValue("@op3", TextBox4.Text); comm.Parameters.AddWithValue("@op4", TextBox5.Text); comm.Parameters.AddWithValue("@cans", TextBox6.Text); comm.ExecuteNonQuery(); Response.Redirect("EQues.aspx"); Response.Write("Success"); conn.Close(); } catch (Exception excep) { Response.Write("Error!: " + excep.ToString()); } } protected void Button1_Click(object sender, EventArgs e) { Response.Redirect("Log In.aspx"); }
  • 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.