RGIFT (version 0.1-5)

GIFTMW: Missing Word Question in GIFT format

Description

This function prints a Missing Word Question in GIFT format.

Usage

GIFTMW(qtxt1, qtxt2, anstxt, rightans)

Arguments

qtxt1
First part of the text of the question.
qtxt2
Second part of the text of the question.
anstxt
Vector of short answers.
rightans
Position of the right answer in anstxt.

Value

No value is returned but some text in printed.

Details

These functions use the cat() function to print a Missing Word Question in the GIFT format. In this question, the user is asked to select a missing word which should go between 'qtxt1' and 'qtxt2'. Use of the sink() function is adviced to send the ouput to a text file.

Examples

Run this code
#Question 1
GIFTMW("With the command ", " we can compute the mean of a vector of values",
   c("mean()", "sd()", "var()"), rightans=1)

Run the code above in your browser using DataLab