powered by
Functions to add comments, category and names to questions in GIFT format.
GIFTcomment(txt) GIFTcategory(catname) GIFTQName(qname)
No value is returned but some text in printed.
Text for the comment.
Category name.
Question name.
Virgilio Gómez-Rubio <virgilio.gomez@uclm.es>
These functions use the cat() function to format the comment, category or question name in GIFT format and print them. Use of the sink() function is adviced to send the ouput to a text file.
cat()
sink()
https://docs.moodle.org/21/en/GIFT_format
GIFTcomment("Some examples") GIFTcategory("Example") GIFTQName("Question Name")
Run the code above in your browser using DataLab