create_mc: Create a Multiple Choice Quiz

Description Usage Arguments Value Examples

View source: R/Create_questions.R

Description

Create a Multiple Choice Quiz

Usage

1
create_mc(ans, qus = length(ans), 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

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_mc(4,10)
create_mc(c(2,2,3,3))
create_mc(4,5,1:5,2)

DanNashSoton/GuessR documentation built on May 29, 2018, 10:10 a.m.