Package upperbound.learningtools.funes

Examples of upperbound.learningtools.funes.MultipleChoiceQuestion


   
    correctAnswersExplanation = "If I have a box with one apple, and then I put another apple...";
  }

  public void testCreation() {
    MultipleChoiceQuestion multipleChoiceQuestion = new MultipleChoiceQuestion(
        topic,
        question,
        answerOptions,
        correctAnswers, correctAnswersExplanation
    );
   
    assertEquals(multipleChoiceQuestion.getTopic(), topic);
    assertEquals(multipleChoiceQuestion.getQuestion(), question);
    assertEquals(multipleChoiceQuestion.getAnswerOptions(), answerOptions);
    assertEquals(multipleChoiceQuestion.getCorrectAnswers(), correctAnswers);
    assertEquals(multipleChoiceQuestion.getExplanation(), correctAnswersExplanation);
  }
View Full Code Here


    List answerOptions = new ArrayList();
    answerOptions.add(answerOption1);
    answerOptions.add(answerOption2);

    return new MultipleChoiceQuestion(topic, question, answerOptions,
        Collections.singleton(correctAnswer), "");
  }
View Full Code Here

    Element questionElement = (Element) multipleChoiceQuestionNodes.item(questionIndex);
    List<String> answerOptions = new ArrayList<String>();
    Set<String> correctAnswers = new HashSet<String>();
    collectAnswerOptions(questionElement, answerOptions, correctAnswers);

    MultipleChoiceQuestion multipleChoiceQuestion = new MultipleChoiceQuestion(
        topicFor(questionElement), questionTextFor(questionElement), answerOptions, correctAnswers,
        explanationFor(questionElement));

    return multipleChoiceQuestion;
  }
View Full Code Here

TOP

Related Classes of upperbound.learningtools.funes.MultipleChoiceQuestion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.