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 = [“A”,”A”,”C”,”D”,”C”,”A”,”A”,”D”,”A”,”B”,”B”,”C”,”B”,”B”,”C”], 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 the following questions, out of the four alternatives, choose the one which best expresses the meaning of the given word.
Q1. Nifty
Q2. Digression
synonyms-deviation, detour, diversion, departure, excursus
Q3. Festering
Q4. Maestro
Q5. To cite
Q6. To scar
Q7. Synchronicity
Q8. Accolade
synonyms- honour, recognition, privilege, award, gift, title;
Q9. Sinister
Q10. Bother
Q11. Probable
Q12. Proscriptive
Q13. Decree
synonyms-order, edict, command, commandment, mandate, proclamation, dictum, fiat,
Q14. Gaudy
synonyms- garish, lurid, loud, over-bright, glaring, harsh, violent, flashy, showy
Q15. Ague