Diferencia entre revisiones de «qformat/csv»

De MoodleDocs
(tidy up)
({{Urgente de traducir}})
(No se muestran 13 ediciones intermedias del mismo usuario)
Línea 1: Línea 1:
{{EnTraduccion}}
{{Infobox plugin
{{Infobox plugin
|type = Question format, CSV format  
|type = Question format, CSV format  
Línea 8: Línea 7:
|float = right
|float = right
}}
}}
The CSV format is a very simple way of creating multiple choice questions using a '''[[CSV]]''' (Comma separated value) file. The first line of CSV file must contain the headers separated with commas.
El formato CSV es una forma muy sencilla de crear múltiples preguntas de opción múltiple usando un archivo '''[[CSV]]''' (''Comma Separated Value''). La primera línea del archivo CSV debe contener los encabezados separados por comas.<br />
Following all the other (except Header) rows/lines contain details about the one question ie question text, four option, and answer. Each line will contain the details about the one question.
{{Urgente de traducir}}
'''Ahora bien, pueden existir dos tipos de archivos CSV que pueden ser usados : ( CSV Simple CSV y CSV Extendido ).<br />
La única diferencia entre los archivos CSV Simple y CSV Extendido es el número de campos/columnas''' <br />
<big>'''1. CSV Simple:'''</big><br />
Este archivo tendrá los mismos campos que solíamos tener (la única adición es el nombre de la pregunta en el campo) Todas las demás (excepto Header) filas/líneas contienen detalles acerca de la una pregunta, como por ejemplo nombre de la pregunta, texto de la pregunta, cuatro opciones y respuesta1, respuesta2.
* Cada línea contiene los detalles acerca de la una pregunta
* El archivo CSV simple usado para importación debería tener la estructura siguiente : -
Un archivo CSV Simple con todas las preguntas en un formato de valor separado por comas con una extensión .csv
# La primera línea contiene los encabezados separados por comas como por ejemplo questionname,questiontext,A,B,C,D,Answer 1,Answer 2
# La siguiente línea contiene los detalles de las preguntas; cada línea contiene el nombre de una pregunta, texto de la pregunta, cuatro opciones, y una o dos respuestas que otra vez están separadas todas por comas.
# Cada línea contiene todos  los detalles respecto de la una pregunta como por ejemplo nombre de la pregunta, texto de la pregunta, opciones y  respuestas
# Usted también puede descargar el archivo CSV de muestra (sample.csv) para su referencia


IMPORTANT NOTES:
<code>
questionname,questiontext,A,B,C,D,Answer 1,Answer 2
question1,Which command is used to print a file,print,ptr,lpr,none of the mentioned,C,
question2,The command “mknod myfifo b 4 16”,Will create a block device if user is root,Will create a block device for all users,Will create a FIFO if user is not root,"None ,of the mentioned",A,B
question3,"3, 4, 7, 8, 11, 12, ... What number should come next?",7,10,14,15,D,
</code>
 
You can also see that the 'Answer 2' is optional as the first and third questions have only '''one answer''', whereas the second question has '''two answers'''.


* You have to save the file in a csv format. Don't save it as an Excel document or anything like that.
<big>'''2. Extended CSV :'''</big><br />
* Non-ASCII characters like 'quotes' can cause import errors. To avoid this always save your text file in [[UTF-8]] format (most text editors, even libre office, will ask you).
This CSV file will have extra fields like answernumbering, correctfeedback, partiallycorrectfeedback, incorrectfeedback and defaultmark.<br />
* The Header must be as it is shown in the example everything is case sensitive as shown below otherwise, the import will fail.
All the other (except Header) rows/lines contain details about the one question ie. question name, question text, four option, answer1, answer2, answernumbering, correctfeedback, partiallycorrectfeedback, incorrectfeedback and defaultmark. file with many other options<br />
* '''"Answer 2"''' is optional, as of now there can be maximum of two right answers of a question.
The CSV file used for import should have the following structure : -
* If you want have comm(,) between the text may be in '''question text''' or in '''options text''' then you must include that text between the double quotes(") like below in the 3rd question where entire question is included between the double quotes like this '''"3, 4, 7, 8, 11, 12, ... What number should come next?"'''
*A CSV file with all questions in comma separated value form with a .csv extension.
*The first line contains the headers separated with commas for example questionname,questiontext,A,B,C,D,Answer 1,Answer 2,answernumbering,correctfeedback,partiallycorrectfeedback,incorrectfeedback,defaultmark
*Next lines contain the details of the question, each of line contain one question name, question text, four option, answer1, answer2, answernumbering, correctfeedback, partiallycorrectfeedback, incorrectfeedback and defaultmark, again all separated by commas.
*Each line contains all the details regarding the one question ie. question name, question text, four option, answer1, answer2, answernumbering, correctfeedback, partiallycorrectfeedback, incorrectfeedback and defaultmark.
*You can also download the Extended Sample CSV(extended_sample.csv) file for your reference.
 
<code>
questionname,questiontext,A,B,C,D,Answer 1,Answer 2,answernumbering,correctfeedback,partiallycorrectfeedback,incorrectfeedback, defaultmark
Question1,The dmesg command,Shows user login logoff attempts,Shows the syslog file for info messages,kernel log messages,Shows the daemon log messages,C,,123,Your answer is correct.,Your answer is partially correct.,Your answer is incorrect.,1
Question2,The command “mknod myfifo b 4 16”,Will create a block device if user is root,Will create a block device for all users,Will create a FIFO if user is not root,"None ,of the mentioned",A,B,ABCD,Your answer is correct.,Your answer is partially correct.,Your answer is incorrect.,1
Question3,Which command is used to set terminal IO characteristic?,tty,ctty,ptty,stty,D,,iii,Your answer is correct.,Your answer is partially correct.,Your answer is incorrect.,1
</code>
 
 
NOTAS IMPORTANTES:
 
* Usted tiene que guardar el archivo en un formato [[CSV]]. No intente guardarlo como documento de Excel o algo parecido .
* Los caracteres no alfabéticos [[ASCII]] como las 'comas' pueden causar errores de importación. Para evitarlos, siempre guarde sus textos con la codificación [[UTF-8]] (la mayoría de los editores de texto, incluyendo [https://www.libreoffice.org/ Libre Office], le preguntarán al respecto).
* El encabezado debe ser tal y como se muestra en el ejemplo inferior. Todo es sensible a MAYÚSCULAS/minúsculas tal como se muestra debajo; en caso contrario fallará la importación.
* '''"Answer 2"''' es opcional, al día de hoy puede haber un máximo de dos respuestas correctas para una pregunta.
* Si Usted quiere tener algún caracter de coma (,) adentro del '''texto de la pregunta''' o en el '''texto de las opciones''',  entonces Usted debe rodear el texto entre comillas dobles (") como en el ejemplo inferior para la tercera pregunta, en donde toda la pregunta está incluida dentro de comillas dobles como a continuación '''"3, 4, 7, 8, 11, 12, ... ¿Cual es el número siguiente?"'''


<code>
<code>
questiontext,A,B,C,D,Answer 1,Answer 2
questiontext,A,B,C,D,Answer 1,Answer 2
Which command is used to print a file,print,ptr,lpr,none of the mentioned,C,
Cual es el comando usado para imprimir un archivo,print,ptr,lpr,ninguno de los mencionados,C,
The command “mknod myfifo b 4 16”,Will create a block device if user is root,Will create a block device for all users,Will create a FIFO if user is not root,"None ,of the mentioned",A,B
El comando “mknod myfifo b 4 16”,Creará un dispositivo de bloque (block device) si el usuario es root,Creará un dispositivo de bloque para todos los usuarios,Creará un FIFO (Firts In First Out) si el usuario no es root,"Ninguno ,de los mencionados",A,B
"3, 4, 7, 8, 11, 12, ... What number should come next?",7,10,14,15,D
"3, 4, 7, 8, 11, 12, ... ¿Cual número sigue?",7,10,14,15,D,
</code>
</code>


You can also see the 'Answer 2' is optional as 1st and the 3rd question has only '''one answer''' whereas 2nd question has '''two answers'''.
 
<big>Exportación:</big> <br />
* Usted también puede exportar preguntas que están adentro del [[Banco de preguntas]] a un archivo CSV.
* Solamente pueden exportarse a archivo CSV preguntas de opción múltiple que tengan una o dos respuestas.
* El archivo CSV exportado será CSV Extendido con todos los 13 campos/columnas.
* Asegúrese de desactivar las casillas de "Escribir categoría al archivo" y "Escribir contecto al archivo".
[[File:exportquestions.png|400px]]
 


==Vea también==
==Vea también==

Revisión del 12:31 24 feb 2019

El formato CSV es una forma muy sencilla de crear múltiples preguntas de opción múltiple usando un archivo CSV (Comma Separated Value). La primera línea del archivo CSV debe contener los encabezados separados por comas.

Nota: Urgente de Traducir. ¡ Anímese a traducir esta muy importante página !.     ( y otras páginas muy importantes que urge traducir)

Ahora bien, pueden existir dos tipos de archivos CSV que pueden ser usados : ( CSV Simple CSV y CSV Extendido ).
La única diferencia entre los archivos CSV Simple y CSV Extendido es el número de campos/columnas
1. CSV Simple:
Este archivo tendrá los mismos campos que solíamos tener (la única adición es el nombre de la pregunta en el campo) Todas las demás (excepto Header) filas/líneas contienen detalles acerca de la una pregunta, como por ejemplo nombre de la pregunta, texto de la pregunta, cuatro opciones y respuesta1, respuesta2.

  • Cada línea contiene los detalles acerca de la una pregunta
  • El archivo CSV simple usado para importación debería tener la estructura siguiente : -

Un archivo CSV Simple con todas las preguntas en un formato de valor separado por comas con una extensión .csv

  1. La primera línea contiene los encabezados separados por comas como por ejemplo questionname,questiontext,A,B,C,D,Answer 1,Answer 2
  2. La siguiente línea contiene los detalles de las preguntas; cada línea contiene el nombre de una pregunta, texto de la pregunta, cuatro opciones, y una o dos respuestas que otra vez están separadas todas por comas.
  3. Cada línea contiene todos los detalles respecto de la una pregunta como por ejemplo nombre de la pregunta, texto de la pregunta, opciones y respuestas
  4. Usted también puede descargar el archivo CSV de muestra (sample.csv) para su referencia

questionname,questiontext,A,B,C,D,Answer 1,Answer 2 question1,Which command is used to print a file,print,ptr,lpr,none of the mentioned,C, question2,The command “mknod myfifo b 4 16”,Will create a block device if user is root,Will create a block device for all users,Will create a FIFO if user is not root,"None ,of the mentioned",A,B question3,"3, 4, 7, 8, 11, 12, ... What number should come next?",7,10,14,15,D,

You can also see that the 'Answer 2' is optional as the first and third questions have only one answer, whereas the second question has two answers.

2. Extended CSV :
This CSV file will have extra fields like answernumbering, correctfeedback, partiallycorrectfeedback, incorrectfeedback and defaultmark.
All the other (except Header) rows/lines contain details about the one question ie. question name, question text, four option, answer1, answer2, answernumbering, correctfeedback, partiallycorrectfeedback, incorrectfeedback and defaultmark. file with many other options
The CSV file used for import should have the following structure : -

  • A CSV file with all questions in comma separated value form with a .csv extension.
  • The first line contains the headers separated with commas for example questionname,questiontext,A,B,C,D,Answer 1,Answer 2,answernumbering,correctfeedback,partiallycorrectfeedback,incorrectfeedback,defaultmark
  • Next lines contain the details of the question, each of line contain one question name, question text, four option, answer1, answer2, answernumbering, correctfeedback, partiallycorrectfeedback, incorrectfeedback and defaultmark, again all separated by commas.
  • Each line contains all the details regarding the one question ie. question name, question text, four option, answer1, answer2, answernumbering, correctfeedback, partiallycorrectfeedback, incorrectfeedback and defaultmark.
  • You can also download the Extended Sample CSV(extended_sample.csv) file for your reference.

questionname,questiontext,A,B,C,D,Answer 1,Answer 2,answernumbering,correctfeedback,partiallycorrectfeedback,incorrectfeedback, defaultmark Question1,The dmesg command,Shows user login logoff attempts,Shows the syslog file for info messages,kernel log messages,Shows the daemon log messages,C,,123,Your answer is correct.,Your answer is partially correct.,Your answer is incorrect.,1 Question2,The command “mknod myfifo b 4 16”,Will create a block device if user is root,Will create a block device for all users,Will create a FIFO if user is not root,"None ,of the mentioned",A,B,ABCD,Your answer is correct.,Your answer is partially correct.,Your answer is incorrect.,1 Question3,Which command is used to set terminal IO characteristic?,tty,ctty,ptty,stty,D,,iii,Your answer is correct.,Your answer is partially correct.,Your answer is incorrect.,1


NOTAS IMPORTANTES:

  • Usted tiene que guardar el archivo en un formato CSV. No intente guardarlo como documento de Excel o algo parecido .
  • Los caracteres no alfabéticos ASCII como las 'comas' pueden causar errores de importación. Para evitarlos, siempre guarde sus textos con la codificación UTF-8 (la mayoría de los editores de texto, incluyendo Libre Office, le preguntarán al respecto).
  • El encabezado debe ser tal y como se muestra en el ejemplo inferior. Todo es sensible a MAYÚSCULAS/minúsculas tal como se muestra debajo; en caso contrario fallará la importación.
  • "Answer 2" es opcional, al día de hoy puede haber un máximo de dos respuestas correctas para una pregunta.
  • Si Usted quiere tener algún caracter de coma (,) adentro del texto de la pregunta o en el texto de las opciones, entonces Usted debe rodear el texto entre comillas dobles (") como en el ejemplo inferior para la tercera pregunta, en donde toda la pregunta está incluida dentro de comillas dobles como a continuación "3, 4, 7, 8, 11, 12, ... ¿Cual es el número siguiente?"

questiontext,A,B,C,D,Answer 1,Answer 2 Cual es el comando usado para imprimir un archivo,print,ptr,lpr,ninguno de los mencionados,C, El comando “mknod myfifo b 4 16”,Creará un dispositivo de bloque (block device) si el usuario es root,Creará un dispositivo de bloque para todos los usuarios,Creará un FIFO (Firts In First Out) si el usuario no es root,"Ninguno ,de los mencionados",A,B "3, 4, 7, 8, 11, 12, ... ¿Cual número sigue?",7,10,14,15,D,


Exportación:

  • Usted también puede exportar preguntas que están adentro del Banco de preguntas a un archivo CSV.
  • Solamente pueden exportarse a archivo CSV preguntas de opción múltiple que tengan una o dos respuestas.
  • El archivo CSV exportado será CSV Extendido con todos los 13 campos/columnas.
  • Asegúrese de desactivar las casillas de "Escribir categoría al archivo" y "Escribir contecto al archivo".

exportquestions.png


Vea también

Importar preguntas