var m=6
var s=0
//var m=2
var q
function quizCount()
{
document.getElementById(‘timer’).value=m+”:”+s
s=s-1
q=setTimeout(“quizCount()”, 1000)
if (s<1)
{ m=m-1; s=59;}
if (m<0)
{
quizStop();
}
}
function quizStop()
{
clearTimeout(q)
document.getElementById('timer').value="Quiz Finished"
alert("Your score is "+ getScore() +"/"+ tot);
$('.ans').show();
$(".s1").css("background-color","#00FF66");
$(".s1").css("font-size","140%");
$(".s1").css("width","initial");
}
function quizReset()
{
clearTimeout(q)
document.getElementById('timer').reset();
}
.ans
{
color:blue;
font-weight:bold;
padding-left: 20px;
}
.submit
{
position: relative;
cursor: pointer;
height: 30px;
width: 100px;
font-weight: bold;
border-radius: 3px;
background: #336699;
font-size: 20px;
color: #FFFFFF;
}
.start, .re
{
position: relative;
cursor: pointer;
height: 25px;
width: 70px;
color: #FFFFFF;
font-weight: bold;
border-radius: 3px;
background: #336699;
font-size: 0.9em
}
.st
{
position: relative;
cursor: pointer;
height: 25px;
width: 110px;
color: #FFFFFF;
font-weight: bold;
border-radius: 3px;
background: #336699;
font-size: 0.9em
}
var answers = [“C”,”B”,”B”,”A”,”B”,”B”,”B”,”B”,”D”,”D”,”B”,”D”,”B”,”B”,”B”], tot = answers.length;
function getCheckedValue( radioName ){
var radios = document.getElementsByName( radioName ); // Get radio group by-name
for(var y=0; y<radios.length; y++)
if(radios[y].checked) return radios[y].value; // return the checked value
}
function getScore(){
var score = 0;
for (var i=0; i<tot; i++)
if(getCheckedValue("question"+i)===answers[i]) score += 1; // increment only
return score;
}
function returnScore(){
alert("Your score is "+ getScore() +"/"+ tot);
}
$(document).ready(function() {
$('.ans').hide();
$('.submit').click(function(event) {
$(".s1").css("background-color","#00FF66");
$(".s1").css("font-size","140%");
$(".s1").css("width","initial");
$('.ans').show();
quizStop();
});
$('#reset').click(function(event) {
quizReset();
});
});
Directions (1-15): In these questions, out of the four alternatives choose the one which can be substituted for the given words/sentence.
Q1. Complete change of form
Q2. An unexpected piece of good fortune
Q3. Those who go on to someone else’s land without the owner’s permission
Q4. Pertaining to horses
Q5. One who cannot be corrected
Q6. Difficult or impossible to read
Q7. Movement of a part of the body to express an idea or feeling.
Q8. Failing to discharge one’s duty.
Q9. A person who is physically dependent on a substance.
Q10. A child born after the death of its father is called.
Q11. A legal agreement by which a person borrows money from a bank usually to buy a house.
Q12. Work for which one does not take salary or payment
Q13. No longer in use
Q14. An office with a salary but no work
Q15. The study or collection of coins