Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add questions #39

Merged
merged 5 commits into from
Oct 17, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 37 additions & 1 deletion server/database/quizzes/css.json
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@
"answer_a": "Verdadero",
"answer_b": "Falso"
},
"correct_answer": ""
"correct_answer": "answer_a"
},
{
"id": "53",
Expand Down Expand Up @@ -419,5 +419,41 @@
"answer_d": "font-size: 20px"
},
"correct_answer": "answer_a"
},
{
"id": "353",
"category": "css",
"level": "facil",
"question": "¿Cómo posicionamos un elemento dentro de otro de forma precisa?",
"answers": {
"answer_a": "Padre - position:relative / Hijo - position:absolute",
"answer_b": "Padre - position:absolute / Hijo - position:relative",
"answer_c": "Padre - position:fixed / Hijo - position:absolute"
},
"correct_answer": "answer_a"
},
{
"id": "354",
"category": "css",
"level": "normal",
"question": "¿Con que pseudo selector se puede seleccionar el primer hijo, sin tener class name o id?",
"answers": {
"answer_a": "nth-child(0)",
"answer_b": "nth-child(1)",
"answer_c": "nth-first-child"
},
"correct_answer": "answer_b"
},
{
"id": "355",
"category": "css",
"level": "dificil",
"question": "¿Qué selector utilizarias para seleccionar un elemento que en el atributo título contenga la palabra \"container\"?",
"answers": {
"answer_a": "[title~=container]",
"answer_b": "[title^=container]",
"answer_c": "[title$=container]"
},
"correct_answer": "answer_a"
}
]
36 changes: 36 additions & 0 deletions server/database/quizzes/javascript.json
Original file line number Diff line number Diff line change
Expand Up @@ -418,5 +418,41 @@
"answer_d": ".replace()"
},
"correct_answer": "answer_d"
},
{
"id": "356",
"category": "javascript",
"level": "dificil",
"question": "¿Qué función tiene el event loop?",
"answers": {
"answer_a": "Es responsable de compilar el código, recopilar y procesar eventos y ejecutar subtareas en cola",
"answer_b": "Es responsable de revisar el código, recopilar y procesar eventos y ejecutar tareas en cola",
"answer_c": "Es responsable de ejecutar el código, recopilar y procesar eventos y ejecutar subtareas en cola"
},
"correct_answer": "answer_c"
},
{
"id": "357",
"category": "javascript",
"level": "dificil",
"question": "¿Cuál es la definición de Clousure?",
"answers": {
"answer_a": "Es la combinación de una función agrupada (encerrada) con referencias a su estado circundante (el entorno dislexico)",
"answer_b": "Es la combinación de una función desagrupada (encerrada) con referencias a su estado circundante (el entorno léxico)",
"answer_c": "Es la combinación de una función agrupada (encerrada) con referencias a su estado circundante (el entorno léxico)"
},
"correct_answer": "answer_c"
},
{
"id": "358",
"category": "javascript",
"level": "facil",
"question": "¿Qué método de la API del navegador se utiliza para hacer una petición HTTP de forma nativa?",
"answers": {
"answer_a": "fetch(\"https://some-url-here.com\")",
"answer_b": "axios.get(\"https://some-url-here.com\")",
"answer_c": "makeRequest(\"https://some-url-here.com\")"
},
"correct_answer": "answer_a"
}
]
36 changes: 36 additions & 0 deletions server/database/quizzes/php.json
Original file line number Diff line number Diff line change
Expand Up @@ -250,5 +250,41 @@
"answer_c": "split(\",\", $array)"
},
"correct_answer": "answer_a"
},
{
"id": "347",
"category": "php",
"level": "facil",
"question": "¿Qué función utilizarias para imprimir por consola?",
"answers": {
"answer_a": "echo('Hello World')",
"answer_b": "console.log('Hello World')",
"answer_c": "System.out.println('Hello World')"
},
"correct_answer": "answer_a"
},
{
"id": "348",
"category": "php",
"level": "normal",
"question": "¿Cómo obtener el tipo de objecto en PHP?",
"answers": {
"answer_a": "typeof $object",
"answer_b": "get_class($object)",
"answer_c": "$object instanceof"
},
"correct_answer": "answer_b"
},
{
"id": "349",
"category": "php",
"level": "dificil",
"question": "¿Qué función utilizarías de PHP para trabajar con expresiones regulares?",
"answers": {
"answer_a": "reg_match()",
"answer_b": "regexp()",
"answer_c": "preg_match()"
},
"correct_answer": "answer_c"
}
]
36 changes: 36 additions & 0 deletions server/database/quizzes/sql.json
Original file line number Diff line number Diff line change
Expand Up @@ -359,5 +359,41 @@
"answer_d": "DBMS"
},
"correct_answer": "answer_a"
},
{
"id": "350",
"category": "sql",
"level": "normal",
"question": "¿Qué palabra clave de SQL se utiliza para agrupar un conjunto de resultados?",
"answers": {
"answer_a": "GROUP WITH",
"answer_b": "GROUP BY",
"answer_c": "GROUPING BY"
},
"correct_answer": "answer_b"
},
{
"id": "351",
"category": "sql",
"level": "dificil",
"question": "¿Cuales de los siguientes tipos de PROCEDURES es correcto?",
"answers": {
"answer_a": "Procedure with CALL parameter",
"answer_b": "Procedure with IN-OUT parameter",
"answer_c": "Procedure with ERASE parameter"
},
"correct_answer": "answer_b"
},
{
"id": "352",
"category": "sql",
"level": "normal",
"question": "¿Qué es cierto sobre las TRANSACTIONS?",
"answers": {
"answer_a": "Si falla, tira una excepción de tipo SQLTransactionException",
"answer_b": "Cuando finaliza correctamente registra un log en la tabla mysql_logs",
"answer_c": "Si falla, hace un ROLLBACK de los cambios"
},
"correct_answer": "answer_c"
}
]