create_maq: Create a Multiple Choice Quiz with Multiple Answers Required

Description Usage Arguments Value Examples

Description

Create a Multiple Choice Quiz with Multiple Answers Required

Usage

1
2
create_maq(ans, qus, cor = rep(1, qus), wts = rep(1, qus), ats = rep(1,
  qus))

Arguments

ans

The number of answers for each question, can be a single integer, or a vector providing the number of answers for multiple questions

qus

The number of questions in the quiz, not neccesary if a vector is provided for ans

cor

The number of answers that must be given, for questions where, for example, 2 of 4 answers are correct.

wts

The weighting score for each question, can be provided as a single integer, or a vector with number of elements equal to qus

ats

The number of attempts the test taker is allowed to answer the question, can be provided as a single integer, or a vector with number of elements equal to qus

Value

A test object

Examples

1
2
3
create_maq(4,10,2)
create_maq(c(4,4,5,5),3)
create_maq(4,5,1:5,3,2)

DanNashSoton/GuessR documentation built on May 28, 2019, 1:34 a.m.