Web Quiz Application Using HTML, Css and Java Script: Bachelor of Technology IN Computer Science and Engineering
Web Quiz Application Using HTML, Css and Java Script: Bachelor of Technology IN Computer Science and Engineering
Web Quiz Application Using HTML, Css and Java Script: Bachelor of Technology IN Computer Science and Engineering
BACHELOR OF TECHNOLOGY
IN
COMPUTER SCIENCE AND ENGINEERING
By
B. PAVAN KUMAR G. MAHENDRA VARMA
193J1A0523 193J1A0551
Assistant Professor
1
RAGHU INSTITUTE OF TECHNOLOGY
(Autonomous)
Affiliated to JNTU-Kakinada
Dakamarri (V), Bheemunipatnam (M),
Visakhapatnam
CERTIFICATE
This is to certify that this project entitled “WEB QUIZ APPLICATION USING
bearing Regd. No: 193J1A0523, 193J1A0551 during the academic year 2020-2021 in partial
fulfillment of the requirements for the completion of 2nd year of Bachelor of Technology in
Computer Science And Engineering, under the supervision of Mr. E.Uma Shankar Rao,
EXTERNAL EXAMINER
2
DECLARATION
This is to certify that this project titled is “WEB QUIZ APPLICATION USING
HTML,CSS AND JAVASCRIPT” bonafide work done by us, in partial fulfilment of the
requirements for the completion of 2nd year of the degree B.Tech and submitted to the
Dakamarri.
We also declare that this project is a result of our own effort and that has not been
copied from anyone and we have taken only citations from the sources which are
3
Abstract
Quiz In JavaScript project is developed using HTML 5, CSS, and
JavaScript. Here, the user can add, view, edit, and delete the quiz
questions. Also, you can take test by clicking on the html document
their will be no time limit.
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.
4
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
5
The methodology of developing of project will be a step-by-step
sequence to design, develop and deliver the application. In software
engineering this methodology called ‘waterfall model’ which one
portion of work follows after another in a linear sequence.
Following steps will be followed in this methodology:
- Initiation (Requirement Specification);
- Planning and design;
- Execution (construction and coding);
- Validation (Testing);
- Closure (Installation).
Source Code
The complete application is developed using HTML, CSS and
Javascript
7
<br>a, b = 12, 5
<br>if a + b:
<br>    print('True')
<br>else:
<br>    print('False')</h3>
<u1>
<li><input type="radio" name="q3" value="a"
/>True</li>
<li><input type="radio" name="q3" value="b"
/>False</li>
<li><input type="radio" name="q3" value="c"
/>Error</li>
<li><input type="radio" name="q3" value="d" />None of
the Above</li>
</u1>
<p><button id="submit">Submit</button></p>
</form>
8
<u1>
<li><input type="radio" name="q5" value="a" />0</li>
<li><input type="radio" name="q5" value="b" />1</li>
<li><input type="radio" name="q5" value="c"
/>Infinite</li>
<li><input type="radio" name="q5" value="d"
/>Error</li>
</u1>
<p><button id="submit">Submit</button></p>
</form>
<div id="result">
<br>
</div>
</main>
<footer>
<div id="pull-left">Total No of Questions : 5</div>
</footer>
</div>
<script src="js/jquery.js"></script>
<script src="js/quiz.js"></script>
</body>
</html>
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;
}
9
.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%;
}
}
10
JavaScript Source code:
We use Jquery for the backend to store the response from the student.
We can use Jquery using the file code or from the website
Jquery is necessary for the web application to Run
var score=0;
var total=5;
var point=1;
highest= total * point;
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
11
$('.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);
12
Output of the Project
13
14
15
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
16
References
17