Вы находитесь на странице: 1из 24

CONTENTS

Title Page
Declaration
Acknowledgement
Training Certificate
Abstract
Features
What Impact Does It Have?

1)
1.1)
1.2)

2) Introduction
2.1) Purpose
2.2) Scope
2.3) Features
3) Technologies Used
4) Specific Requirements
5) Explanation
5.1) Introduction to Java
5.1.1) Java Programs
5.2) Java Servlets
5.2.1) Features of Servlets
5.3) JSP
1 | Page

5.3.1) Introduction
5.3.2) JSP Directives
5.3.3) Implicit Objects
5.3.4) JSP Actions
5.4) Java Script
5.4.1) Function
5.4.2) Events
6) ER Diagram
6.1) Converting ER Diagram into Tables
6.1.1) User Table
6.1.2) Student Table
6.1.3) Attempt Table
6.1.4) Result Table
6.1.4.1) Sett Table
6.1.4.2) Question Table
6.1.4.3) Table Structures
7) Code
8) Scope
2 | Page

9) Conclusion
10) References

TITLE PAGE
3 | Page

Title of the Report


MCQ EXAMINATION SYSTEM

Report submitted in partial fulfillment of the requirement for the


degree of
B.Tech.
In
Computer Science & Engineering

Under the Supervision of :


Ritu Sharma
Ass. Professor
CSE Departement

Submitted By:
Ranjeet Singh /CSE (B) /3 Rd

Year
E.No: 10020802714
Bhagwan Parshuram Institute of Technology
PSP-4, Sector-17, Rohini, Delhi - 89

SEPTEMBER 2016

4 | Page

DECLARATION
This is to certify that Report entitled MCQ Examination System which is submitted
by me in partial fulfillment of the requirement for the award of degree B.Tech. in
Computer Engineering/Information Technology to BPIT, GGSIP University, Dwarka, Delhi
comprises only my original work and due acknowledgement has been made in the text to
all other material used.

Date: 3rd Oct 2016

Submitted By:
Ranjeet Singh / CSE (B) / 3rd Year
E. No: 10020802714

5 | Page

ACKNOWLEDGEMENT
Before getting into the thick of the things, we would like to express our deep
gratitude to the people who helped us during the course of this project. We
are grateful to our project guide Mr. Daljeet Singh

and Webtek Labs

Director Ms. Puja Bhatia for her guidance throughout this project research
and work.

We also wish to thank all the faculty members of Computer Science &
Engineering Departement and our respectable Professor Ritu Sharma for
their constant help and efficient teaching procedures.

6 | Page

1) ABSTRACT
Exam Software is a Test Management Software, which offers a complete solution for Computer
Based Test (CBT) .They are used to set up multiple choice tests for set time periods that when
submitted are automatically corrected and the results logged beside the student's reference number.
1.1)

FEATURES

Administrator login.
Student registration.
Management and update of student information ,instructions and questions.
scope for fixing negative marks and maximum marks to each question.
Display of result in the form of total score ,correct responses attempted and non attempted
questions.

1.2)

WHAT IMPACT DOES IT HAVE?

Physical presence at a given location is absolutely not necessary.

No time is spent on evaluation.

Results are available instantly.

The time of starting and completion of examination can be recorded at the server and the student
cannot manipulate the same.

Even for subjects that the actual examination that will not be conducted online students can be
given extensive practice and training by holding online Mock Tests.

Almost all competitive exams are multiple choice types and these can be easily conducted
online, for example OAT Online Aptitude Test held to shortlist candidates for medical and
engineering courses.

Trends of the examination including topic wise trends of each subject can be easily obtained if
required.

7 | Page

2) INTRODUCTION
2.1) PURPOSE

The purpose of on-line test simulator is to take online test in an efficient manner and no time wasting for
checking the paper.

The main objective of on-line test is to efficiently evaluate the candidate thoroughly through a fully
automated system that not only saves lot of time but also gives fast results.

For students they give papers according to their convenience and time and there is no need of using extra
thing like paper, pen etc.

2.2) SCOPE
Scope of this project is very broad in terms of other manually taking exams.
Few of them are:

This can be used in educational institutions as well as in corporateworld.


No restriction that examiner has to be present when the candidatetakes the test.

2.3) FEATURES:

Secure
Easy to use
Reliable and accurate
No need of examiner

3) TECHNOLOGIES USED
8 | Page

Front end as:


Notepad

Back end as:


Java

Database:
JDK (Java Development Kit)

Querying language:
CMD (Command Prompt)

9 | Page

4) SPECIFIC REQUIREMENTS
External interface utilised:

4.1) HARDWARE
1.)
2.)
3.)
4.)
5.)
6.)

Minimum 5 GB space in HDD


IBN Net vista Pentium 4 1.7 GHz
256 MB DDR SDRAM
GB ULTRA HDD 7200 RPM
48 x CD ROM
15 `` color monitor

4.2) SOFTWARE
1.
2.
3.
4.
5.

JAVA
Windows 8
ODBC Driver
Notepad
CMD

5) EXPLANATION
10 | P a g e

5.1) Introduction to Java

Java is Object oriented, Multi-threading language developed by Sun Microsystems in 1991.

It is designed to be small, simple and portable across different platforms as well as OS.

5.1.1) Features of Java :


Syntax based on C++

Object-oriented

Support for Internet applications

Extensive library of prewritten classes

Portability among platforms

Built-in networking security as JRE is inaccessible to other parts of computer

5.1.2) Java Programs:

Applets:

Small programs designed to add interactivity to Web sites

Downloaded with the Web page and launched by the Internet browser

Servlets :

Run by Web server on the server

Typically generate Web content

Applications:

Programs that run standalone on a client

5.2) Java Servlets:

Servlets are server side applets that are loaded and executed by a web server in the same manner that
applets are loaded and executed by a web browser.
Java Servlets are useful to create Dynamic pages. Depending upon my input server will give an output

5.2.1) Features of Servlets:

Database Connectivity

11 | P a g e

o Insert/Update/delete/drop
o Select

Servlets Chaining

Server Side Includes

Applet Servlet Communication

Interservlet Communication

Page Compilation

Session Tracking

5.3) JSP:
5.3.1) Introduction:

As a Java-based technology, it enjoys all of the advantages that the java language provides with respect
to development and deployment.

JSP runs on major web platforms.


Client (web browser) makes a request via an HTTP.

The web server receives the request and sends it to the Servlets/JSP engine. If the Servlets/JSP is not
loaded, the web server will load it into the JVM and execute it.

Web server returns response to the Client.

5.3.2) JSP Directives: They generate side effects that are change the way the JSP container processes the page.

5.3.3) Implicit Objects:

Request

Response

Session

Application

Page Context

Exception

5.3.4) JSP Actions: The JSP actions allow the transfer of control between pages.
12 | P a g e

Forward
Include
Plug-in

5.4) JavaScript:
5.4.1) A scripting language is a lightweight programming language which is basically responsible for

Creating Dynamic Pages.

Respond to the events.

Read and Write HTML Elements.

Validate Data.

5.4.2) Functions:

Functions are useful to a programmer when certain tasks are to be repeated during the course of the
program. They are defined by name and invoked with the same. The functions can take parameters and
return result using return statement.

Recursive Functions are functions that call themselves.

5.4.3) Events:

Events are signals generated when specific event occurs. Event handlers are scripts written by the
programmer to take advantages of events in JavaScript. Eg:
blur :Occurs when user clicks outside a field.
click: Occurs when user clicks inside a field.
change: Occurs when user changes a field.
focus : Occurs when user focuses over a field

13 | P a g e

6) E-R diagram
Administrator

updates

updates

updates
pmarksn
nkfjnmn

setno
sett
Question

time

ansgiven

studname
m

pwd

gets

$stud-id

14 | P a g e

ques

q-id

attemptss
ans

$stud-id

tmarks

Result
Question
qattemptedd

nmarksn
nkfjnmn
marks

$stud-id

student
Questionphone

updates

qcorrect

questionQu
estion

Rules
Question
author

$q-id

op1

op2

op3

op4

6.1) CONVERTING E-R INTO TABLES


S.No Field name
.

Data Type

Description

1.

NUMBER(8)
VARCHAR2(10)
NUMBER(10)
VARCHAR2(8)

Student identification number


Name of student
Students contact number
Password

STUD_ID(pk)
STUD_NAME
3
PHONE
4
PWD
6.1.1) USER- TABLE
2

6.1.2) STUDENT- TABLE

S.No Field name


.

Data Type

Description

1.
2
3
4

NUMBER(8)
NUMBER(2)
NUMBER(1)
NUMBER(1)

Student identification number


Question id
Response
Marks of each question

STUD_ID(pk)
Q_ID(pk)
ANSGIVEN
MARKS

6.1.3) ATTEMPT- TABLE

S.No Field name


.
1.
2

Data Type

STUD_ID(pk)
NUMBER(4)
Q_ATTEMPTED NUMBER(2)

15 | P a g e

Description
Student identification number
Questions attempted

3
4

Q_CORRECT
T_MARKS

NUMBER(3)
NUMBER(3)

Correct responses
Total marks

6.1.4) RESULT- TABLE

6.1.4.1) SETT- TABLE

S.No Field name Data Type


.

Description

1.
2
3

Time duration
Negative Marks
Positive Marks

TIME
NMARKS
PMARKS

NUMBER(2)
NUMBER(2)
NUMBER(2)

6.1.4.2) QUESTION- TABLE

S.No Field name


.

Data Type

Description

1
2
3
4
5
6
7
8

NUMBER(2)
VARCHAR2(100)
NUMBER(1)
VARCHAR2(20)
VARCHAR2(40)
VARCHAR2(40)
VARCHAR2(40)
VARCHAR2(40)

Question id
Question
Correct answer of question
Author
Option 1
Option2
Option3
Option4

Q_ID
QUES
ANS
AUTHOR
OP1
OP2
OP3
OP4

16 | P a g e

7) SOURCE CODE
package love;
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;

class OnlineTest extends JFrame implements ActionListener


{
JLabel l;
JRadioButton jrb[]=new JRadioButton[5];
JButton b1,b2;
ButtonGroup bg;
int count=0,current=0,x=1,y=1,now=0;
int m[]=new int[10];
OnlineTest(String s)
{
super(s);
l=new JLabel();
add(l);
bg=new ButtonGroup();
for(int i=0;i<5;i++)
{
jrb[i]=new JRadioButton();
add(jrb[i]);

17 | P a g e

bg.add(jrb[i]);
}
b1=new JButton("Next");
b2=new JButton("Bookmark");
b1.addActionListener(this);
b2.addActionListener(this);
add(b1);add(b2);
set();
l.setBounds(30,40,450,20);
jrb[0].setBounds(50,80,100,20);
jrb[1].setBounds(50,110,100,20);
jrb[2].setBounds(50,140,100,20);
jrb[3].setBounds(50,170,100,20);
b1.setBounds(100,240,100,30);
b2.setBounds(270,240,100,30);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
setLayout(null);
setLocation(250,100);
setVisible(true);
setSize(600,350);
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==b1)
{
if(check())
count=count+1;
current++;
set();
if(current==9)
{

18 | P a g e

b1.setEnabled(false);
b2.setText("Result");
}
}
if(e.getActionCommand().equals("Bookmark"))
{
JButton bk=new JButton("Bookmark"+x);
bk.setBounds(480,20+30*x,100,30);
add(bk);
bk.addActionListener(this);
m[x]=current;
x++;
current++;
set();
if(current==9)
b2.setText("Result");
setVisible(false);
setVisible(true);
}
for(int i=0,y=1;i<x;i++,y++)
{
if(e.getActionCommand().equals("Bookmark"+y))
{
if(check())
count=count+1;
now=current;
current=m[y];
set();
((JButton)e.getSource()).setEnabled(false);
current=now;
}

19 | P a g e

if(e.getActionCommand().equals("Result"))
{
if(check())
count=count+1;
current++;
//System.out.println("correct ans="+count);
JOptionPane.showMessageDialog(this,"correct ans="+count);
System.exit(0);
}
}
void set()
{
jrb[4].setSelected(true);
if(current==0)
{
l.setText("Que1: Which one among these is not a primitive datatype?");
jrb[0].setText("int");jrb[1].setText("Float");jrb[2].setText("boolean");jrb[3].setText("char");
}
if(current==1)
{
l.setText("Que2: Which class is available to all the class automatically?");
jrb[0].setText("Swing");jrb[1].setText("Applet");jrb[2].setText("Object");jrb[3].setText("ActionEvent");
}
if(current==2)
{
l.setText("Que3: Which package is directly available to our class without importing it?");
jrb[0].setText("swing");jrb[1].setText("applet");jrb[2].setText("net");jrb[3].setText("lang");
}
if(current==3)

20 | P a g e

{
l.setText("Que4: String class is defined in which package?");
jrb[0].setText("lang");jrb[1].setText("Swing");jrb[2].setText("Applet");jrb[3].setText("awt");
}
if(current==4)
{
l.setText("Que5: Which institute is best for java coaching?");
jrb[0].setText("Utek");jrb[1].setText("Aptech");jrb[2].setText("SSS IT");jrb[3].setText("jtek");
}
if(current==5)
{
l.setText("Que6: Which one among these is not a keyword?");
jrb[0].setText("class");jrb[1].setText("int");jrb[2].setText("get");jrb[3].setText("if");
}
if(current==6)
{
l.setText("Que7: Which one among these is not a class? ");
jrb[0].setText("Swing");jrb[1].setText("Actionperformed");jrb[2].setText("ActionEvent");
jrb[3].setText("Button");
}
if(current==7)
{
l.setText("Que8: which one among these is not a function of Object class?");
jrb[0].setText("toString");jrb[1].setText("finalize");jrb[2].setText("equals");
jrb[3].setText("getDocumentBase");
}
if(current==8)
{
l.setText("Que9: which function is not present in Applet class?");
jrb[0].setText("init");jrb[1].setText("main");jrb[2].setText("start");jrb[3].setText("destroy");
}

21 | P a g e

if(current==9)
{
l.setText("Que10: Which one among these is not a valid component?");
jrb[0].setText("JButton");jrb[1].setText("JList");jrb[2].setText("JButtonGroup");
jrb[3].setText("JTextArea");
}
l.setBounds(30,40,450,20);
for(int i=0,j=0;i<=90;i+=30,j++)
jrb[j].setBounds(50,80+i,200,20);
}
boolean check()
{
if(current==0)
return(jrb[1].isSelected());
if(current==1)
return(jrb[2].isSelected());
if(current==2)
return(jrb[3].isSelected());
if(current==3)
return(jrb[0].isSelected());
if(current==4)
return(jrb[3].isSelected());
if(current==5)
return(jrb[2].isSelected());
if(current==6)
return(jrb[1].isSelected());
if(current==7)
return(jrb[3].isSelected());
if(current==8)
return(jrb[1].isSelected());
if(current==9)

22 | P a g e

return(jrb[2].isSelected());
return false;
}
public static void main(String s[])
{

new OnlineTest("Online Test Of Java"); } }

8) SCOPE

Online Examination System is developed or designed


for educational institutes like school, colleges, and
private institutes to conduct logic test of their students
on regular basis.

Design to provide or facilitate Administrator and


User.

Complete and safe information is provided to user.

Can be used anywhere anytime at it is web based


application.

9) CONCLUSION
As far as design is concerned no design is complete ever
and there are chances of improvement each moment.
However performing all the necessary testing, we will
conclude that our design will implement properly that it
absolutely was made.

23 | P a g e

10) REFERENCES
Software requirements specification from Internet.
Software requirements specification, MCQ
Examination System.

24 | P a g e

Вам также может понравиться