1.1 Project Overview: Online Technical Quiz Management
1.1 Project Overview: Online Technical Quiz Management
CHAPTER 1
INTRODUCTION
This project has a wide scope as it is better than the manual tests. Following are some of
its advantages:
Both educational organizations and corporate companies can employ this Quiz.
It, being an application based on web may be taken at any place or any time as the
location is not considered.
The presence of the examiner is not required while the candidate is appearing for
the test.
The objective and scope of my Project Online Technical Quiz System is to record the
details various activities of user. It will simplifies the task and reduce the paper work.
Specific support will also be provided at key points with in the academic calendar.
Training will be provided on a timely basis" and you will be trained as the new is Online
Quiz System rolled out to your area of responsibility. The moment we are in the very
early stales" so it is difficult to put a specific time on the training" but we will keep
people informed as plans are developed. The system is very user friendly and it is
anticipated that functions of the system will be easily accessed by administrators"
academics" students and applicants .Since the management system for the college
management has been designed to remove all the deficiency from which the present
system is suffering and to ensure.
Benefits
For web surfers, Online technical Quiz acts as a popular way of recreation. It is free of
cost and meant for entertainment and they also give prizes. Online technical Quiz is
organized to examine the wisdom or identify a person’s characteristics. Most of the
companies employ online quiz as an effective manner of examining a prospective
employee’s wisdom without that person’s personal presence.
CHAPTER 2
SYSTEM REQUIREMENT
2.3.1 PHP
Stands for "Hypertext Preprocessor." (It is a recursive acronym, if you can understand
what that means.) PHP is an HTML-embedded Web scripting language. This means PHP
code can be inserted into the HTML of a Web page. When a PHP page is accessed, the
PHP code is read or "parsed" by the server the page resides on. The output from the PHP
functions on the page are typically returned as HTML code, which can be read by the
browser. Because the PHP code is transformed into HTML before the page is loaded,
users cannot view the PHP code on a page. This make PHP pages secure enough to
access databases and other secure information.
A lot of the syntax of PHP is borrowed from other languages such as C, Java and Perl.
However, PHP has a number of unique features and specific functions as well. The goal
of the language is to allow Web developers to write dynamically generated pages quickly
and easily. PHP is also great for creating database-driven Web sites. If you would like to
learn more about PHP, the official site is PHP.net.
PHP code may be embedded into HTML code, or it can be used in combination with
various web template systems, web content management systems, and web frameworks.
PHP code is usually processed by a PHP interpreter implemented as a module in the web
server or as a Common Gateway Interface (CGI) executable. The web server combines
the results of the interpreted and executed PHP code, which may be any type of data,
including images, with the generated web page. PHP code may also be executed with
a command-line interface (CLI) and can be used to implement standalone graphical
applications.
The standard PHP interpreter, powered by the Zend Engine, is free software released
under the PHP License. PHP has been widely ported and can be deployed on most web
servers on almost every operating system and platform, free of charge
The PHP language evolved without a written formal specification or standard until 2014,
with the original implementation acting as the de facto standard which other
implementations aimed to follow. Since 2014 work has gone on to create a formal PHP
specification.
Member Variable − These are the variables defined inside a class. This data will
be invisible to the outside of the class and can be accessed via member functions.
These variables are called attribute of the object once an object is created.
Member function − These are the function defined inside a class and are used to
access object data.
Parent class − A class that is inherited from by another class. This is also called
a base class or super class.
Child Class − A class that inherits from another class. This is also called a
subclass or derived class.
The main features of php is it is open source scripting language so you can free
download this and use. PHP is a server site scripting language. It is open source
scripting language. It is widely used all over the world. It is faster than other
scripting language.
Simple
It is very simple and easy to use, compare to other scripting language it is very simple
and easy, this is widely used all over the world.
Interpreted
Faster
Open Source
Open source means you no need to pay for use php, you can free download and use.
Platform Independent
PHP code will be run on every platform, Linux, Unix, Mac OS X, Windows.
Case Sensitive
PHP is case sensitive scripting language at time of variable declaration. In PHP, all
keywords (e.g. if, else, while, echo, etc.), classes, functions, and user-defined
functions are NOT case-sensitive.
Error Reporting
PHP have some predefined error reporting constants to generate a warning or error
notice.
PHP provides access logging by creating the summary of recent accesses for the user.
Syntax
Code in bold letter shows the PHP code embedded in HTML
<html>
<head>
<title> PHP TEST </title>
</head>
<body>
< ? php ech echo “<p> Hello world</p>” ; ?>
</body>
</html?
In order to develop and run PHP Web pages three vital components need to be installed
on your computer system.
Web Server − PHP will work with virtually all Web Server software, including
Microsoft's Internet Information Server (IIS) but then most often used is freely
available Apache Server. Download Apache for free here
− https://httpd.apache.org/download.cgi
Database − PHP will work with virtually all database software, including Oracle
and Sybase but most commonly used is freely available MySQL database.
PHP Parser − In order to process PHP script instructions a parser must be
installed to generate HTML output that can be sent to the Web Browser. This
tutorial will guide you how to install PHP parser on your computer.
PHP can handle forms, i.e. gather data from files, save data to a file, through
email you can send data, return data to the user.
You add, delete, modify elements within your database through PHP.
Using PHP, you can restrict users to access some pages of your website.
HTML
is the language for describing the structure of Web pages. HTML gives authors the
means to:
Publish online documents with headings, text, tables, lists, photos, etc.
Retrieve online information via hypertext links, at the click of a button.
Design forms for conducting transactions with remote services, for use in searching
for information, making reservations, ordering products, etc.
Include spread-sheets, video clips, sound clips, and other applications directly in
their documents.
With HTML, authors describe the structure of pages using markup. The elements of the
language label pieces of content such as “paragraph,” “list,” “table,” and so on.
CSS
is the language for describing the presentation of Web pages, including colors, layout,
and fonts. It allows one to adapt the presentation to different types of devices, such as
large screens, small screens, or printers. CSS is independent of HTML and can be used
with any XML-based markup language. The separation of HTML from CSS makes it
easier to maintain sites, share style sheets across pages, and tailor pages to different
environments.
Using HTML5 and CSS3 provides advantages to businesses that develop and deploy web
content and web applications, to create refined and accurate web pages and web systems
that operate across devices, operating systems and web browsers. Write once, run
anywhere. The plethora of devices, operating systems and screen sizes present numerous
design, functional and layout considerations and problems if standards are not adhered to.
2.3.3 MY-SQL
Database
MySQL is an Oracle-backed open source relational database management system
(RDBMS) based on Structured Query Language (SQL). MySQL runs on virtually all
platforms, including Linux, UNIX and Windows. Although it can be used in a wide range
of applications, MySQL is most often associated with web applications and online
publishing.
Originally conceived by the Swedish company MySQL AB, MySQL was acquired by
Sun Microsystems in 2008 and then by Oracle when it bought Sun in 2010. Developers
can use MySQL under the GNU General Public License (GPL), but enterprises must
obtain a commercial license from Oracle.
Today, MySQL is the RDBMS behind many of the top websites in the world and
countless corporate and consumer-facing web-based applications, including Facebook,
Twitter and YouTube.
How MySQL works: MySQL is based on a client-server model. The core of MySQL is
MySQL server, which handles all of the database instructions (or commands). MySQL
server is available as a separate program for use in a client-server networked environment
and as a library that can be embedded (or linked) into seperate applications.
MySQL operates along with several utility programs which support the administration of
MySQL databases. Commands are sent to MySQLServer via the MySQL client, which is
installed on a computer.
MySQL was originally developed to handle large databases quickly. Although MySQL is
typically installed on only one machine, it is able to send the database to multiple
locations, as users are able to access it via different MySQL client interfaces. These
interfaces send SQL statements to the server and then display the results.
MySQL enables data to be stored and accessed across multiple storage engines, including
InnoDB, CSV, and NDB. MySQL is also capable of replicating data and partitioning
tables for better performance and durability. MySQL users aren't required to learn new
commands; they can access their data using standard SQL commands.
MySQL is written in C and C++ and accessible and available across over 20 platforms,
including Mac, Windows, Linux and Unix. The RDBMS supports large databases with
millions records and supports many data types including signed or unsigned integers 1, 2,
3, 4, and 8 bytes long; FLOAT; DOUBLE; CHAR; VARCHAR; BINARY;
VARBINARY; TEXT; BLOB; DATE; TIME; DATETIME; TIMESTAMP; YEAR;
SET; ENUM; and OpenGIS spatial types. Fixed- and variable-length string types are also
supported.
For security, MySQL uses an access privilege and encrypted password system that
enables host-based verification. MySQL clients can connect to MySQL Server using
several protocols, including TCP/IP sockets on any platform. MySQL also supports a
number of client and utility programs, command-line programs and administration tools
such as MySQL Workbench.
Percona Server with XtraDB, an enhanced version of MySQL known for horizontal
scalability.
MySQL vs SQL
Before 2016, the main difference between MySQL and SQL was that the former could be
used on multiple platforms, whereas the latter could only be used on Windows. Microsoft
has since expanded SQL to support Linux, a change which went into effect in 2017.
When MySQL is installed via Linux, its package management system requires custom
configuration to adjust security and optimization settings.
MySQL also allows users to choose the most effective storage engine for any given table,
as the program is able to utilize multiple storage engines for individual tables. One of
MySQL's engines is InnoDB. InnoDB was designed for high avaibility. Because of this,
it is not as quick as other engines. SQL uses its own storage system, but it does maintain
multiple safeguards against loss of data. Both systems are able to run in clusters for high
availability.
SQL Server offers a wide variety of data analysis and reporting tools. SQL Server
Reporting Services is the most popular one and is available as a free download. There are
similar analysis tools for MySQL available from third-party software companies, such as
Crystal Reports XI and Actuate BIRT.
The database object semantics between SQL Server and MySQL are similar, but not
identical. There are architectural differences that must be considered when migrating
from SQL Server to MySQL. In MySQL, there is no difference between a database and a
schema, while SQL Server treats the two as separate entities.
2.3.4 TRIGGER
A trigger is a set of actions that are run automatically when a specified change operation
(SQL INSERT, UPDATE, or DELETE statement) is performed on a specified table.
Triggers are useful for tasks such as enforcing business rules, validating input data, and
keeping an audit trail.
In my project ,i have given trigger in the news table. The trigger is based on AFTER
UPDATE function. An AFTER UPDATE Trigger means that MySQL will fire this
trigger after the UPDATE operation is executed.
AFTER UPDATE
BEGIN
-- variable declarations
-- trigger code
END;
Parameters or Arguments
AFTER UPDATE: It indicates that the trigger will fire after the UPDATE operation is
executed.
if(!isset($_SESSION[qn]))
$_SESSION[qn]=0;
$_SESSION[trueans]=0;
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;
$_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();
CHAPTER 3
SYSTEM DESIGN
3.2Output Design
In output design, the emphasis is on producing a hard copy of the information request or
displaying on the output on the CRT screen in a predefined format.
Computer output is the most important and direct source of information on the use.
Efficient, Intelligible output design improves the system relationship with the user and
help in decision making.
The output design mainly contributes towards the report generated for making the
decision by checking the desired condition, the reports are generated.
CHAPTER 4
Testing and implementation
4.1 Testing
The goals of verification and validation activities are to access and improve quality of the
work products generated during development is “Are we building the product right?” and
validation is “Are we building the right product?”
Software once validate must be combined with other system elements. System testing
verifies that all the elements miss properly and that overall system function performance
is achieved. It also tests to find discrepancies between system and its original current
specification and system documentation.
Starting from the bottom, the first level of testing is component testing some time it is
called unit testing specified in the component correctly. Black box testing is the most
important testing to ensure that users of the application have a flawless and satisfying
experience. Because black box is to identifying contradictions in function specification
from the user’s perspective, having a tool that brings efficiency to your testing process is
essential.
The white box testing is performed based on the knowledge of how the system is
implemented. White box testing includes analysing data flow, control flow, information
flow, coding practices exception and error handling within the system.
The testing the intended and unintended software behaviour. Which box testing can be
performed to validate whether code. Implementation follows intended design, to validate
implemented security functionality and uncover exploitable vulnerabilities.
Integration testing addresses issues associated with the dual problem of verification and
program construction. After the software has been integrates a set of high-order tests are
conducted.
The main objectives of this testing process are to take unit tested modules and build a
program structure that has been directed by design.
This system developed and give the different types of inputs and tested the required
outputs are displayed.
4.2 Implementation
The Hardware Sales and Services system developed may be totally now, replacing an
existing system. Proper implementation is essential to provide a reliable system to meet
organization requirements. Implementation is the stage of the project when the theoretical
design is turned into actual working system.
Training the implementation to learn the system. Careful planning and method to
implementation
Making necessary changes to the system as desired by the user.
Testing the developed program with adequate sample data.
1 phone
mst_user
hold
mst_admin
1 Your_ans
Sub_id Sub_name
has have
M m m m 1 1
mst_result take mst_question have mst_test
e
Test_que
ans1
Que_des e
ans2
ans3
True_ans
ans4
CHAPTER 6
SCHEMA DIAGRAM
Id loginid pass
sub_id sub_name
CHAPTER 7
SNAPSHOTS
Fig7.1:login page
This is the login page where the user login using his user name which was stored in
database and the user password linked with the stored user name.
Fig7.3:Welcome page
Fig7.4:Choose subject
Here we have to choose the subject ,the subject are given in the above picture.We have
7 subject.
Fig7.5:Question Categories
In the above picture we are selecting the VB subject .VB subject are divided into three
categories ,these are seen in the picture.
Fig7.6:Question Pattern
Fig7.8:Review Question
CHAPTER 8
TABLE IMPLEMENTATION
Table8.1:mst_admin
NAME TYPE
Id Int(11)
Loginid Varchar(50)
Pass Varchar(50)
Table8.2:mst_question
NAME TYPE
que_id Int(5)
test_id Int(5)
que_desc Varchar(150)
ans1 Varchar(75)
ans2 Varchar(75)
ans3 Varchar(75)
ans4 Varchar(75)
true_ans Int(5)
Table8.3:mst_result
NAME TYPE
login_id Varchar(20)
test_id Int(5)
test_date Date
Score Int(3)
Table8.4:mst_subject
NAME TYPE
Sub_id Int(5)
Sub_name Varchar(25)
Table8.5: mst_test
NAME TYPE
Test_id Int(5)
Sub_id Int(5)
Test_name Varchar(30)
Total_que Varchar(15)
Table8.6: mst_user
NAME TYPE
user_id Int(5)
Login Varchar(20)
Pass Varchar(20)
Username Varchar(30)
Address Varchar(50)
City Varchar(15)
Phone Int(10)
Email Varchar(30)
Table8.7:mst_useranswer
NAME TYPE
sess_id Varchar(80)
test_id Int(11)
que_id Varchar(200)
ans1 Varchar(50)
ans2 Varchar(50)
ans3 Varchar(50)
ans4 Varchar(50)
True Int(11)
your_ans Int(11)
CONCLUSION
This online quiz system provides facility to conduct online examination world wide. It
saves time as it allows number of students to give the exam at a time and displays the
results as the test gets over, so no need to wait for the result. It is automatically generated
by the server. Administrator has a privilege to create, modify and delete the test papers
and its particular questions. User can register, login and give the test with his specific id,
and can see the results as well.
REFERENCES
a. http://phplens.com/phpeverywhere/node/view/15
b. http://www.mysql.com/why-mysql/
c. http://student.bu.ac.bd/~shadid/