Professional Documents
Culture Documents
INTRODUCTION
On-line Exam System is very useful for educational institute to prepare an exam, safe
the time that will take to check the paper and prepare mark sheets. It will help the
Institute to testing of students and develop their skills. The effective use of "On-line
Exam System", any Educational Institute or training centre can be use it to develop their
strategy for putting the exams, and for getting better results in less time.
The Online Examination System will permit to take and give online examination and
maintaining master information and generating various reports of test. The main users
of the project are Student or Member and system Administrator.
2. Administration module for Mange members, examination, question bank and view
the reports.
1.1. OVEVIEW
The online test created for taking online test has following stages-
Login
Test
Result
Login:- There is a quality login window because this is more secure than other login
forms as in a normal login window there are multiple logins available so that more than
one person can access to test with there individual login. But in this project there is only
one login id i.e. administrator id and password by which a person enter the site. Hence it
is more secure and reliable than previously used on-line test simulators.
Test:- Test page is the most creative and important page in this project. It consists of 2
modules namely:
1
Subject selection
Utilities
Subject selection:- From the given choices the candidate can select his field (like C,
C++ and JAVA etc.) for taking on with the test.
Utilities:-
2. Gives the list of attempted and unattempted questions and can go to any question
directly and can either attempt or change the answer of the already attempted question
The whole process of assigning test and evaluating their scores after the test, was done
manually till date. Processing the test paper i.e. checking and distributing respective
scores used to take time when the software was not installed.
• To take exam of more candidates more invigilators are required but no need of
invigilator in case of online examination.
• The chances of paper leakage are more in current system as compared to proposed
system.
2
PROPOSED SYSTEM
The online test created for taking online test has following features.
• In comparison to the present system the proposed system will be less time consuming
and is more efficient.
• Result will be very precise and accurate and will be declared in very short span of time
because calculation and evaluations are done by the simulator itself.
• The logs of appeared candidates and their marks are stored and can be backup for
future use
3
• Can be timed to allow Y minutes to answer X number of questions
• Easy Accessibility.
• User friendly.
1.2. PURPOSE
• 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 and these sections can be grouped
together to form tests/examinations.
• The project allows faculties to create their own tests. It would enable educational
institutes to perform tests, quiz and create feedback forms.
4
1.3. SCOPE
Scope of this project is very broad in terms of other manually taking exams.
• Can be used anywhere any time as it is a web based application(user Location doesn’t
matter).
• No restriction that examiner has to be present when the candidate takes the test.
• Online examination is designed for educational institutes like Schools ,colleges and
private institutes to conduct logic tests of their students or employees on regular basis
5
1.5. METHODOLOGY OF ONLINE EXAM
Team of developers must integrate with a development strategy that include the process,
methods and tools layer and generic phases. This strategy is often referred to a process
model or a software developing paradigm.
• Requirement Definition
• Implementation
6
1.6. TECHNOLOGIES TO BE USED
1. XAMPP
3. JS (JavaScript)
XAMPP
XAMPP is a free and open source cross platform web server solution stack package,
consisting mainly of the Apache HTTP Server, My SQL Database and interpreters for
scripts written in the PHP and Perl programming languages.
Officially, XAMPP's designers intended it for use only as a development tool, to allow
website designers and programmers to test their work on their own computers without
any access to the Internet.
HTML is a computer language devised to allow website creation. These websites can
then be viewed by anyone else connected to the Internet. It is relatively easy to learn,
with the basics being accessible to most people in one sitting; and quite powerful in
what it allows you to create. It is constantly undergoing revision and evolution to meet
the demands and requirements of the growing Internet audience under the direction of
the W3C, the organization charged with designing and maintaining the language.
JS (JavaScript)
7
MySQL (Structure Query Language)
2. OVERALL DESCRIPTION
2.1Product Perspective
Client on Internet
Web Browser, Operating System (any)
Client on Intranet
Web Browser, Operating System (any)
Web Server
XAMPP, Operating System (any)
8
Data Base Server
MySQL, Operating System (any)
Development End
HTML,javascript, MySQL, PHP,OS (Windows)]
Client Side
Processor RAM Disk Space
2.5 CONSTRAINTS
Create/delete accounts (add a list of faculty names and list of his student)
Change password.
Insert questions.
Choose exam.
Review answers.
10
See his exam mark.
2.7. ER DIAGRAM
11
2.8. DATA FLOW DIAGRAMS
12
2.9. DATABASE DESIGN
USERS
13
3.SPECIFIC DIAGRAMS
14
3.2. ACTIVITY DIAGRAMS
15
16
3.3. SEQUENCE DIAGRAMS
17
18
19
4. SUPPORTING INFORMATION
4.1. SCREENSHOTS
HOME
SIGN UP
20
LOGIN
COURSE
21
SUBJECT FOR EXAM
QUESTIONS
22
RESULT
LOGOUT
23
5. CODING
HEADER
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
-->
</style>
<tr>
<!--You can modify the text, color, size, number of loops and more on the flash header
by editing the text file (fence.txt) included in the zip file.-->
24
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ver
sion=5,0,2,0
width=500
height=68>
<embed src=../image/fence.swf
quality=high
pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash
width=500
height=68
bgcolor=#000000
scale= showall>
</embed>
</object></div></td>
<td width="10%">
</tr>
</table>
<tr>
</tr>
</table>
25
<table width="100%">
<tr>
<td aling=right>
<?php
if(isset($_SESSION['alogin']))
else
echo " ";
?>
</td>
</tr>
</table>
INDEX
<?php
session_start()
?>
<html>
<head>
26
</head>
<body>
<?php
include("header.php");
?>
<tr>
<tr>
</tr>
<tr>
<td class="style2">Password</td>
</tr>
<tr>
<td class="style2"> </td>
<td> </td>
</tr>
<tr>
<td class="style2"> </td>
</tr>
27
</table></td>
</tr>
</table>
</form>
</body>
LOGIN
<?php
session_start();
error_reporting(1);
?>
<html>
<head>
</head>
<body>
<?php
include("header.php");
extract($_POST);
if(isset($submit))
include("../database.php");
28
$rs=mysql_query("select * from mst_admin where loginid='$loginid' and
pass='$pass'",$cn) or die(mysql_error());
if(mysql_num_rows($rs)<1)
exit;
$_SESSION['alogin']="true";
else if(!isset($_SESSION[alogin]))
exit;
?>
<div style="margin-left:20%;padding-top:5%">
</div>
</div>
29
</body>
</html>
QUESTION ADD
<?php
session_start();
require("../database.php");
include("header.php");
error_reporting(1);
?>
<?php
extract($_POST);
echo "<BR>";
if (!isset($_SESSION[alogin]))
exit();
if($_POST[submit]=='Save' || strlen($_POST['testid'])>0 )
extract($_POST);
unset($_POST);
30
}
?>
<SCRIPT LANGUAGE="JavaScript">
function check() {
mt=document.form1.addque.value;
if (mt.length<1) {
document.form1.addque.focus();
return false;
a1=document.form1.ans1.value;
if(a1.length<1) {
document.form1.ans1.focus();
return false;
a2=document.form1.ans2.value;
if(a1.length<1) {
document.form1.ans2.focus();
return false;
a3=document.form1.ans3.value;
if(a3.length<1) {
document.form1.ans3.focus();
return false;
a4=document.form1.ans4.value;
31
if(a4.length<1) {
document.form1.ans4.focus();
return false;
at=document.form1.anstrue.value;
if(at.length<1) {
document.form1.anstrue.focus();
return false;
return true;
</script>
<tr>
<?php
while($row=mysql_fetch_array($rs))
if($row[0]==$testid)
{
32
echo "<option value='$row[0]' selected>$row[2]</option>";
else
?>
</select>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
<tr>
<td> </td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="26"></td>
<td> </td>
</tr>
</table>
</form>
<p> </p>
</div>
SIGN OUT
<?php
session_start();
session_destroy();
header("Location: index.php");
?>
SUB ADD
<?php
34
session_start();
require("../database.php");
include("header.php");
error_reporting(1);
?>
<?php
extract($_POST);
echo "<BR>";
if (!isset($_SESSION['alogin']))
exit();
if($submit=='submit' || strlen($subname)>0 )
if (mysql_num_rows($rs)>0)
$submit="";
?>
<SCRIPT LANGUAGE="JavaScript">
function check() {
mt=document.form1.subname.value;
if (mt.length<1) {
document.form1.subname.focus();
return false;
return true;
</script>
<title>Add Subject</title>
<tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td height="26"></td>
<td> </td>
</tr>
</table>
</form>
<p> </p>
</div>
TESTADD
<?php
session_start();
error_reporting(1);
if (!isset($_SESSION['alogin']))
echo "<br><h2>You are not Logged On Please Login to Access this Page</h2>";
exit();
?>
37
<?php
require("../database.php");
include("header.php");
if($_POST[submit]=='Save' || strlen($_POST['subid'])>0 )
extract($_POST);
unset($_POST);
?>
<SCRIPT LANGUAGE="JavaScript">
function check() {
mt=document.form1.testname.value;
if (mt.length<1) {
document.form1.testname.focus();
return false;
tt=document.form1.totque.value;
if(tt.length<1) {
document.form1.totque.value;
return false;
38
}
return true;
</script>
<tr>
<?php
while($row=mysql_fetch_array($rs))
if($row[0]==$subid)
else
?>
</select>
<tr>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td height="26"></td>
<td> </td>
</tr>
</table>
</form>
<p> </p>
SQL DB EXAM
-- phpMyAdmin SQL Dump
-- version 2.10.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
40
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";
--
-- Database: `quiz`
--
-- --------------------------------------------------------
--
--
--
--
-- --------------------------------------------------------
--
--
41
CREATE TABLE `mst_question` (
--
--
INSERT INTO `mst_question` VALUES (16, 8, 'What Default Data Type ?', 'String',
'Variant', 'Integer', 'Boolear', 2);
INSERT INTO `mst_question` VALUES (17, 8, 'What is Default Form Border Style ?',
'Fixed Single', 'None', 'Sizeable', 'Fixed Diaglog', 3);
INSERT INTO `mst_question` VALUES (18, 8, 'Which is not type of Control ?', 'text',
'lable', 'checkbox', 'option button', 1);
INSERT INTO `mst_question` VALUES (19, 9, 'Which of the follwing contexts are
available in the add watch window?', 'Project', 'Module', 'Procedure', 'All', 4);
INSERT INTO `mst_question` VALUES (20, 9, 'Which window will allow you to halt
the execution of your code when a variable changes?', 'The call stack window', 'The
immedite window', 'The locals window', 'The watch window', 4);
INSERT INTO `mst_question` VALUES (22, 9, 'How can you print the object name
associated with the last VB error to the Immediate window?', 'Debug.Print
Err.Number', 'Debug.Print Err.Source', 'Debug.Print Err.Description', 'Debug.Print
Err.LastDLLError', 2);
INSERT INTO `mst_question` VALUES (23, 9, 'How can you print the object name
associated with the last VB error to the Immediate window?', 'Debug.Print
42
Err.Number', 'Debug.Print Err.Source', 'Debug.Print Err.Description', 'Debug.Print
Err.LastDLLError', 2);
INSERT INTO `mst_question` VALUES (24, 9, 'What function does the TabStop
property on a command button perform?', 'It determines whether the button can get the
focus', 'If set to False it disables the Tabindex property.', 'It determines the order in
which the button will receive the focus', 'It determines if the access key swquence can
be used', 1);
INSERT INTO `mst_question` VALUES (25, 10, 'You application creates an instance
of a form. What is the first event that will be triggered in the from?', 'Load', 'GotFocus',
'Instance', 'Initialize', 4);
INSERT INTO `mst_question` VALUES (26, 10, 'Which of the following is Hungarian
notation for a menu?', 'Menu', 'Men', 'mnu', 'MN', 3);
INSERT INTO `mst_question` VALUES (27, 10, 'You are ready to run your program to
see if it works.Which key on your keyboard will start the program?', 'F2', 'F3', 'F4', 'F5',
4);
INSERT INTO `mst_question` VALUES (28, 10, 'Which of the following snippets of
code will unload a form named frmFo0rm from memory?', 'Unload Form', 'Unload
This', 'Unload Me', 'Unload', 3);
INSERT INTO `mst_question` VALUES (29, 10, 'You want the text in text box named
txtMyText to read My Text.In which property will you place this string?', 'Caption',
'Text', 'String', 'None of the above', 2);
INSERT INTO `mst_question` VALUES (30, 11, 'How many data types are there in
c ?', '8', '7', '6', '5', 3);
INSERT INTO `mst_question` VALUES (31, 11, 'Range of integer type of data ?', '-
32768 to 32767', '123-133', '152 to 258', '-78954 to 32564', 1);
INSERT INTO `mst_question` VALUES (32, 11, 'getchar() is used to get ?', 'integer',
'string', 'character', 'print', 3);
INSERT INTO `mst_question` VALUES (33, 11, 'gets() is used to get???', 'number',
'character', 'string', 'integer', 3);
INSERT INTO `mst_question` VALUES (34, 11, 'short cut key to save is _', 'f4', 'f9',
'f2', 'f1', 3);
INSERT INTO `mst_question` VALUES (35, 11, 'short cut key to close the
program?.?', 'f7', 'f3', 'f8', 'f9', 2);
INSERT INTO `mst_question` VALUES (36, 11, 'who invented c language ?', 'Denis
Ritchie', 'Pascal Blaise', 'Denis reddy', 'Bill gets', 1);
INSERT INTO `mst_question` VALUES (37, 11, 'To come out of c __shortcut key is
used?', 'alt+b', 'alt+k', 'alt+m', 'alt+x', 4);
43
INSERT INTO `mst_question` VALUES (38, 11, 'strlen() return _____ types of data ?',
'integer', 'character', 'string', 'void', 1);
INSERT INTO `mst_question` VALUES (40, 11, 'how many keyword are there in c?',
'56', '54', '64', '32', 4);
INSERT INTO `mst_question` VALUES (49, 11, 'for multiline comment ___ is used',
'//', '??', '/*', '\\*', 3);
INSERT INTO `mst_question` VALUES (50, 11, '"default: " statement is a part of ___',
'switch case', 'If else', 'if', 'loop', 1);
INSERT INTO `mst_question` VALUES (54, 11, '___is assignment operator in c ?', '*',
'++', '=', '--', 3);
INSERT INTO `mst_question` VALUES (56, 11, 'what is the answer of 8%5', '4.5', '3',
'1', '1.3', 2);
INSERT INTO `mst_question` VALUES (57, 11, 'gets() is defined in ?', 'stdio.h',
'conio.h', 'string.h', 'dos.h', 1);
INSERT INTO `mst_question` VALUES (58, 11, '__key is used to zoom the screen',
'f5', 'f6', 'f9', 'alt+f9', 1);
INSERT INTO `mst_question` VALUES (59, 11, '____decision making control', 'for
loop', 'do while', 'function', 'switch case', 4);
INSERT INTO `mst_question` VALUES (60, 12, 'RAM Stands for', 'Random Access
Memory', 'Random accelerated Memory', 'Random Access Machenism', 'Random
Accurace Mantan', 1);
INSERT INTO `mst_question` VALUES (61, 12, 'PC Stands for', 'pocket computer',
'personal computer', 'phisycal computer', 'personal card', 2);
INSERT INTO `mst_question` VALUES (62, 12, 'Personal Computer are the type of
computer', 'super computer', 'mini computer', 'micro computer', 'mainframe computer',
3);
INSERT INTO `mst_question` VALUES (63, 12, 'floppy disk is the type of memory',
'magnatic & secondarymain memory', 'main memory', 'o primary', 'none of the above',
1);
INSERT INTO `mst_question` VALUES (64, 12, 'keybord is the type of device', 'input',
'pointing', 'output', 'sound', 1);
44
INSERT INTO `mst_question` VALUES (65, 12, 'mouse is the type of device', 'input',
'pointing', 'scanning', 'none of the above', 2);
INSERT INTO `mst_question` VALUES (66, 12, 'which of the following is input
device', 'speaker', 'printer', 'plotter', 'scanner', 4);
INSERT INTO `mst_question` VALUES (67, 12, '________is colled the brain of
computer', 'mouse', 'keyboard', 'cpu', 'memory', 3);
INSERT INTO `mst_question` VALUES (68, 12, 'the development of first generation
computer is', '1955-1965', '1965-1975', '1945-1954', 'none', 3);
INSERT INTO `mst_question` VALUES (69, 12, 'all arithmetic and logical processing
is done in', 'ALU', 'CU', 'CPU', 'none of the above', 3);
INSERT INTO `mst_question` VALUES (70, 12, 'the delete the character right side of
the cursor which key is used', 'inst', 'del', 'backspace', 'home', 2);
INSERT INTO `mst_question` VALUES (71, 12, 'to deleter the character towards left
side is', 'backspace', 'del', 'inst', 'home', 1);
INSERT INTO `mst_question` VALUES (72, 12, 'in keyboard the function of which
type keys change according the software', 'alphanumeric key', 'numeric key pad',
'function key', 'none of the above', 2);
INSERT INTO `mst_question` VALUES (73, 12, 'to enter the number a special key slot
is given on the keyboard which is', 'alphanumeric number', 'numeric key pad', 'function
key', 'none of the above', 2);
INSERT INTO `mst_question` VALUES (74, 12, 'on numeric key pad the keyu present
are', '0 to 9 numbers', '+/*characters', 'arrow key', 'all of the above', 4);
INSERT INTO `mst_question` VALUES (75, 12, 'to move the cursor beginning of the
which key is used', 'end', 'home', 'pgup', 'pgdn', 2);
INSERT INTO `mst_question` VALUES (76, 12, 'to move the cursor end of the which
key is used', 'end', 'home', 'pgup', 'pgdn', 1);
INSERT INTO `mst_question` VALUES (77, 12, 'the touchable part of computer is
called as', 'hardware', 'software', 'programe', 'none', 1);
INSERT INTO `mst_question` VALUES (78, 12, 'if caps lock key is on then', 'small
letters are printed', 'the lowercase letter are printed', 'capital letters print', 'none of the
above', 3);
INSERT INTO `mst_question` VALUES (80, 13, 'the combination key for command in
ms-word is', 'ctrl+f', 'ctrl+f3', 'ctrl+s', 'none', 1);
45
INSERT INTO `mst_question` VALUES (81, 13, 'while editing document in ms-word
the colour of the selected text can be changed by', 'format font', 'format text', 'format
paragraph', 'none of the above', 1);
INSERT INTO `mst_question` VALUES (82, 13, 'which keystroke is used to move end
of document quickly', 'end', 'pgdn', 'ctrl+pgdn', 'ctrl+end', 4);
INSERT INTO `mst_question` VALUES (83, 13, 'from the following option does not
present in the picture option of insert menu', 'auto shpe', 'clip art', 'from file', 'object', 4);
INSERT INTO `mst_question` VALUES (84, 13, 'in ms-word to appear full form
abberiatin automatically we can use', 'autotext', 'auto correct', 'comments', 'drop cap', 1);
INSERT INTO `mst_question` VALUES (85, 13, 'to appear the same information at the
top or bottom of each page we use', 'headers & footer', 'hyperlink', 'field', 'none', 1);
INSERT INTO `mst_question` VALUES (86, 13, 'which option is not present under
tool menu', 'mail merge', 'auto text', 'language', 'drop cap', 4);
INSERT INTO `mst_question` VALUES (87, 13, 'to convert "the computer" in to "THE
COMPUTER" which option is used', 'title case', 'toggle case', 'upper case', 'all caps', 3);
INSERT INTO `mst_question` VALUES (88, 13, 'which is the shortcut key to replace
the text', 'ctrl+r', 'ctrl+h', 'ctrl+d', 'ctrl+e', 2);
INSERT INTO `mst_question` VALUES (89, 13, 'which sortcut key is used to redo
action?', 'ctrl+r', 'ctrl+y', 'ctrl+e', 'ctrl+u', 2);
INSERT INTO `mst_question` VALUES (90, 13, 'to change the size of document page
using', 'file properties', 'file page setup', 'tools option', 'format paragraph', 2);
INSERT INTO `mst_question` VALUES (91, 13, 'to set the shading for the paragrph in
ms-word chose', 'insert shading', 'format border & shading', 'view shading', 'all the
above', 2);
INSERT INTO `mst_question` VALUES (92, 13, 'bold,italic,underline are the part
of_________toolbar', 'formating', 'standerd', 'drawing', 'central', 1);
INSERT INTO `mst_question` VALUES (93, 13, 'the list in bottom of the file menu',
'display last foure file you use', 'display all opened files', 'allow to close file', 'none of
the above', 1);
INSERT INTO `mst_question` VALUES (94, 13, 'the date and time command', 'inaert
the date & time you specify', 'insert current system date & time', 'inmsert last updated
date & time', 'none of the above', 2);
INSERT INTO `mst_question` VALUES (95, 13, 'if you want to copy a selection of
text,which button do you click?', 'move', 'copy', 'duplicate', 'cut', 2);
INSERT INTO `mst_question` VALUES (96, 13, 'which of the follwing is not option of
edit menu', 'cut', 'copy', 'page setup', 'paste', 3);
46
INSERT INTO `mst_question` VALUES (97, 13, 'alignment buttons are available
on______________', 'ststus bar', 'for mating toolbar', 'standerd toolbar', 'none of these',
2);
INSERT INTO `mst_question` VALUES (98, 13, 'when microsoft word gets loaded the
opening screen display a document named', 'document1', 'document', 'doc1', 'no
document name', 1);
INSERT INTO `mst_question` VALUES (99, 13, 'the document can be zoomed
maximum up to', '100%', '150%', '200%', '500%', 4);
INSERT INTO `mst_question` VALUES (100, 13, 'to delete the selected sentence we
can press the following press', 'del', 'backspace', 'both a&b', 'none of the above', 3);
INSERT INTO `mst_question` VALUES (101, 13, 'to start a new line', 'enter',
'shift+enter', 'ctrl+enter', 'none of these', 1);
INSERT INTO `mst_question` VALUES (102, 13, 'Spelling check is not possible in
___________________', 'Normal View', 'Out Line View', 'Print Lay Out View', 'None
of these', 4);
INSERT INTO `mst_question` VALUES (103, 13, 'Word Text can be made italic
by____________________', 'Ctrl+I', 'Ctrl+B', 'Ctrl+U', 'None of the above', 1);
INSERT INTO `mst_question` VALUES (104, 13, 'By Default Word Format your text
as', '14 Point Times New Roman', '12 Point Times New Roman', '11 point Times New
Roman', 'None of the above', 2);
INSERT INTO `mst_question` VALUES (105, 14, 'Which city is known as The City of
Palaces?', 'Kolkatta', 'Jerusalem', 'Mumbai', 'Udaipur', 1);
INSERT INTO `mst_question` VALUES (106, 14, 'The Gateway of India is ?', 'Delhi',
'Kolkatta', 'Mumbai', 'Jammu', 3);
INSERT INTO `mst_question` VALUES (107, 14, 'Which city is known as Pink City?',
'Hyderabad', 'Jaipur', 'Bangalore', 'Patna', 2);
INSERT INTO `mst_question` VALUES (108, 14, 'Which is the city of Golden
Temple?', 'Amritsar', 'Banaras', 'Chennai', 'Delhi', 1);
INSERT INTO `mst_question` VALUES (109, 14, 'The Land of Lilies ?', 'Finland',
'Japan', 'USA', 'Canada', 4);
INSERT INTO `mst_question` VALUES (110, 14, 'The symbol dove signifies ?',
'Strength', 'Dignity', 'Peace', 'Distress', 3);
INSERT INTO `mst_question` VALUES (113, 14, 'How many players are there on
each side in a baseball match', '7', '9', '5', '11', 2);
INSERT INTO `mst_question` VALUES (114, 14, 'Which one of seven wonders of the
world is in India', 'Leaning Tower', 'Eiffel Tower', 'TajMahal', 'Colosseum', 3);
47
INSERT INTO `mst_question` VALUES (115, 14, 'Who started the ancient Olympic
Games', 'the Greeks', 'the Egyptians', 'the Romans', 'the Aryans', 1);
INSERT INTO `mst_question` VALUES (116, 14, 'The first Indian in Space was?',
'Vishnu Bhagvat', 'Rakesh Sharma', 'Kalpana Chawla', 'Juhi Chawla', 2);
INSERT INTO `mst_question` VALUES (117, 14, 'After how many years gap is the
Cricket World Cup held?', '3', '4', '5', '6', 2);
INSERT INTO `mst_question` VALUES (119, 14, 'The slogan Piyo Sar Utha ke is
associated with which company?', 'Pepsi', 'Mirinda', 'Thums Up', 'Coca-Cola', 4);
INSERT INTO `mst_question` VALUES (121, 14, 'Biogas consists mainly of ?', 'carbon
monoxide', 'methane', 'chlorine', 'nitrogen', 2);
INSERT INTO `mst_question` VALUES (122, 14, 'Deafness can be caused by ?', 'water
pollution', 'air pollution', 'noise pollution', 'soil pollution', 3);
INSERT INTO `mst_question` VALUES (123, 14, 'Which animal is the logo of
WWF?', 'bear', 'giant panda', 'eagle', 'tiger', 2);
INSERT INTO `mst_question` VALUES (124, 14, 'Acoustics deals with ?', 'sound',
'light', 'insects', 'air', 1);
INSERT INTO `mst_question` VALUES (125, 14, 'Fatehpur Sikri was built by ?',
'Aurungzeb', 'Akbar', 'Shah Jahan', 'Jahengir', 2);
INSERT INTO `mst_question` VALUES (126, 14, 'Which is the largest ocean in the
world?', 'Atlantic', 'Pacific', 'Indian', 'Arctic', 2);
INSERT INTO `mst_question` VALUES (127, 14, 'The sea-route to India was
discovered in?', '1598', '1558', '1498', '1458', 3);
INSERT INTO `mst_question` VALUES (128, 14, 'When is U.N. Day celebrated?', '24
Oct', '23 Oct', '24 Sep', '23 Nov', 1);
INSERT INTO `mst_question` VALUES (129, 14, 'Which of the following countries
celebrates Christmas festival in the summer season?', 'Canada', 'Britian', 'Australia',
'Zimbabwe', 3);
INSERT INTO `mst_question` VALUES (131, 15, 'How do u write "Hello world" in
PHP?', 'echo "Hello world";', 'document.write("Hello world");', '"Hello world";',
'printf("Hello world");', 1);
INSERT INTO `mst_question` VALUES (130, 15, 'what does PHP stand for?', 'personal
hypertext processor', 'private home page', 'personal home page', 'PHP:Hypertext
preprocessor', 4);
48
INSERT INTO `mst_question` VALUES (1, 15, 'All variable in PHP start with which
symbol?', '!', '$', '&', '#', 2);
INSERT INTO `mst_question` VALUES (2, 15, 'what is the correct way to end a PHP
statement?', '</php>', '.', ';', 'new line', 3);
INSERT INTO `mst_question` VALUES (3, 15, 'The PHP syntax is most similar to?',
'VB script', 'Java script', 'Perl ', 'c#', 2);
INSERT INTO `mst_question` VALUES (4, 15, 'how do u get information from a form
that is submitted using the "get" method?', 'Request.Form;', '$_GET[ ];',
'Request.QueryString;', '$_POST[ ];', 2);
INSERT INTO `mst_question` VALUES (8, 16, 'What does SQL stand for?',
'Structured Question Language', 'Strong Question Language', 'Structured Query
Language', 'String Query Language', 3);
INSERT INTO `mst_question` VALUES (5, 15, 'What is the correct way to create a
function in PHP?', 'create myFunction()', 'function myFunction()', 'new_function
myFunction()', 'load_function myFunction()', 2);
INSERT INTO `mst_question` VALUES (6, 15, 'What is the correct way to add 1 to the
$count variable?', 'count++;', '$count =+1', '++count', '$count++;', 4);
INSERT INTO `mst_question` VALUES (7, 15, 'Which one of these variables has an
illegal name?', '$my_Var', '$my-Var', '$myVar', '$my&Var', 3);
-- --------------------------------------------------------
--
--
49
--
--
-- --------------------------------------------------------
--
--
--
-- --------------------------------------------------------
--
--
--
--
52
INSERT INTO `mst_test` VALUES (8, 1, 'VB Basic Test', '3');
-- --------------------------------------------------------
--
--
53
--
--
INSERT INTO `mst_user` VALUES (1, 'raj', 'raj', 'Rajen', 'limbdi', 'limbdi', 9999,
'raj@yahoo.com');
INSERT INTO `mst_user` VALUES (12, 'ashish', 'shah', 'ashish', 'laskdjf', 'S''nagar',
228585, 'ashish@yahoo.com');
INSERT INTO `mst_user` VALUES (14, 'Dhaval123', 'a', 'a', 'a', 'a', 0,
'dhaval@yahoo.com');
INSERT INTO `mst_user` VALUES (15, 'amit', 'a123456', 'amit', 'xyz', 'snagar',
2147483647, 'amitrojasara@gmail.com');
-- --------------------------------------------------------
--
--
--
--
55
INSERT INTO `mst_useranswer` VALUES ('a732eca2e5a08f17a4cfd53fe0ba1dfa', 14,
'The first Indian in Space was?', 'Vishnu Bhagvat', 'Rakesh Sharma', 'Kalpana Chawla',
'Juhi Chawla', 2, 1);
56
INSERT INTO `mst_useranswer` VALUES ('51518d1da75a6898608a9f2ffacd5ab8',
14, 'Which city is known as The City of Palaces?', 'Kolkatta', 'Jerusalem', 'Mumbai',
'Udaipur', 1, 2);
58
INSERT INTO `mst_useranswer` VALUES ('0f38cfc0215a52cb3897e828dc3f450d',
12, 'Personal Computer are the type of computer', 'super computer', 'mini computer',
'micro computer', 'mainframe computer', 3, 3);
HOME HEADER
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
}</style>
<tr>
<!--You can modify the text, color, size, number of loops and more on the flash header
by editing the text file (fence.txt) included in the zip file.-->
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ver
sion=5,0,2,0
width=500height=68>
<embed src=image/fence.swf
59
quality=high
pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash
width=500
height=68
bgcolor=#000000
scale= showall>
</embed>
</object></div></td>
<td width="10%">
</tr>
</table>
</tr>
</Table>
<Table width="100%">
<tr>
<td>
<?php @$_SESSION['login'];
error_reporting(1);
?></td>
<td>
<?php
if(isset($_SESSION['login']))
60
echo "<div align=\"right\"><strong><a href=\"index.php\"> Home </a>|<a
href=\"signout.php\">Signout</a></strong></div>";
else
{ echo " "; }
?>
</td>
</tr>
</table>
INDEX
<?php
session_start();
?>
<html>
<head>
</head>
<body>
<?php
include("header.php");
include("database.php");
extract($_POST);
61
if(isset($submit))
if(mysql_num_rows($rs)<1)
$found="N";
else
$_SESSION[login]=$loginid;
if (isset($_SESSION[login]))
<tr>
</tr>
<tr>
</tr>
</table>';
62
exit;}
?>
<tr>
</tr>
<tr>
<blockquote>
exam. This Site will provide the quiz for various subject of interest.
</blockquote>
</div></td>
</tr>
<tr>
<td><span class="style2">Password</span></td>
</tr>
<tr>
<?php
if(isset($found))
?>
</span></td>
</tr>
<tr>
</tr>
<tr>
</tr>
</table>
<div align="center">
64
<p class="style5"><img src="images/topleft.jpg" width="134" height="128">
</p>
</div>
</form></td>
</tr>
</table>
</body>
</html>
QUIZ
<?php
session_start();
error_reporting(1);
include("database.php");
extract($_POST);
extract($_GET);
extract($_SESSION);
if($_SESSION[qn]>mysql_num_rows($rs))
unset($_SESSION[qn]);
exit;
}*/
$_SESSION[sid]=$subid;
$_SESSION[tid]=$testid;
header("location:quiz.php");
65
}
if(!isset($_SESSION[sid]) || !isset($_SESSION[tid]))
header("location: index.php");
?>
<html>
<head>
<title>Online Quiz</title>
</head>
<body>
<?php
include("header.php");
if(!isset($_SESSION[qn]))
$_SESSION[qn]=0;
$_SESSION[trueans]=0;
66
}
else
mysql_data_seek($rs,$_SESSION[qn]);
$row= mysql_fetch_row($rs);
if($ans==$row[7])
$_SESSION[trueans]=$_SESSION[trueans]+1;
$_SESSION[qn]=$_SESSION[qn]+1;
mysql_data_seek($rs,$_SESSION[qn]);
$row= mysql_fetch_row($rs);
if($ans==$row[7])
$_SESSION[trueans]=$_SESSION[trueans]+1;
}
67
echo "<h1 class=head1> Result</h1>";
$_SESSION[qn]=$_SESSION[qn]+1;
$w=$_SESSION[qn]-$_SESSION[trueans];
echo "</table>";
mysql_query("insert into
mst_result(login,test_id,test_date,score) values('$login',$tid,'".date("d/m/Y")."',
$_SESSION[trueans])") or die(mysql_error());
unset($_SESSION[qn]);
unset($_SESSION[sid]);
unset($_SESSION[tid]);
unset($_SESSION[trueans]);
exit;
if($_SESSION[qn]>mysql_num_rows($rs)-1)
unset($_SESSION[qn]);
session_destroy();
exit;
68
}
mysql_data_seek($rs,$_SESSION[qn]);
$row= mysql_fetch_row($rs);
$n=$_SESSION[qn]+1;
if($_SESSION[qn]<mysql_num_rows($rs)-1)
else
echo "</table></table>";?>
</body>
</html>
QUIZ 2
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Online Quiz</title>
<style type="text/css">
<!--
69
.style9 {
color: #000099;
font-weight: bold;
.style10 {
color: #330066;
font-weight: bold;
-->
</style>
</head>
<body>
<style type="text/css">
<!--
body {
margin-left: 0px;
margin-top: 0px;
-->
</style>
<tr>
<!--You can modify the text, color, size, number of loops and more on the flash header
by editing the text file (fence.txt) included in the zip file.-->
codebase=http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ver
sion=5,0,2,0
70
width=500
height=68>
<embed src=image/fence.swf
quality=high
pluginspage=http://www.macromedia.com/shockwave/download/index.cgi?
P1_Prod_Version=ShockwaveFlash type=application/x-shockwave-flash
width=500
height=68
bgcolor=#000000
scale= showall>
</embed>
</object></div></td>
<td width="10%">
</tr>
</table>
<tr>
</tr>
</table>
71
<tr>
</tr>
</table>
<strong>PHP Test
</strong>
<tr>
</tr>
<tr>
<td>
<div align="left">
<strong> Post</strong></div></td>
</tr>
<tr>
<td>
<div align="left">
</tr>
<tr>
<td>
<div align="left">
<strong>Session</strong></div></td>
72
</tr>
<tr>
<td>
<div align="left">
</tr>
<tr>
<td>
<div align="center">
</div></td>
</tr>
</table>
</body>
</html>
RESULT
<?php
session_start();
?>
<html>
<head>
</head>
73
<body>
<?php
include("header.php");
include("database.php");
extract($_SESSION);
if(mysql_num_rows($rs)<1)
exit;
while($row=mysql_fetch_row($rs))
echo "</table>";
?>
</body>
</html>
REVIEW
<?php
session_start();
extract($_POST);
74
extract($_SESSION);
include("database.php");
if($submit=='Finish')
unset($_SESSION[qn]);
header("Location: index.php");
exit;
?>
<html>
<head>
</head>
<body>
<?php
include("header.php");
if(!isset($_SESSION[qn]))
$_SESSION[qn]=0;
$_SESSION[qn]=$_SESSION[qn]+1;
mysql_data_seek($rs,$_SESSION[qn]);
$row= mysql_fetch_row($rs);
$n=$_SESSION[qn]+1;
if($_SESSION[qn]<mysql_num_rows($rs)-1)
else
echo "</table></table>";
?>
SIGNUP
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
76
<title>New user signup </title>
<script language="javascript">
function check()
if(document.form1.lid.value=="")
document.form1.lid.focus();
return false;
if(document.form1.pass.value=="")
document.form1.pass.focus();
return false;
if(document.form1.cpass.value=="")
document.form1.cpass.focus();
return false;
if(document.form1.pass.value!=document.form1.cpass.value)
document.form1.cpass.focus();
return false;
77
}
if(document.form1.name.value=="")
document.form1.name.focus();
return false;
if(document.form1.address.value=="")
document.form1.address.focus();
return false;
if(document.form1.city.value=="")
document.form1.city.focus();
return false;
if(document.form1.phone.value=="")
document.form1.phone.focus();
return false;
if(document.form1.email.value=="")
document.form1.email.focus();
78
return false;
e=document.form1.email.value;
f1=e.indexOf('@');
f2=e.indexOf('@',f1+1);
e1=e.indexOf('.');
e2=e.indexOf('.',e1+1);
n=e.length;
if(!(f1>0 && f2==-1 && e1>0 && e2==-1 && f1!=e1+1 && e1!=f1+1 &&
f1!=n-1 && e1!=n-1))
document.form1.email.focus();
return false;
return true;
</script>
</head>
<body>
<?php
include("header.php");
?>
<tr>
79
<td width="132" rowspan="2" valign="top"><span class="style8"><img
src="images/connected_multiple_big.jpg" width="131" height="155"></span></td>
</tr>
<tr>
<tr>
</tr>
<tr>
<td class="style7">Password</td>
</tr>
<tr>
</tr>
<tr>
<td class="style7">Name</td>
</tr>
<tr>
</tr>
<tr>
80
<td valign="top" class="style7">City</td>
</tr>
<tr>
</tr>
<tr>
</tr>
<tr>
<td> </td>
</td>
</tr>
</table>
</form></td>
</tr>
</table>
<p> </p>
</body>
</html>
SIGNUPUSER
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>User Signup</title>
81
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<?php
include("header.php");
extract($_POST);
include("database.php");
if (mysql_num_rows($rs)>0)
exit;
?>
</body>
</html>
SUBLIST
<?php
session_start();
?>
82
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
</head>
<body>
<?php
include("header.php");
include("database.php");
while($row=mysql_fetch_row($rs))
echo "</table>";
?>
</body>
</html>
83
6. CONCLUSION
Online Examination System (OLES) is a web application. The key concept is to
minimize the amount of paper and convert all forms of documentation to digital form. It
can observe that the information required can be obtained with ease and accuracy in the
computerized system. The user with minimum knowledge about computer can be able
operate the system easily. The system also produces brief result required by the
management.
84
7. REFERENCES
https://www.w3schools.com/php/default.asp
https://www.w3schools.com/php/php_looping_for.asp
https://www.tutorialspoint.com/codingground.htm
https://www.google.co.in/search?q=google&oq=google
https://www.w3schools.com/php/php_echo_print.asp
https://www.javatpoint.com/sql-tutorial
BOOKS
85