n_alternativas = new Array(12);
n_alternativas[0] = "5";
n_alternativas[1] = "5";
n_alternativas[2] = "5";
n_alternativas[3] = "5";
n_alternativas[4] = "5";
n_alternativas[5] = "5";
n_alternativas[6] = "5";
n_alternativas[7] = "5";
n_alternativas[8] = "5";
n_alternativas[9] = "5";
n_alternativas[10] = "5";
n_alternativas[11] = "5";

perguntas = new Array(12);
perguntas[0] = new Array(5);
perguntas[1] = new Array(5);
perguntas[2] = new Array(5);
perguntas[3] = new Array(5);
perguntas[4] = new Array(5);
perguntas[5] = new Array(5);
perguntas[6] = new Array(5);
perguntas[7] = new Array(5);
perguntas[8] = new Array(5);
perguntas[9] = new Array(5);
perguntas[10] = new Array(5);
perguntas[11] = new Array(5);


perguntas[0][0] = '1. O conjunto solução do sistema, no campo dos números reais,&nbsp;<br><br><IMG src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/figmat1.JPG">';
perguntas[0][1] = '{X E IR/x < 1/2 ou x > 3}';
perguntas[0][2] = '{4}';
perguntas[0][3] = '{1/2}';
perguntas[0][4] = ']1/2,3[';
perguntas[0][5] = '0';



perguntas[1][0] = '2. A soma das raízes positivas da equação, em IR,<br><br><IMG src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/figmat2.JPG"><br><br>é igual a';
perguntas[1][1] = '5';
perguntas[1][2] = '7';
perguntas[1][3] = '4';
perguntas[1][4] = '6';
perguntas[1][5] = '3';

perguntas[2][0] = '3. Resolva em IR a inequação <SUB><IMG height=36 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image002.gif" width=33 v:shapes="_x0000_i1025"></SUB>&nbsp;&nbsp;³ &nbsp;<SUB><IMG height=36 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image004.gif" width=33 v:shapes="_x0000_i1026"></SUB>. Quantas são as raízes inteiras desta inequação?';
perguntas[2][1] = 'infinitas';
perguntas[2][2] = '3';
perguntas[2][3] = '1';
perguntas[2][4] = 'nenhuma ';
perguntas[2][5] = '2';


perguntas[3][0] = '4. O conjunto solução da equação na incógnita <B>x</B>, com a Î IR,<br><br><img src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/figmat4.JPG"> ';
perguntas[3][1] = '{0}';
perguntas[3][2] = '{0, 2 a}';
perguntas[3][3] = '{a}';
perguntas[3][4] = '{0, a}';
perguntas[3][5] = '{0, a, 2 a}';



perguntas[4][0] = '5. Seja <B>f</B> uma função definida em A = {1, 2, 3, 4, 5}&nbsp; por &nbsp;A = {1, 2, 3, 4, 5} <BR>por f(1) = 3, f(2) = <SUB><IMG height=21 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image006.gif" width=29 v:shapes="_x0000_i1037"></SUB>, f(3) = 5, f(4) = [f(7)]<SUP>0</SUP>&nbsp; e&nbsp; f(5) =<SUB><IMG height=36 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image008.gif" width=27 v:shapes="_x0000_i1038"></SUB>, &nbsp;&nbsp;então&nbsp; fofofofof &nbsp;(f(4)) é igual a';
perguntas[4][1] = '1';
perguntas[4][2] = '2';
perguntas[4][3] = '10';
perguntas[4][4] = '0';
perguntas[4][5] = '4';

perguntas[5][0] = '6. O gráfico de x<SUP>3</SUP>y + xy<SUP>3</SUP> – xy = 0 consiste de:';
perguntas[5][1] = 'duas retas e uma parábola;';
perguntas[5][2] = 'duas parábolas e uma reta;';
perguntas[5][3] = 'duas retas e uma circunferência;';
perguntas[5][4] = 'duas circunferências e uma reta;';
perguntas[5][5] = 'uma circunferência e uma parábola.';

perguntas[6][0] = '7. A área da região delimitada por uma elipse de equação <SUB><IMG height=40 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image010.gif" width=21 v:shapes="_x0000_i1027"></SUB>+ <SUB><IMG height=40 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image012.gif" width=21 v:shapes="_x0000_i1028"></SUB>&nbsp;é dada pela fórmula <BR>S = pab. Nestas condições calcule a área delimitada pela elipse de equação <BR>9x<SUP>2</SUP> + 25y<SUP>2</SUP> = 225.';
perguntas[6][1] = '225 p';
perguntas[6][2] = '25 p';
perguntas[6][3] = '9&nbsp;p';
perguntas[6][4] = '15 p';
perguntas[6][5] = '3 p';


perguntas[7][0] = '8. São dadas as retas <B>r</B>, de equação y = <SUB><IMG height=39 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image014.gif" width=25 v:shapes="_x0000_i1039"></SUB>x, e a circunferência <B>l</B>, de equação <BR>x<SUP>2</SUP> + y<SUP>2</SUP> – 4x = 0.&nbsp; O centro de <B>l</B>&nbsp; e as intersecções de <B>r</B> e <B>l</B> determinam um triângulo cuja área é:';
perguntas[7][1] = '<IMG height=21 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image016.gif" width=23 v:shapes="_x0000_i1040">';
perguntas[7][2] = '3';
perguntas[7][3] = '2<SUB><IMG height=21 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image018.gif" width=23 v:shapes="_x0000_i1041"></SUB>';
perguntas[7][4] = '6';
perguntas[7][5] = '3<SUB><IMG height=21 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image019.gif" width=23 v:shapes="_x0000_i1042"></SUB>';



perguntas[8][0] = '9. As retas <B>r</B> e <B>s</B> são perpendiculares e interceptam-se no ponto (2; 4). A reta <B>s</B> passa pelo ponto (0; 5). Uma equação da reta <B>r</B> é:';
perguntas[8][1] = '2y + x = 10';
perguntas[8][2] = 'y = x + 2';
perguntas[8][3] = '2y – x = 6';
perguntas[8][4] = '2x + y = 8';
perguntas[8][5] = 'y = 2x';

perguntas[9][0] = '10. O protagonista da história abaixo mostra que a taxa de lucro na sua empresa é de:<br><br><img src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/figmat10.JPG">';
perguntas[9][1] = '50%';
perguntas[9][2] = '75%';
perguntas[9][3] = '100%';
perguntas[9][4] = '175%';
perguntas[9][5] = '350%';



perguntas[10][0] = '11. Uma classe possui 7 moças e 5 rapazes. Serão sorteados 2 rapazes e 2 moças dentre os alunos da sala para participar das gravações de um programa de televisão. O número de resultados possíveis para esse sorteio é igual a';
perguntas[10][1] = '31';
perguntas[10][2] = '210';
perguntas[10][3] = '360';
perguntas[10][4] = '495';
perguntas[10][5] = '840';


perguntas[11][0] = '12. O gráfico da função <B>f(x) = 2 + a . cos(bx)</B> é&nbsp; dado a seguir. Então, pode-se concluir que <IMG src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/figmat12.JPG">';
perguntas[11][1] = 'a = <SUB><IMG height=36 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image021.gif" width=15 v:shapes="_x0000_i1043"></SUB>&nbsp;&nbsp;e &nbsp;&nbsp;b = <SUB><IMG height=36 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image023.gif" width=15 v:shapes="_x0000_i1044"></SUB>';
perguntas[11][2] = '&nbsp;a = <SUB><IMG height=36 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image025.gif" width=15 v:shapes="_x0000_i1045"></SUB>&nbsp;&nbsp;e &nbsp;&nbsp;b = 4';
perguntas[11][3] = 'a =&nbsp; <SUB><IMG height=36 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image027.gif" width=15 v:shapes="_x0000_i1046"></SUB>&nbsp;&nbsp;e&nbsp; b = - 4';
perguntas[11][4] = 'a = 2&nbsp; &nbsp;e &nbsp;&nbsp;b = <SUB><IMG height=36 src="http://www1.uol.com.br/vestibuol/simulado/images/stockler/image029.gif" width=15 v:shapes="_x0000_i1047"></SUB>';
perguntas[11][5] = 'a = 2&nbsp; &nbsp;e &nbsp;&nbsp;b = 4';



function criaAlt(pergunta) {
 alternativa = new Array(pergunta);
 for (var i = 0; i < 12; i++)
 { n = i;
   alternativa[n] = "0"; }
}

function escrevecookie(){
var texto = "";
for (var a = 0; a < 12; a++) {
 texto += alternativa[a];
}
texto += "x"
document.cookie = "quizfi=" + escape(texto);
}


function confere() {
 var ok = 0;
 for (var a = 0; a < 12; a++) {
   if (alternativa[a] == 0) {
   ok += 1;
  }
 }
 if (ok == 0) { escrevecookie();}
 else {
   if (ok == 1) alert('Você não respondeu uma pergunta')
   else alert('Você não respondeu ' + ok + ' perguntas')
   }
}

function lecookie() {
 if (document.cookie.length > 0) {
 pos = document.cookie.indexOf("quizfi=");
 if (pos != -1) {
  pos += 7;
  fim = document.cookie.indexOf("x",pos);
  if (fim == -1) fim = document.cookie.lenght;
  return unescape(document.cookie.substring(pos,fim))
  }
 }
}

 criaAlt(12);