2a AvaliacaoQUESTAOEnunciado Pontosvar correta=-1;var ponto=0;var quest=0;var acerto=0;var erro=0;document.getElementById("radioA").style.visibility="hidden";document.getElementById("radioB").style.visibility="hidden";document.getElementById("radioC").style.visibility="hidden";document.getElementById("radioD").style.visibility="hidden";function questao(){ document.getElementById("questao").style.visibility="hidden"; document.getElementById("radioA").style.visibility="visible"; document.getElementById("radioB").style.visibility="visible"; document.getElementById("radioC").style.visibility="visible"; document.getElementById("radioD").style.visibility="visible"; var ponto=0; //document.getElementById("pontos").innerHTML = correta; var q1 = Math.round((Math.random()*25)); // var q1=25; var q2 = Math.round((Math.random()*3)); if(q1==0) { document.getElementById("enunciado").innerHTML = "O subnivel mais energetico do 12Mg e"; if(q2==0) { document.getElementById("letraA").innerHTML = "s"; document.getElementById("letraB").innerHTML = "p"; document.getElementById("letraC").innerHTML = "d"; document.getElementById("letraD").innerHTML = "f"; correta=0; } if(q2==1) { document.getElementById("letraB").innerHTML = "s"; document.getElementById("letraA").innerHTML = "p"; document.getElementById("letraC").innerHTML = "d"; document.getElementById("letraD").innerHTML = "f"; correta=1; } if(q2==2) { document.getElementById("letraC").innerHTML = "s"; document.getElementById("letraB").innerHTML = "p"; document.getElementById("letraA").innerHTML = "d"; document.getElementById("letraD").innerHTML = "f"; correta=2; } if(q2==3) { document.getElementById("letraD").innerHTML = "s"; document.getElementById("letraB").innerHTML = "p"; document.getElementById("letraC").innerHTML = "d"; document.getElementById("letraA").innerHTML = "f"; correta=3; } } else if(q1==1) { document.getElementById("enunciado").innerHTML = "O subnivel mais energetico do 17Cl e"; if(q2==0) { document.getElementById("letraA").innerHTML = "p"; document.getElementById("letraB").innerHTML = "s"; document.getElementById("letraC").innerHTML = "d"; document.getElementById("letraD").innerHTML = "f"; correta=0; } if(q2==1) { document.getElementById("letraB").innerHTML = "p"; document.getElementById("letraA").innerHTML = "s"; document.getElementById("letraC").innerHTML = "d"; document.getElementById("letraD").innerHTML = "f"; correta=1; } if(q2==2) { document.getElementById("letraC").innerHTML = "p"; document.getElementById("letraB").innerHTML = "s"; document.getElementById("letraA").innerHTML = "d"; document.getElementById("letraD").innerHTML = "f"; correta=2; } if(q2==3) { document.getElementById("letraD").innerHTML = "p"; document.getElementById("letraB").innerHTML = "s"; document.getElementById("letraC").innerHTML = "d"; document.getElementById("letraA").innerHTML = "f"; correta=3; } } else if(q1==2) { document.getElementById("enunciado").innerHTML = "O subnivel mais energetico do 21Sc e"; if(q2==0) { document.getElementById("letraA").innerHTML = "d"; document.getElementById("letraB").innerHTML = "s"; document.getElementById("letraC").innerHTML = "p"; document.getElementById("letraD").innerHTML = "f"; correta=0; } if(q2==1) { document.getElementById("letraB").innerHTML = "d"; document.getElementById("letraA").innerHTML = "s"; document.getElementById("letraC").innerHTML = "p"; document.getElementById("letraD").innerHTML = "f"; correta=1; } if(q2==2) { document.getElementById("letraC").innerHTML = "d"; document.getElementById("letraB").innerHTML = "s"; document.getElementById("letraA").innerHTML = "p"; document.getElementById("letraD").innerHTML = "f"; correta=2; } if(q2==3) { document.getElementById("letraD").innerHTML = "d"; document.getElementById("letraB").innerHTML = "s"; document.getElementById("letraC").innerHTML = "p"; document.getElementById("letraA").innerHTML = "f"; correta=3; } } else if(q1==3) { document.getElementById("enunciado").innerHTML = "O subnivel mais energetico do 62Sm e"; if(q2==0) { document.getElementById("letraA").innerHTML = "f"; document.getElementById("letraB").innerHTML = "s"; document.getElementById("letraC").innerHTML = "p"; document.getElementById("letraD").innerHTML = "d"; correta=0; } if(q2==1) { document.getElementById("letraB").innerHTML = "f"; document.getElementById("letraA").innerHTML = "s"; document.getElementById("letraC").innerHTML = "p"; document.getElementById("letraD").innerHTML = "d"; correta=1; } if(q2==2) { document.getElementById("letraC").innerHTML = "f"; document.getElementById("letraB").innerHTML = "s"; document.getElementById("letraA").innerHTML = "p"; document.getElementById("letraD").innerHTML = "d"; correta=2; } if(q2==3) { document.getElementById("letraD").innerHTML = "f"; document.getElementById("letraB").innerHTML = "s"; document.getElementById("letraC").innerHTML = "p"; document.getElementById("letraA").innerHTML = "d"; correta=3; } } else if(q1==4) { document.getElementById("enunciado").innerHTML = "O periodo que se encontra o 9A e"; if(q2==0) { document.getElementById("letraA").innerHTML = "segundo"; document.getElementById("letraB").innerHTML = "terceiro"; document.getElementById("letraC").innerHTML = "quarto"; document.getElementById("letraD").innerHTML = "quinto"; correta=0; } if(q2==1) { document.getElementById("letraB").innerHTML = "segundo"; document.getElementById("letraA").innerHTML = "terceiro"; document.getElementById("letraC").innerHTML = "quarto"; document.getElementById("letraD").innerHTML = "quinto"; correta=1; } if(q2==2) { document.getElementById("letraC").innerHTML = "segundo"; document.getElementById("letraB").innerHTML = "terceiro"; document.getElementById("letraA").innerHTML = "quarto"; document.getElementById("letraD").innerHTML = "quinto"; correta=2; } if(q2==3) { document.getElementById("letraD").innerHTML = "segundo"; document.getElementById("letraB").innerHTML = "terceiro"; document.getElementById("letraC").innerHTML = "quarto"; document.getElementById("letraA").innerHTML = "quinto"; correta=3; } } else if(q1==5) { document.getElementById("enunciado").innerHTML = "O periodo que se encontra o 16B e"; if(q2==0) { document.getElementById("letraA").innerHTML = "terceiro"; document.getElementById("letraB").innerHTML = "segundo"; document.getElementById("letraC").innerHTML = "quarto"; document.getElementById("letraD").innerHTML = "quinto"; correta=0; } if(q2==1) { document.getElementById("letraB").innerHTML = "terceiro"; document.getElementById("letraA").innerHTML = "segundo"; document.getElementById("letraC").innerHTML = "quarto"; document.getElementById("letraD").innerHTML = "quinto"; correta=1; } if(q2==2) { document.getElementById("letraC").innerHTML = "terceiro"; document.getElementById("letraB").innerHTML = "segundo"; document.getElementById("letraA").innerHTML = "quarto"; document.getElementById("letraD").innerHTML = "quinto"; correta=2; } if(q2==3) { document.getElementById("letraD").innerHTML = "terceiro"; document.getElementById("letraB").innerHTML = "segundo"; document.getElementById("letraC").innerHTML = "quarto"; document.getElementById("letraA").innerHTML = "quinto"; correta=3; } } else if(q1==6) { document.getElementById("enunciado").innerHTML = "O periodo que se encontra o 33D e"; if(q2==0) { document.getElementById("letraA").innerHTML = "quarto"; document.getElementById("letraB").innerHTML