Conversion of CSV to GIFT for Questions Import in Moodle (tested on 2.8+)
version 0.01, © & developed by Arvind M Mittal, 2015-05-05

Currently for MCQs

File in CSV Format (encoded in UTF-8 without BOM) with following information:

Columns Headings in default Sequence:
RefNum,Question,OptA,OptB,OptC,OptD,Answer,Category,SubCategory1,SubCategory2,Source
(you may specify different sequence by putting the exact headings in first row (line))
Column Headings and their purpose.
				
RefNum   	: Question Name or can be Question Reference link between CSV File and Moodle Database.
Question 	: Question text
OptA     	: Option 1 text
OptB     	: Option 2 text
OptC     	: Option 3 text
OptD     	: Option 4 text
Answer   	: Correct Option any one from a / b / c / d      it can be eg.    b
Category 	: Category (top category) 
SubCategory1	: SubCategory1 or Subject
SubCategory2	: SubCategory2 or Topic
Source   	: Question Reference Source (not imported)

Any missing value or column might not be validated! Hence import carefully at your own understanding and risk.

Suggested Question Nos. to convert in one go are 1000 or filesize upto 1MB

File upload:
Default System is Top Catagory: Yes

Disclaimer:
The script provided here is not supported under any support program or service.
User of this script agrees that all/any script/s will run at user's own risk and while every script has been written with the intention of helping in certain task and minimising (to nil) the potential for unintended consequences, the owner/s, hosting provider/s and contributer/s cannot be held responsible for any misuse or script problems.
The software and service is provided by the copyright holder/s and contributor/s "as is" and any express or implied warranties, including, but not limited to, the implied warranties of merchantability and fitness for a particular purpose are disclaimed. In no event shall the copyright owner or contributor/s be liable for any direct, indirect, incidental, special, exemplary, or consequential damages (including, but not limited to, procurement of substitute goods or services; loss of use, data, or profits; or business interruption) however caused and on any theory of liability, whether in contract, strict liability, or tort (including negligence or otherwise) arising in any way out of the use of this software or service, even if advised of the possibility of such damage.