RGIFT (version 0.1-7)

GIFTMW: Missing Word Question in GIFT format

Description

This function prints a Missing Word Question in GIFT format.

Usage

GIFTMW(qtxt1, qtxt2, anstxt, rightans)

Value

No value is returned but some text in printed.

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.

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