CSS Microproject
CSS Microproject
A PROJECT REPORT
Submitted By:
CERTIFICATE
1
CSS MICROPROJECT
4.0 Action Plan (Sequence and time required for major activity)
Sr. Details of activity Planned Start Planned Name of
No. date Finish date Responsible
Team Members
2
CSS MICROPROJECT
5.0 Resources Required (major resources such as raw material, some machining facility,
software etc.)
Sr. Name of Specifications Qty Remarks
No. Resource/material
1 MS-Word MS-2010 1
2 Laptop AMD RYZEN @3.30GHZ 1
8GB RAM
3 Application Sub-lime text 1
Annexure – II
3
CSS MICROPROJECT
1. Communication
2. Problem-solving
3. Teamwork
4. Adaptability
5. Creativity
6. IT skills
7. Programming skill
4
CSS MICROPROJECT
Introduction
Program Code :
<!DOCTYPE html>
<html>
<head>
<title>Dynamic Quiz Project</title>
<link type='text/css' rel='stylesheet'
href='stylesheet.css'/>
5
CSS MICROPROJECT
<script type='text/javascript'
src='https://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery
.min.js'></script>
6
CSS MICROPROJECT
<script type="text/javascript"
src='questions.json'></script>
<script type='text/javascript' src='jsquiz.js'></script>
</body>
</html>
JS code:-
(function() {
var questions = [{
question: "What is 2*5?",
choices: [2, 5, 10, 15, 20],
correctAnswer: 2
}, {
question: "What is 3*6?",
choices: [3, 6, 9, 12, 18],
correctAnswer: 4
}, {
question: "What is 8*9?",
choices: [72, 99, 108, 134, 156],
correctAnswer: 0
}, {
question: "What is 1*7?",
choices: [4, 5, 6, 7, 8],
correctAnswer: 3
}, {
7
CSS MICROPROJECT
8
CSS MICROPROJECT
} else {
questionCounter++;
displayNext();
}
});
if(quiz.is(':animated')) {
return false;
}
choose();
questionCounter--;
displayNext();
});
if(quiz.is(':animated')) {
return false;
}
9
CSS MICROPROJECT
questionCounter = 0;
selections = [];
displayNext();
$('#start').hide();
});
10
CSS MICROPROJECT
var question =
$('<p>').append(questions[index].question);
qElement.append(question);
return qElement;
}
11
CSS MICROPROJECT
$('input[value='+selections[questionCounter]+']').prop('check
ed', true);
}
12
CSS MICROPROJECT
$('#prev').show();
} else if(questionCounter === 0){
$('#prev').hide();
$('#next').show();
}
}else {
var scoreElem = displayScore();
quiz.append(scoreElem).fadeIn();
$('#next').hide();
$('#prev').hide();
$('#start').show();
}
});
}
var numCorrect = 0;
for (var i = 0; i < selections.length; i++) {
if (selections[i] === questions[i].correctAnswer) {
numCorrect++;
13
CSS MICROPROJECT
}
}
Output:
14
CSS MICROPROJECT
Conclusion:
The project involves a good knowledge of JavaScript and
html programming language. We learnt about html tags,
Events.
Dynamic quiz Recognition system Provides the ability of convert into
well understandable words Due to its ability of real time .
Reference:-
www.wikipedia.com
Thank You!!!!!....
15