$(document).ready(function() { const questions = [ { question: "Werk uit en schrijf de uitkomst als een product van factoren.", correct: "c", answers: { a: "(a+4)²", b: "5 + 4a + a²", c: "(a+2)²", d: "4 + 4a + a²", }, }, { question: "Los volgende ongelijkheid op", correct: "d", answers: { a: "x∈[-32,+∞[", b: "x∈[-152,+∞[", c: "x∈]-∞,-152]", d: "x∈]-∞,-32]", }, }, { question: "Los het volgende stelsel op", correct: "b", answers: { a: "Opl V= {(3,13)}", b: "Opl V= {(-3,13);(3,13)}", c: "Opl V= {(√(3);,7)}", d: "Opl V= {(-√(3),7);(√(3),7)}", }, }, { question: "Los volgende vergelijking op", correct: "a", answers: { a: "Opl V={-½,½}", b: "Opl V= {-1,¼}", c: "Opl V={½}", d: "Opl V={¼}", }, }, { question: "Welke rechte heeft een vergelijking van y = mx+q waarbij zowel m en q strikt negatief zijn?", correct: "d", answers: { a: "Rechte a", b: "Rechte b", c: "Rechte c", d: "Rechte d", }, }, { question: "", correct: "c", answers: { a: "4", b: "4√(4)", c: "8", d: "8√(2)", }, }, { question: "", correct: "a", answers: { a: "-10", b: "-4", c: "-2", d: "2", }, }, { question: "", correct: "d", answers: { a: "a+b", b: "b-aab", c: "1a + 1b", d: "aba+b", }, }, ]; var quiz = ""; var index = 1; questions.forEach(function(question) { var vraag = "\n \n \n

\n Vraag " + index + ": " + question.question + " \n \n

\n
\n \n
\n
\n
\n "; quiz = quiz + vraag; index++; }); $('#quiz').html(quiz); $("#results").click(function() { var index = 1; var wrongQuestions = []; var rightQuestions = []; questions.forEach(function(question) { var chosenAnswer = $("input[@name=q" + index + "]:checked").val(); if (chosenAnswer === question.correct) { rightQuestions.push(question); } else { wrongQuestions.push(question); } index++; }); var resultscore = rightQuestions.length + " / " + questions.length; $('.resultscore').html(resultscore); let resulttekst = ""; if (rightQuestions.length >= 0 && rightQuestions.length <= 3) { resulttekst = "U voorkennis voor wiskunde is relatief zwak. Wilt u toch starten met de opleiding raden we aan om zowel de klaarstoomcursus zelfstandig door te nemen in de zomervakentie als u in te schrijven voor de instapcursus wiskunde die plaatsvindt in september.

D.m.v. onderstaande QR-link te scannen of op te klikken kan u de antwoordsleutel downloaden.


"; } if (rightQuestions.length > 3 && rightQuestions.length <= 5) { resulttekst = " We raden aan om uw voorkennis wiskunde nog een beetje bij te sturen voor u start met de lerarenopleiding wiskunde. Dit kan via de klaarstoomcurus die u zelfstandig kan doornemen tijdens de zomervakantie, ofwel kan u zich inschrijven voor de instapcursus die plaatsvindt in september.

Via onderstaande QR-link kan u de antwoordsleutel downloaden.


"; } if (rightQuestions.length > 5) { resulttekst = "Proficiat, u voorkennis voor wiskunde is uitstekend. Wilt u toch nog uw wiskunde een beetje opfrissen kan u steeds de klaarstoomcursus zelfstandig doornemen ofwel u inschrijven voor de instapcursus in september.

Via onderstaande QR-link kan u de antwoordsleutel downloaden.


"; } $('.resulttekst').html(resulttekst); }); });