Mini Project Report
Mini Project Report
I have Learned HTML5 and all of its latest features by building a quiz
application. The project helped me to learn how to create the UI, how
to manipulate DOM using JQuery and even how to optimize coding in
HTML5.
Introduction
The ‘MCQ Quiz Application’ project will be developed to overcome
the time consuming problem of manual system. Apart from that in
current system, checking the answer sheets after taking test, waste the
students time, so this application will check the correct answer and
save the students time and carry the examination in an effective
manner .The aim of this project is to computerized the existing
manual system and help the students to
save their valuable time and important data. Apart from this, data
which are exist in this system, will exist for long period of time and
will be easy accessible. This project helps the students to manage
their services in a good way and provide a better service to their users.
Methodology
Methodology
Methodology
Methodology
Source Code
The complete application is developed using HTML, CSS and
Javascript
body
{
font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial,
sans-serif;
font-size: medium;
line-height: 1.6em;
background-color:white;
}
li
{
list-style: none;
}
.container
{
width:75%;
margin: 20px auto;
overflow: auto;
}
.pull-left
{
float: left;
}
.pull-right
{
float:right;
}
header
{
background:white;
color: steelblue;
padding: 5px 10px;
overflow: auto;
font-size: 18px;
}
footer
{
background: white;
color: steelblue;
padding: 5px 10px;
overflow: auto;
font-size: 13px;
}
@media only screen and (max-width:900px)
{
.container
{
width: 90%;
}
}
function init()
{
sessionStorage.setItem('a1','b');
sessionStorage.setItem('a2','b');
sessionStorage.setItem('a3','a');
sessionStorage.setItem('a4','c');
sessionStorage.setItem('a5','a');
}
$(document).ready(function(){
$('.questionForm').hide();
$('#q1').show();
$('.questionForm #submit').click(function(){
//Get data attributes
current = $(this).parents('form:first').data('question');
next = $(this).parents('form:first').data('question')+1;
//Hide all questions
$('.questionForm').hide();
//Show next question
$('#q'+next+'').fadeIn(300);
process(''+current+'');
return false;
});
});
function process(n){
var submitted = $('input[name=q'+n+']:checked').val();
if(submitted == sessionStorage.getItem('a'+n+'')){
score = score + point;
}
if(n == total)
{
$('#result').html('<h3>Your final score is: '+score+' out of
'+highest+'</h3><a href="index.html">Take Quiz Again</a>');
}
return false;
}
window.addEventListener('load',init,false);
Output of the Project
Conclusion
This project is only for MCQ test but in the future we have plan to
extended it to support subjective type of questions with more
functionality. We will add Administrative part on it which able the
system to delete test, add user, delete user and so on graphically vie
the web.
To conclude, this is a simple Online MCQ Quiz which able a student
to punch MCQ question to system. The student will be able to attempt
any test for once. The marks of student will be calculated according to
questions they attempt and will be displayed by the system to the
student
References