diff --git a/curriculum/challenges/chinese-traditional/08-data-analysis-with-python/data-analysis-with-python-course/data-analysis-example-a.md b/curriculum/challenges/chinese-traditional/08-data-analysis-with-python/data-analysis-with-python-course/data-analysis-example-a.md index d70029accf..7b9547bbbd 100644 --- a/curriculum/challenges/chinese-traditional/08-data-analysis-with-python/data-analysis-with-python-course/data-analysis-example-a.md +++ b/curriculum/challenges/chinese-traditional/08-data-analysis-with-python/data-analysis-with-python-course/data-analysis-example-a.md @@ -19,7 +19,7 @@ dashedName: data-analysis-example-a - Notebooks on GitHub - 如何使用 Google Colab 來打開 GitHub 上的 Notebooks -# 問題 +# --questions-- ## --text-- diff --git a/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-how-to-discuss-popular-trends-in-technology/661ec6f5966e9027ab9756dc.md b/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-how-to-discuss-popular-trends-in-technology/661ec6f5966e9027ab9756dc.md index e95dd60aaf..ad1d25f9de 100644 --- a/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-how-to-discuss-popular-trends-in-technology/661ec6f5966e9027ab9756dc.md +++ b/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-how-to-discuss-popular-trends-in-technology/661ec6f5966e9027ab9756dc.md @@ -11,7 +11,7 @@ dashedName: task-85 `Typing patterns` refers to the unique way you type on a keyboard or device. It includes the speed, rhythm, and specific patterns you use when pressing keys. Each person has their own distinct way of typing. -# 問題 +# --questions-- ## --text-- diff --git a/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-how-to-help-a-coworker-troubleshoot-on-github/656bbeb152c95913465476e3.md b/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-how-to-help-a-coworker-troubleshoot-on-github/656bbeb152c95913465476e3.md index b54fd033c9..1a28b78db7 100644 --- a/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-how-to-help-a-coworker-troubleshoot-on-github/656bbeb152c95913465476e3.md +++ b/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-how-to-help-a-coworker-troubleshoot-on-github/656bbeb152c95913465476e3.md @@ -13,7 +13,7 @@ It's like turning a recipe written in one language into another language so that For example, `When we compile Java code, it changes into a form that the computer can run.` -# 問題 +# --questions-- ## --text-- diff --git a/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/65fff2b49779301d9bdab6fa.md b/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/65fff2b49779301d9bdab6fa.md index 7e39c1229f..cde6e80532 100644 --- a/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/65fff2b49779301d9bdab6fa.md +++ b/curriculum/challenges/chinese-traditional/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/65fff2b49779301d9bdab6fa.md @@ -11,7 +11,7 @@ dashedName: task-12 聽音頻,回答問題。 -# 問題 +# --questions-- ## --text-- diff --git a/curriculum/challenges/chinese-traditional/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md b/curriculum/challenges/chinese-traditional/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md index 2cf2d525e3..ab61e0fd5a 100644 --- a/curriculum/challenges/chinese-traditional/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md +++ b/curriculum/challenges/chinese-traditional/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md @@ -17,439 +17,439 @@ Answer all of the questions below correctly to pass the quiz. #### --text-- -Placeholder question +Which command initializes a new `package.json` file in `npm`? #### --distractors-- -Placeholder distractor 1 +`npm create` --- -Placeholder distractor 2 +`npm add` --- -Placeholder distractor 3 +`npm start` #### --answer-- -Placeholder answer +`npm init` ### --question-- #### --text-- -Placeholder question +What is the primary purpose of `npm`? #### --distractors-- -Placeholder distractor 1 +To run a web server. --- -Placeholder distractor 2 +To bundle code for production. --- -Placeholder distractor 3 +To compile JavaScript. #### --answer-- -Placeholder answer +To manage packages for Node.js. ### --question-- #### --text-- -Placeholder question +Which JavaScript engine is used by Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScriptCore. --- -Placeholder distractor 2 +SpiderMonkey. --- -Placeholder distractor 3 +Chakra. #### --answer-- -Placeholder answer +V8. ### --question-- #### --text-- -Placeholder question +In Express.js, what middleware function is used to parse incoming JSON payloads? #### --distractors-- -Placeholder distractor 1 +`app.useJSON()` --- -Placeholder distractor 2 +`app.parseJSON()` --- -Placeholder distractor 3 +`express.bodyParser()` #### --answer-- -Placeholder answer +`express.json()` ### --question-- #### --text-- -Placeholder question +What is Express.js primarily used for? #### --distractors-- -Placeholder distractor 1 +Creating mobile applications. --- -Placeholder distractor 2 +Creating desktop applications. --- -Placeholder distractor 3 +Database management. #### --answer-- -Placeholder answer +Building web applications and APIs. ### --question-- #### --text-- -Placeholder question +What is a major feature of Deno compared to Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScript syntax only. --- -Placeholder distractor 2 +Support for CommonJS modules. --- -Placeholder distractor 3 +Requires a browser to run. #### --answer-- -Placeholder answer +Built-in TypeScript support. ### --question-- #### --text-- -Placeholder question +What is Bun primarily designed for? #### --distractors-- -Placeholder distractor 1 +Compiling C++ code. --- -Placeholder distractor 2 +Compiling Java applications. --- -Placeholder distractor 3 +Managing databases. #### --answer-- -Placeholder answer +Building and running JavaScript applications efficiently. ### --question-- #### --text-- -Placeholder question +What does the Express method `app.use()` do? #### --distractors-- -Placeholder distractor 1 +Handles GET requests. --- -Placeholder distractor 2 +Starts the server. --- -Placeholder distractor 3 +Sends a response to the client. #### --answer-- -Placeholder answer +Mounts middleware functions. ### --question-- #### --text-- -Placeholder question +What is the default port for an Express application? #### --distractors-- -Placeholder distractor 1 +4000 --- -Placeholder distractor 2 +8080 --- -Placeholder distractor 3 +4001 #### --answer-- -Placeholder answer +3000 ### --question-- #### --text-- -Placeholder question +What is the purpose of the `cors` package in an Express application? #### --distractors-- -Placeholder distractor 1 +To compress response data. --- -Placeholder distractor 2 +To manage session storage. --- -Placeholder distractor 3 +To log HTTP requests. #### --answer-- -Placeholder answer +To enable Cross-Origin Resource Sharing. ### --question-- #### --text-- -Placeholder question +Which `npm` package is used to connect a Node.js application to a MySQL database? #### --distractors-- -Placeholder distractor 1 +`mongoose` --- -Placeholder distractor 2 +`sqlite` --- -Placeholder distractor 3 +`pg` #### --answer-- -Placeholder answer +`mysql` ### --question-- #### --text-- -Placeholder question +Which of the following is a popular ODM for Node.js? #### --distractors-- -Placeholder distractor 1 +Bun. --- -Placeholder distractor 2 +PostgreSQL. --- -Placeholder distractor 3 +V8. #### --answer-- -Placeholder answer +Mongoose. ### --question-- #### --text-- -Placeholder question +What is the purpose of the `dotenv` package in a Node.js application? #### --distractors-- -Placeholder distractor 1 +To manage sessions. --- -Placeholder distractor 2 +To optimize performance. --- -Placeholder distractor 3 +To compile TypeScript. #### --answer-- -Placeholder answer +To load environment variables from a `.env` file. ### --question-- #### --text-- -Placeholder question +How can you retrieve query parameters in an Express route? #### --distractors-- -Placeholder distractor 1 +`req.body` --- -Placeholder distractor 2 +`req.data` --- -Placeholder distractor 3 +`req.params` #### --answer-- -Placeholder answer +`req.query` ### --question-- #### --text-- -Placeholder question +Which command is used to run scripts defined in the `package.json` file? #### --distractors-- -Placeholder distractor 1 +`npm execute` --- -Placeholder distractor 2 +`npm run-script` --- -Placeholder distractor 3 +`npm launch` #### --answer-- -Placeholder answer +`npm run` ### --question-- #### --text-- -Placeholder question +Which JavaScript runtime is designed to be lightweight and optimized for performance? #### --distractors-- -Placeholder distractor 1 +Node.js. --- -Placeholder distractor 2 +Rhino. --- -Placeholder distractor 3 +Deno. #### --answer-- -Placeholder answer +Bun. ### --question-- #### --text-- -Placeholder question +What middleware is commonly used for handling file uploads in Express? #### --distractors-- -Placeholder distractor 1 +`express-fileupload` --- -Placeholder distractor 2 +`body-parser` --- -Placeholder distractor 3 +`compression` #### --answer-- -Placeholder answer +`multer` ### --question-- #### --text-- -Placeholder question +Which of the following methods are used to start an `express` server? #### --distractors-- -Placeholder distractor 1 +`app.use` --- -Placeholder distractor 2 +`app.render` --- -Placeholder distractor 3 +`app.path` #### --answer-- -Placeholder answer +`app.listen` ### --question-- #### --text-- -Placeholder question +What is the purpose of the `package-lock.json` file? #### --distractors-- -Placeholder distractor 1 +To manually specify package versions. --- -Placeholder distractor 2 +To lock the `npm` version used in the project. --- -Placeholder distractor 3 +To store `npm` authentication tokens. #### --answer-- -Placeholder answer +To ensure consistent installs across environments. ### --question-- #### --text-- -Placeholder question +In a Node.js application, how do you create a connection to a MySQL database using the `mysql` package? #### --distractors-- -Placeholder distractor 1 +`connection.run(sql, params, callback);` --- -Placeholder distractor 2 +`connection.execute(sql, params);` --- -Placeholder distractor 3 +`connection.perform(sql);` #### --answer-- -Placeholder answer +`connection.query(sql, params, callback);` diff --git a/curriculum/challenges/chinese/08-data-analysis-with-python/data-analysis-with-python-course/data-analysis-example-a.md b/curriculum/challenges/chinese/08-data-analysis-with-python/data-analysis-with-python-course/data-analysis-example-a.md index 301ac23a94..3e11160178 100644 --- a/curriculum/challenges/chinese/08-data-analysis-with-python/data-analysis-with-python-course/data-analysis-example-a.md +++ b/curriculum/challenges/chinese/08-data-analysis-with-python/data-analysis-with-python-course/data-analysis-example-a.md @@ -19,7 +19,7 @@ dashedName: data-analysis-example-a - Notebooks on GitHub - 如何使用 Google Colab 来打开 GitHub 上的 Notebooks -# 问题 +# --questions-- ## --text-- diff --git a/curriculum/challenges/chinese/21-a2-english-for-developers/learn-how-to-discuss-popular-trends-in-technology/661ec6f5966e9027ab9756dc.md b/curriculum/challenges/chinese/21-a2-english-for-developers/learn-how-to-discuss-popular-trends-in-technology/661ec6f5966e9027ab9756dc.md index 351bd5cd14..ad1d25f9de 100644 --- a/curriculum/challenges/chinese/21-a2-english-for-developers/learn-how-to-discuss-popular-trends-in-technology/661ec6f5966e9027ab9756dc.md +++ b/curriculum/challenges/chinese/21-a2-english-for-developers/learn-how-to-discuss-popular-trends-in-technology/661ec6f5966e9027ab9756dc.md @@ -11,7 +11,7 @@ dashedName: task-85 `Typing patterns` refers to the unique way you type on a keyboard or device. It includes the speed, rhythm, and specific patterns you use when pressing keys. Each person has their own distinct way of typing. -# 问题 +# --questions-- ## --text-- diff --git a/curriculum/challenges/chinese/21-a2-english-for-developers/learn-how-to-help-a-coworker-troubleshoot-on-github/656bbeb152c95913465476e3.md b/curriculum/challenges/chinese/21-a2-english-for-developers/learn-how-to-help-a-coworker-troubleshoot-on-github/656bbeb152c95913465476e3.md index ffbadece1d..fb2add4b90 100644 --- a/curriculum/challenges/chinese/21-a2-english-for-developers/learn-how-to-help-a-coworker-troubleshoot-on-github/656bbeb152c95913465476e3.md +++ b/curriculum/challenges/chinese/21-a2-english-for-developers/learn-how-to-help-a-coworker-troubleshoot-on-github/656bbeb152c95913465476e3.md @@ -13,7 +13,7 @@ It's like turning a recipe written in one language into another language so that For example, `When we compile Java code, it changes into a form that the computer can run.` -# 问题 +# --questions-- ## --text-- diff --git a/curriculum/challenges/chinese/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/65fff2b49779301d9bdab6fa.md b/curriculum/challenges/chinese/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/65fff2b49779301d9bdab6fa.md index 537de6085c..36afdcb254 100644 --- a/curriculum/challenges/chinese/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/65fff2b49779301d9bdab6fa.md +++ b/curriculum/challenges/chinese/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/65fff2b49779301d9bdab6fa.md @@ -11,7 +11,7 @@ dashedName: task-12 听音频,回答问题。 -# 问题 +# --questions-- ## --text-- diff --git a/curriculum/challenges/chinese/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md b/curriculum/challenges/chinese/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md index 2cf2d525e3..ab61e0fd5a 100644 --- a/curriculum/challenges/chinese/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md +++ b/curriculum/challenges/chinese/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md @@ -17,439 +17,439 @@ Answer all of the questions below correctly to pass the quiz. #### --text-- -Placeholder question +Which command initializes a new `package.json` file in `npm`? #### --distractors-- -Placeholder distractor 1 +`npm create` --- -Placeholder distractor 2 +`npm add` --- -Placeholder distractor 3 +`npm start` #### --answer-- -Placeholder answer +`npm init` ### --question-- #### --text-- -Placeholder question +What is the primary purpose of `npm`? #### --distractors-- -Placeholder distractor 1 +To run a web server. --- -Placeholder distractor 2 +To bundle code for production. --- -Placeholder distractor 3 +To compile JavaScript. #### --answer-- -Placeholder answer +To manage packages for Node.js. ### --question-- #### --text-- -Placeholder question +Which JavaScript engine is used by Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScriptCore. --- -Placeholder distractor 2 +SpiderMonkey. --- -Placeholder distractor 3 +Chakra. #### --answer-- -Placeholder answer +V8. ### --question-- #### --text-- -Placeholder question +In Express.js, what middleware function is used to parse incoming JSON payloads? #### --distractors-- -Placeholder distractor 1 +`app.useJSON()` --- -Placeholder distractor 2 +`app.parseJSON()` --- -Placeholder distractor 3 +`express.bodyParser()` #### --answer-- -Placeholder answer +`express.json()` ### --question-- #### --text-- -Placeholder question +What is Express.js primarily used for? #### --distractors-- -Placeholder distractor 1 +Creating mobile applications. --- -Placeholder distractor 2 +Creating desktop applications. --- -Placeholder distractor 3 +Database management. #### --answer-- -Placeholder answer +Building web applications and APIs. ### --question-- #### --text-- -Placeholder question +What is a major feature of Deno compared to Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScript syntax only. --- -Placeholder distractor 2 +Support for CommonJS modules. --- -Placeholder distractor 3 +Requires a browser to run. #### --answer-- -Placeholder answer +Built-in TypeScript support. ### --question-- #### --text-- -Placeholder question +What is Bun primarily designed for? #### --distractors-- -Placeholder distractor 1 +Compiling C++ code. --- -Placeholder distractor 2 +Compiling Java applications. --- -Placeholder distractor 3 +Managing databases. #### --answer-- -Placeholder answer +Building and running JavaScript applications efficiently. ### --question-- #### --text-- -Placeholder question +What does the Express method `app.use()` do? #### --distractors-- -Placeholder distractor 1 +Handles GET requests. --- -Placeholder distractor 2 +Starts the server. --- -Placeholder distractor 3 +Sends a response to the client. #### --answer-- -Placeholder answer +Mounts middleware functions. ### --question-- #### --text-- -Placeholder question +What is the default port for an Express application? #### --distractors-- -Placeholder distractor 1 +4000 --- -Placeholder distractor 2 +8080 --- -Placeholder distractor 3 +4001 #### --answer-- -Placeholder answer +3000 ### --question-- #### --text-- -Placeholder question +What is the purpose of the `cors` package in an Express application? #### --distractors-- -Placeholder distractor 1 +To compress response data. --- -Placeholder distractor 2 +To manage session storage. --- -Placeholder distractor 3 +To log HTTP requests. #### --answer-- -Placeholder answer +To enable Cross-Origin Resource Sharing. ### --question-- #### --text-- -Placeholder question +Which `npm` package is used to connect a Node.js application to a MySQL database? #### --distractors-- -Placeholder distractor 1 +`mongoose` --- -Placeholder distractor 2 +`sqlite` --- -Placeholder distractor 3 +`pg` #### --answer-- -Placeholder answer +`mysql` ### --question-- #### --text-- -Placeholder question +Which of the following is a popular ODM for Node.js? #### --distractors-- -Placeholder distractor 1 +Bun. --- -Placeholder distractor 2 +PostgreSQL. --- -Placeholder distractor 3 +V8. #### --answer-- -Placeholder answer +Mongoose. ### --question-- #### --text-- -Placeholder question +What is the purpose of the `dotenv` package in a Node.js application? #### --distractors-- -Placeholder distractor 1 +To manage sessions. --- -Placeholder distractor 2 +To optimize performance. --- -Placeholder distractor 3 +To compile TypeScript. #### --answer-- -Placeholder answer +To load environment variables from a `.env` file. ### --question-- #### --text-- -Placeholder question +How can you retrieve query parameters in an Express route? #### --distractors-- -Placeholder distractor 1 +`req.body` --- -Placeholder distractor 2 +`req.data` --- -Placeholder distractor 3 +`req.params` #### --answer-- -Placeholder answer +`req.query` ### --question-- #### --text-- -Placeholder question +Which command is used to run scripts defined in the `package.json` file? #### --distractors-- -Placeholder distractor 1 +`npm execute` --- -Placeholder distractor 2 +`npm run-script` --- -Placeholder distractor 3 +`npm launch` #### --answer-- -Placeholder answer +`npm run` ### --question-- #### --text-- -Placeholder question +Which JavaScript runtime is designed to be lightweight and optimized for performance? #### --distractors-- -Placeholder distractor 1 +Node.js. --- -Placeholder distractor 2 +Rhino. --- -Placeholder distractor 3 +Deno. #### --answer-- -Placeholder answer +Bun. ### --question-- #### --text-- -Placeholder question +What middleware is commonly used for handling file uploads in Express? #### --distractors-- -Placeholder distractor 1 +`express-fileupload` --- -Placeholder distractor 2 +`body-parser` --- -Placeholder distractor 3 +`compression` #### --answer-- -Placeholder answer +`multer` ### --question-- #### --text-- -Placeholder question +Which of the following methods are used to start an `express` server? #### --distractors-- -Placeholder distractor 1 +`app.use` --- -Placeholder distractor 2 +`app.render` --- -Placeholder distractor 3 +`app.path` #### --answer-- -Placeholder answer +`app.listen` ### --question-- #### --text-- -Placeholder question +What is the purpose of the `package-lock.json` file? #### --distractors-- -Placeholder distractor 1 +To manually specify package versions. --- -Placeholder distractor 2 +To lock the `npm` version used in the project. --- -Placeholder distractor 3 +To store `npm` authentication tokens. #### --answer-- -Placeholder answer +To ensure consistent installs across environments. ### --question-- #### --text-- -Placeholder question +In a Node.js application, how do you create a connection to a MySQL database using the `mysql` package? #### --distractors-- -Placeholder distractor 1 +`connection.run(sql, params, callback);` --- -Placeholder distractor 2 +`connection.execute(sql, params);` --- -Placeholder distractor 3 +`connection.perform(sql);` #### --answer-- -Placeholder answer +`connection.query(sql, params, callback);` diff --git a/curriculum/challenges/espanol/08-data-analysis-with-python/data-analysis-with-python-course/numpy-algebra-and-size.md b/curriculum/challenges/espanol/08-data-analysis-with-python/data-analysis-with-python-course/numpy-algebra-and-size.md index b3c767b43b..5f7eb28ecf 100644 --- a/curriculum/challenges/espanol/08-data-analysis-with-python/data-analysis-with-python-course/numpy-algebra-and-size.md +++ b/curriculum/challenges/espanol/08-data-analysis-with-python/data-analysis-with-python-course/numpy-algebra-and-size.md @@ -19,7 +19,7 @@ Más recursos: - Notebooks on GitHub - Cómo abrir Notebooks desde GitHub usando Google Colab. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/16-the-odin-project/top-learn-css-specificity/the-cascade-of-css-lesson-h.md b/curriculum/challenges/espanol/16-the-odin-project/top-learn-css-specificity/the-cascade-of-css-lesson-h.md index b5b26410a1..f0627fa449 100644 --- a/curriculum/challenges/espanol/16-the-odin-project/top-learn-css-specificity/the-cascade-of-css-lesson-h.md +++ b/curriculum/challenges/espanol/16-the-odin-project/top-learn-css-specificity/the-cascade-of-css-lesson-h.md @@ -25,7 +25,7 @@ Realmente simple, en realidad. Cualquiera que sea la regla que se definió al fi Para un elemento que tiene tanto la clase `alert` como la clase `warning`, la cascada pasaría por todos los demás factores, incluyendo la herencia (ninguna aquí) y especificidad (ninguna regla es más específica que la otra). Dado que la regla `.warning` fue la última definida, y ningún otro factor pudo determinar qué regla aplicar, es la que se aplica al elemento. -# --preguntas----preguntas-- +# --questions-- ## --text-- ¿Qué determina qué regla CSS se aplica cuando hay reglas en conflicto dirigidas al mismo elemento? diff --git a/curriculum/challenges/espanol/16-the-odin-project/top-working-with-text/working-with-text-lesson-e.md b/curriculum/challenges/espanol/16-the-odin-project/top-working-with-text/working-with-text-lesson-e.md index 477690961e..aa1ef9d5f2 100644 --- a/curriculum/challenges/espanol/16-the-odin-project/top-working-with-text/working-with-text-lesson-e.md +++ b/curriculum/challenges/espanol/16-the-odin-project/top-working-with-text/working-with-text-lesson-e.md @@ -42,7 +42,7 @@ Utiliza la indentación para hacer que el nivel de anidación sea claro y legibl Las relaciones de padre, hijo y hermanos entre elementos se volverán mucho más importantes más adelante cuando empieces a estilizar tu HTML con CSS y agregar comportamiento con JavaScript. Por ahora, sin embargo, es importante conocer la distinción entre cómo se relacionan los elementos y la terminología utilizada para describir sus relaciones. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md index ca07dfcd99..b38ed5cfa2 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/debug-c-sharp-console-applications/implement-exception-handling-in-c-sharp-console-applications.md @@ -16,7 +16,7 @@ Este desafío se completará parcialmente en la plataforma de aprendizaje de Mic Complete the Implement Exception Handling in C# Console Applications module on Microsoft Learn. Luego, responda a la siguiente pregunta. -# --preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md index 684268eac5..c107b8198d 100644 --- a/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md +++ b/curriculum/challenges/espanol/19-foundational-c-sharp-with-microsoft/work-with-variable-data-in-c-sharp-console-applications/modify-the-content-of-string-using-built-in-string-data-type-methods-in-c-sharp.md @@ -16,7 +16,7 @@ Este desafío se completará parcialmente en la plataforma de aprendizaje de Mic Complete the Modify the Content of Strings Using Built-In String Data Type Methods in C# module on Microsoft Learn. Luego, responda a la siguiente pregunta. -# --preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-conversation-starters-in-the-break-room/657b92b25858f24caf6894aa.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-conversation-starters-in-the-break-room/657b92b25858f24caf6894aa.md index 3488ca811b..c08c733497 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-conversation-starters-in-the-break-room/657b92b25858f24caf6894aa.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-conversation-starters-in-the-break-room/657b92b25858f24caf6894aa.md @@ -16,7 +16,7 @@ La expresión `only if` se utiliza para establecer una condición para que suced Por ejemplo: si tu amigo dice, `I'll go out only if it doesn't rain,` significa que saldrán pero el clima debe ser bueno - sin lluvia. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-conversation-starters-in-the-break-room/657dc568fe84e53acc962fc3.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-conversation-starters-in-the-break-room/657dc568fe84e53acc962fc3.md index 5b7070f846..2593d34679 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-conversation-starters-in-the-break-room/657dc568fe84e53acc962fc3.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-conversation-starters-in-the-break-room/657dc568fe84e53acc962fc3.md @@ -12,7 +12,7 @@ Tom: Good to know! Do they involve everyone on the team? --> Listen carefully to Tom’s question about the team meetings. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-ask-for-clarification-on-code-understanding/65f434b6c6a3ba9743d08e22.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-ask-for-clarification-on-code-understanding/65f434b6c6a3ba9743d08e22.md index b50edbf6a2..f6e052a2d2 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-ask-for-clarification-on-code-understanding/65f434b6c6a3ba9743d08e22.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-ask-for-clarification-on-code-understanding/65f434b6c6a3ba9743d08e22.md @@ -11,7 +11,7 @@ dashedName: task-6 Listen to the audio and answer the question. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-popular-trends-in-technology/661ec6f5966e9027ab9756dc.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-popular-trends-in-technology/661ec6f5966e9027ab9756dc.md index b878e60900..ad1d25f9de 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-popular-trends-in-technology/661ec6f5966e9027ab9756dc.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-popular-trends-in-technology/661ec6f5966e9027ab9756dc.md @@ -11,7 +11,7 @@ dashedName: task-85 `Typing patterns` refers to the unique way you type on a keyboard or device. It includes the speed, rhythm, and specific patterns you use when pressing keys. Each person has their own distinct way of typing. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-roles-and-responsibilies/65b22c705b53e41be902b63b.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-roles-and-responsibilies/65b22c705b53e41be902b63b.md index d748d9d3e7..bea8fb7fd0 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-roles-and-responsibilies/65b22c705b53e41be902b63b.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-roles-and-responsibilies/65b22c705b53e41be902b63b.md @@ -11,7 +11,7 @@ dashedName: task-3 The word `yet` is often used in questions and negative statements in the *Present Perfect* tense to talk about something that hasn't happened up to the present moment but is expected to happen. It's a way to ask or say if something has occurred or not until now. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-roles-and-responsibilies/65b6265db84a9d61cbc7a109.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-roles-and-responsibilies/65b6265db84a9d61cbc7a109.md index 504a6524d1..04fa056488 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-roles-and-responsibilies/65b6265db84a9d61cbc7a109.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-roles-and-responsibilies/65b6265db84a9d61cbc7a109.md @@ -11,7 +11,7 @@ dashedName: task-23 Listen to the audio and answer the question. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-roles-and-responsibilies/65d6cc2551fe584833cd6cda.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-roles-and-responsibilies/65d6cc2551fe584833cd6cda.md index 41d9b10c43..3dd9d8ccc5 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-roles-and-responsibilies/65d6cc2551fe584833cd6cda.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-roles-and-responsibilies/65d6cc2551fe584833cd6cda.md @@ -11,7 +11,7 @@ dashedName: task-52 Listen to the audio and answer the question. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-tech-trends-and-updates/663626ee2c3a803af8cc2fd6.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-tech-trends-and-updates/663626ee2c3a803af8cc2fd6.md index 8a274ecc2f..eb32436d94 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-tech-trends-and-updates/663626ee2c3a803af8cc2fd6.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-discuss-tech-trends-and-updates/663626ee2c3a803af8cc2fd6.md @@ -11,7 +11,7 @@ dashedName: task-23 In modern usage, `computing` also includes topics like `cloud computing`, `serverless computing`, and more, reflecting the evolving nature of technology. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-have-a-conversation-about-preferences-and-motivations/65811619cf9fad1fe57fd7b8.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-have-a-conversation-about-preferences-and-motivations/65811619cf9fad1fe57fd7b8.md index 7ef486f9c2..111c47ddda 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-have-a-conversation-about-preferences-and-motivations/65811619cf9fad1fe57fd7b8.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-have-a-conversation-about-preferences-and-motivations/65811619cf9fad1fe57fd7b8.md @@ -15,7 +15,7 @@ A **gerund** acts like a noun and is used to talk about the activity itself. For The **present continuous tense** is formed using the verb `to be` and a present participle to describe actions that are happening right now. For example, in `She is coding`, `is coding` is in the present continuous tense because it shows what she is doing at this moment. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-help-a-coworker-troubleshoot-on-github/656bbeb152c95913465476e3.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-help-a-coworker-troubleshoot-on-github/656bbeb152c95913465476e3.md index 59471ff77a..733058140b 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-help-a-coworker-troubleshoot-on-github/656bbeb152c95913465476e3.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-help-a-coworker-troubleshoot-on-github/656bbeb152c95913465476e3.md @@ -13,7 +13,7 @@ It's like turning a recipe written in one language into another language so that For example, `When we compile Java code, it changes into a form that the computer can run.` -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-provide-explanations-when-helping-others/66262b91a2380f2a02d20e94.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-provide-explanations-when-helping-others/66262b91a2380f2a02d20e94.md index 1103d4d511..81b01b4b04 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-provide-explanations-when-helping-others/66262b91a2380f2a02d20e94.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-provide-explanations-when-helping-others/66262b91a2380f2a02d20e94.md @@ -11,7 +11,7 @@ The `storage` in computers has to do with the place where data is kept. It's lik `Storage space` is the amount of room available for storing data. It's like how much space you have in a cupboard. If you have a lot of `storage space`, you can save many files. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-provide-explanations-when-helping-others/66262c938943392c6aa23d39.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-provide-explanations-when-helping-others/66262c938943392c6aa23d39.md index 500f1e3b94..e28f053549 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-provide-explanations-when-helping-others/66262c938943392c6aa23d39.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-provide-explanations-when-helping-others/66262c938943392c6aa23d39.md @@ -11,7 +11,7 @@ A `hard drive` is a component in computers used to store data permanently. It's It's different from temporary storage, which is like a desk where things are only kept for a short time while in use. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-provide-explanations-when-helping-others/662634fa4dab0640457469f6.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-provide-explanations-when-helping-others/662634fa4dab0640457469f6.md index fad0423d47..e9ffb7394a 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-provide-explanations-when-helping-others/662634fa4dab0640457469f6.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-provide-explanations-when-helping-others/662634fa4dab0640457469f6.md @@ -11,7 +11,7 @@ A `property` is a characteristic or feature of something. For example, the color In programming, a `property` is an attribute or a characteristic of an object. The term `properties` is the plural form, meaning more than one characteristic. For instance, `properties of a smartphone might include its screen size, color, and storage capacity`. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/65fff2b49779301d9bdab6fa.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/65fff2b49779301d9bdab6fa.md index 7d4b6cb337..6f93c940c6 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/65fff2b49779301d9bdab6fa.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/65fff2b49779301d9bdab6fa.md @@ -11,7 +11,7 @@ dashedName: task-12 Listen to the audio and answer the question. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/66000f74c71b623407a8394e.md b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/66000f74c71b623407a8394e.md index 2f0ad1c740..567523515e 100644 --- a/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/66000f74c71b623407a8394e.md +++ b/curriculum/challenges/espanol/21-a2-english-for-developers/learn-how-to-read-and-understand-code-documentation/66000f74c71b623407a8394e.md @@ -11,7 +11,7 @@ dashedName: task-18 Listen to the audio and answer the question. -# --preguntas----preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/23-python-for-everybody/python-for-everybody/web-services-xml-schema.md b/curriculum/challenges/espanol/23-python-for-everybody/python-for-everybody/web-services-xml-schema.md index 134de4352b..c0a0ea9c56 100644 --- a/curriculum/challenges/espanol/23-python-for-everybody/python-for-everybody/web-services-xml-schema.md +++ b/curriculum/challenges/espanol/23-python-for-everybody/python-for-everybody/web-services-xml-schema.md @@ -10,7 +10,7 @@ bilibiliIds: dashedName: web-services-xml-schema --- -# --preguntas-- +# --questions-- ## --text-- diff --git a/curriculum/challenges/espanol/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md b/curriculum/challenges/espanol/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md index 2cf2d525e3..ab61e0fd5a 100644 --- a/curriculum/challenges/espanol/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md +++ b/curriculum/challenges/espanol/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md @@ -17,439 +17,439 @@ Answer all of the questions below correctly to pass the quiz. #### --text-- -Placeholder question +Which command initializes a new `package.json` file in `npm`? #### --distractors-- -Placeholder distractor 1 +`npm create` --- -Placeholder distractor 2 +`npm add` --- -Placeholder distractor 3 +`npm start` #### --answer-- -Placeholder answer +`npm init` ### --question-- #### --text-- -Placeholder question +What is the primary purpose of `npm`? #### --distractors-- -Placeholder distractor 1 +To run a web server. --- -Placeholder distractor 2 +To bundle code for production. --- -Placeholder distractor 3 +To compile JavaScript. #### --answer-- -Placeholder answer +To manage packages for Node.js. ### --question-- #### --text-- -Placeholder question +Which JavaScript engine is used by Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScriptCore. --- -Placeholder distractor 2 +SpiderMonkey. --- -Placeholder distractor 3 +Chakra. #### --answer-- -Placeholder answer +V8. ### --question-- #### --text-- -Placeholder question +In Express.js, what middleware function is used to parse incoming JSON payloads? #### --distractors-- -Placeholder distractor 1 +`app.useJSON()` --- -Placeholder distractor 2 +`app.parseJSON()` --- -Placeholder distractor 3 +`express.bodyParser()` #### --answer-- -Placeholder answer +`express.json()` ### --question-- #### --text-- -Placeholder question +What is Express.js primarily used for? #### --distractors-- -Placeholder distractor 1 +Creating mobile applications. --- -Placeholder distractor 2 +Creating desktop applications. --- -Placeholder distractor 3 +Database management. #### --answer-- -Placeholder answer +Building web applications and APIs. ### --question-- #### --text-- -Placeholder question +What is a major feature of Deno compared to Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScript syntax only. --- -Placeholder distractor 2 +Support for CommonJS modules. --- -Placeholder distractor 3 +Requires a browser to run. #### --answer-- -Placeholder answer +Built-in TypeScript support. ### --question-- #### --text-- -Placeholder question +What is Bun primarily designed for? #### --distractors-- -Placeholder distractor 1 +Compiling C++ code. --- -Placeholder distractor 2 +Compiling Java applications. --- -Placeholder distractor 3 +Managing databases. #### --answer-- -Placeholder answer +Building and running JavaScript applications efficiently. ### --question-- #### --text-- -Placeholder question +What does the Express method `app.use()` do? #### --distractors-- -Placeholder distractor 1 +Handles GET requests. --- -Placeholder distractor 2 +Starts the server. --- -Placeholder distractor 3 +Sends a response to the client. #### --answer-- -Placeholder answer +Mounts middleware functions. ### --question-- #### --text-- -Placeholder question +What is the default port for an Express application? #### --distractors-- -Placeholder distractor 1 +4000 --- -Placeholder distractor 2 +8080 --- -Placeholder distractor 3 +4001 #### --answer-- -Placeholder answer +3000 ### --question-- #### --text-- -Placeholder question +What is the purpose of the `cors` package in an Express application? #### --distractors-- -Placeholder distractor 1 +To compress response data. --- -Placeholder distractor 2 +To manage session storage. --- -Placeholder distractor 3 +To log HTTP requests. #### --answer-- -Placeholder answer +To enable Cross-Origin Resource Sharing. ### --question-- #### --text-- -Placeholder question +Which `npm` package is used to connect a Node.js application to a MySQL database? #### --distractors-- -Placeholder distractor 1 +`mongoose` --- -Placeholder distractor 2 +`sqlite` --- -Placeholder distractor 3 +`pg` #### --answer-- -Placeholder answer +`mysql` ### --question-- #### --text-- -Placeholder question +Which of the following is a popular ODM for Node.js? #### --distractors-- -Placeholder distractor 1 +Bun. --- -Placeholder distractor 2 +PostgreSQL. --- -Placeholder distractor 3 +V8. #### --answer-- -Placeholder answer +Mongoose. ### --question-- #### --text-- -Placeholder question +What is the purpose of the `dotenv` package in a Node.js application? #### --distractors-- -Placeholder distractor 1 +To manage sessions. --- -Placeholder distractor 2 +To optimize performance. --- -Placeholder distractor 3 +To compile TypeScript. #### --answer-- -Placeholder answer +To load environment variables from a `.env` file. ### --question-- #### --text-- -Placeholder question +How can you retrieve query parameters in an Express route? #### --distractors-- -Placeholder distractor 1 +`req.body` --- -Placeholder distractor 2 +`req.data` --- -Placeholder distractor 3 +`req.params` #### --answer-- -Placeholder answer +`req.query` ### --question-- #### --text-- -Placeholder question +Which command is used to run scripts defined in the `package.json` file? #### --distractors-- -Placeholder distractor 1 +`npm execute` --- -Placeholder distractor 2 +`npm run-script` --- -Placeholder distractor 3 +`npm launch` #### --answer-- -Placeholder answer +`npm run` ### --question-- #### --text-- -Placeholder question +Which JavaScript runtime is designed to be lightweight and optimized for performance? #### --distractors-- -Placeholder distractor 1 +Node.js. --- -Placeholder distractor 2 +Rhino. --- -Placeholder distractor 3 +Deno. #### --answer-- -Placeholder answer +Bun. ### --question-- #### --text-- -Placeholder question +What middleware is commonly used for handling file uploads in Express? #### --distractors-- -Placeholder distractor 1 +`express-fileupload` --- -Placeholder distractor 2 +`body-parser` --- -Placeholder distractor 3 +`compression` #### --answer-- -Placeholder answer +`multer` ### --question-- #### --text-- -Placeholder question +Which of the following methods are used to start an `express` server? #### --distractors-- -Placeholder distractor 1 +`app.use` --- -Placeholder distractor 2 +`app.render` --- -Placeholder distractor 3 +`app.path` #### --answer-- -Placeholder answer +`app.listen` ### --question-- #### --text-- -Placeholder question +What is the purpose of the `package-lock.json` file? #### --distractors-- -Placeholder distractor 1 +To manually specify package versions. --- -Placeholder distractor 2 +To lock the `npm` version used in the project. --- -Placeholder distractor 3 +To store `npm` authentication tokens. #### --answer-- -Placeholder answer +To ensure consistent installs across environments. ### --question-- #### --text-- -Placeholder question +In a Node.js application, how do you create a connection to a MySQL database using the `mysql` package? #### --distractors-- -Placeholder distractor 1 +`connection.run(sql, params, callback);` --- -Placeholder distractor 2 +`connection.execute(sql, params);` --- -Placeholder distractor 3 +`connection.perform(sql);` #### --answer-- -Placeholder answer +`connection.query(sql, params, callback);` diff --git a/curriculum/challenges/german/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md b/curriculum/challenges/german/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md index 2cf2d525e3..ab61e0fd5a 100644 --- a/curriculum/challenges/german/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md +++ b/curriculum/challenges/german/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md @@ -17,439 +17,439 @@ Answer all of the questions below correctly to pass the quiz. #### --text-- -Placeholder question +Which command initializes a new `package.json` file in `npm`? #### --distractors-- -Placeholder distractor 1 +`npm create` --- -Placeholder distractor 2 +`npm add` --- -Placeholder distractor 3 +`npm start` #### --answer-- -Placeholder answer +`npm init` ### --question-- #### --text-- -Placeholder question +What is the primary purpose of `npm`? #### --distractors-- -Placeholder distractor 1 +To run a web server. --- -Placeholder distractor 2 +To bundle code for production. --- -Placeholder distractor 3 +To compile JavaScript. #### --answer-- -Placeholder answer +To manage packages for Node.js. ### --question-- #### --text-- -Placeholder question +Which JavaScript engine is used by Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScriptCore. --- -Placeholder distractor 2 +SpiderMonkey. --- -Placeholder distractor 3 +Chakra. #### --answer-- -Placeholder answer +V8. ### --question-- #### --text-- -Placeholder question +In Express.js, what middleware function is used to parse incoming JSON payloads? #### --distractors-- -Placeholder distractor 1 +`app.useJSON()` --- -Placeholder distractor 2 +`app.parseJSON()` --- -Placeholder distractor 3 +`express.bodyParser()` #### --answer-- -Placeholder answer +`express.json()` ### --question-- #### --text-- -Placeholder question +What is Express.js primarily used for? #### --distractors-- -Placeholder distractor 1 +Creating mobile applications. --- -Placeholder distractor 2 +Creating desktop applications. --- -Placeholder distractor 3 +Database management. #### --answer-- -Placeholder answer +Building web applications and APIs. ### --question-- #### --text-- -Placeholder question +What is a major feature of Deno compared to Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScript syntax only. --- -Placeholder distractor 2 +Support for CommonJS modules. --- -Placeholder distractor 3 +Requires a browser to run. #### --answer-- -Placeholder answer +Built-in TypeScript support. ### --question-- #### --text-- -Placeholder question +What is Bun primarily designed for? #### --distractors-- -Placeholder distractor 1 +Compiling C++ code. --- -Placeholder distractor 2 +Compiling Java applications. --- -Placeholder distractor 3 +Managing databases. #### --answer-- -Placeholder answer +Building and running JavaScript applications efficiently. ### --question-- #### --text-- -Placeholder question +What does the Express method `app.use()` do? #### --distractors-- -Placeholder distractor 1 +Handles GET requests. --- -Placeholder distractor 2 +Starts the server. --- -Placeholder distractor 3 +Sends a response to the client. #### --answer-- -Placeholder answer +Mounts middleware functions. ### --question-- #### --text-- -Placeholder question +What is the default port for an Express application? #### --distractors-- -Placeholder distractor 1 +4000 --- -Placeholder distractor 2 +8080 --- -Placeholder distractor 3 +4001 #### --answer-- -Placeholder answer +3000 ### --question-- #### --text-- -Placeholder question +What is the purpose of the `cors` package in an Express application? #### --distractors-- -Placeholder distractor 1 +To compress response data. --- -Placeholder distractor 2 +To manage session storage. --- -Placeholder distractor 3 +To log HTTP requests. #### --answer-- -Placeholder answer +To enable Cross-Origin Resource Sharing. ### --question-- #### --text-- -Placeholder question +Which `npm` package is used to connect a Node.js application to a MySQL database? #### --distractors-- -Placeholder distractor 1 +`mongoose` --- -Placeholder distractor 2 +`sqlite` --- -Placeholder distractor 3 +`pg` #### --answer-- -Placeholder answer +`mysql` ### --question-- #### --text-- -Placeholder question +Which of the following is a popular ODM for Node.js? #### --distractors-- -Placeholder distractor 1 +Bun. --- -Placeholder distractor 2 +PostgreSQL. --- -Placeholder distractor 3 +V8. #### --answer-- -Placeholder answer +Mongoose. ### --question-- #### --text-- -Placeholder question +What is the purpose of the `dotenv` package in a Node.js application? #### --distractors-- -Placeholder distractor 1 +To manage sessions. --- -Placeholder distractor 2 +To optimize performance. --- -Placeholder distractor 3 +To compile TypeScript. #### --answer-- -Placeholder answer +To load environment variables from a `.env` file. ### --question-- #### --text-- -Placeholder question +How can you retrieve query parameters in an Express route? #### --distractors-- -Placeholder distractor 1 +`req.body` --- -Placeholder distractor 2 +`req.data` --- -Placeholder distractor 3 +`req.params` #### --answer-- -Placeholder answer +`req.query` ### --question-- #### --text-- -Placeholder question +Which command is used to run scripts defined in the `package.json` file? #### --distractors-- -Placeholder distractor 1 +`npm execute` --- -Placeholder distractor 2 +`npm run-script` --- -Placeholder distractor 3 +`npm launch` #### --answer-- -Placeholder answer +`npm run` ### --question-- #### --text-- -Placeholder question +Which JavaScript runtime is designed to be lightweight and optimized for performance? #### --distractors-- -Placeholder distractor 1 +Node.js. --- -Placeholder distractor 2 +Rhino. --- -Placeholder distractor 3 +Deno. #### --answer-- -Placeholder answer +Bun. ### --question-- #### --text-- -Placeholder question +What middleware is commonly used for handling file uploads in Express? #### --distractors-- -Placeholder distractor 1 +`express-fileupload` --- -Placeholder distractor 2 +`body-parser` --- -Placeholder distractor 3 +`compression` #### --answer-- -Placeholder answer +`multer` ### --question-- #### --text-- -Placeholder question +Which of the following methods are used to start an `express` server? #### --distractors-- -Placeholder distractor 1 +`app.use` --- -Placeholder distractor 2 +`app.render` --- -Placeholder distractor 3 +`app.path` #### --answer-- -Placeholder answer +`app.listen` ### --question-- #### --text-- -Placeholder question +What is the purpose of the `package-lock.json` file? #### --distractors-- -Placeholder distractor 1 +To manually specify package versions. --- -Placeholder distractor 2 +To lock the `npm` version used in the project. --- -Placeholder distractor 3 +To store `npm` authentication tokens. #### --answer-- -Placeholder answer +To ensure consistent installs across environments. ### --question-- #### --text-- -Placeholder question +In a Node.js application, how do you create a connection to a MySQL database using the `mysql` package? #### --distractors-- -Placeholder distractor 1 +`connection.run(sql, params, callback);` --- -Placeholder distractor 2 +`connection.execute(sql, params);` --- -Placeholder distractor 3 +`connection.perform(sql);` #### --answer-- -Placeholder answer +`connection.query(sql, params, callback);` diff --git a/curriculum/challenges/italian/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md b/curriculum/challenges/italian/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md index 2cf2d525e3..ab61e0fd5a 100644 --- a/curriculum/challenges/italian/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md +++ b/curriculum/challenges/italian/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md @@ -17,439 +17,439 @@ Answer all of the questions below correctly to pass the quiz. #### --text-- -Placeholder question +Which command initializes a new `package.json` file in `npm`? #### --distractors-- -Placeholder distractor 1 +`npm create` --- -Placeholder distractor 2 +`npm add` --- -Placeholder distractor 3 +`npm start` #### --answer-- -Placeholder answer +`npm init` ### --question-- #### --text-- -Placeholder question +What is the primary purpose of `npm`? #### --distractors-- -Placeholder distractor 1 +To run a web server. --- -Placeholder distractor 2 +To bundle code for production. --- -Placeholder distractor 3 +To compile JavaScript. #### --answer-- -Placeholder answer +To manage packages for Node.js. ### --question-- #### --text-- -Placeholder question +Which JavaScript engine is used by Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScriptCore. --- -Placeholder distractor 2 +SpiderMonkey. --- -Placeholder distractor 3 +Chakra. #### --answer-- -Placeholder answer +V8. ### --question-- #### --text-- -Placeholder question +In Express.js, what middleware function is used to parse incoming JSON payloads? #### --distractors-- -Placeholder distractor 1 +`app.useJSON()` --- -Placeholder distractor 2 +`app.parseJSON()` --- -Placeholder distractor 3 +`express.bodyParser()` #### --answer-- -Placeholder answer +`express.json()` ### --question-- #### --text-- -Placeholder question +What is Express.js primarily used for? #### --distractors-- -Placeholder distractor 1 +Creating mobile applications. --- -Placeholder distractor 2 +Creating desktop applications. --- -Placeholder distractor 3 +Database management. #### --answer-- -Placeholder answer +Building web applications and APIs. ### --question-- #### --text-- -Placeholder question +What is a major feature of Deno compared to Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScript syntax only. --- -Placeholder distractor 2 +Support for CommonJS modules. --- -Placeholder distractor 3 +Requires a browser to run. #### --answer-- -Placeholder answer +Built-in TypeScript support. ### --question-- #### --text-- -Placeholder question +What is Bun primarily designed for? #### --distractors-- -Placeholder distractor 1 +Compiling C++ code. --- -Placeholder distractor 2 +Compiling Java applications. --- -Placeholder distractor 3 +Managing databases. #### --answer-- -Placeholder answer +Building and running JavaScript applications efficiently. ### --question-- #### --text-- -Placeholder question +What does the Express method `app.use()` do? #### --distractors-- -Placeholder distractor 1 +Handles GET requests. --- -Placeholder distractor 2 +Starts the server. --- -Placeholder distractor 3 +Sends a response to the client. #### --answer-- -Placeholder answer +Mounts middleware functions. ### --question-- #### --text-- -Placeholder question +What is the default port for an Express application? #### --distractors-- -Placeholder distractor 1 +4000 --- -Placeholder distractor 2 +8080 --- -Placeholder distractor 3 +4001 #### --answer-- -Placeholder answer +3000 ### --question-- #### --text-- -Placeholder question +What is the purpose of the `cors` package in an Express application? #### --distractors-- -Placeholder distractor 1 +To compress response data. --- -Placeholder distractor 2 +To manage session storage. --- -Placeholder distractor 3 +To log HTTP requests. #### --answer-- -Placeholder answer +To enable Cross-Origin Resource Sharing. ### --question-- #### --text-- -Placeholder question +Which `npm` package is used to connect a Node.js application to a MySQL database? #### --distractors-- -Placeholder distractor 1 +`mongoose` --- -Placeholder distractor 2 +`sqlite` --- -Placeholder distractor 3 +`pg` #### --answer-- -Placeholder answer +`mysql` ### --question-- #### --text-- -Placeholder question +Which of the following is a popular ODM for Node.js? #### --distractors-- -Placeholder distractor 1 +Bun. --- -Placeholder distractor 2 +PostgreSQL. --- -Placeholder distractor 3 +V8. #### --answer-- -Placeholder answer +Mongoose. ### --question-- #### --text-- -Placeholder question +What is the purpose of the `dotenv` package in a Node.js application? #### --distractors-- -Placeholder distractor 1 +To manage sessions. --- -Placeholder distractor 2 +To optimize performance. --- -Placeholder distractor 3 +To compile TypeScript. #### --answer-- -Placeholder answer +To load environment variables from a `.env` file. ### --question-- #### --text-- -Placeholder question +How can you retrieve query parameters in an Express route? #### --distractors-- -Placeholder distractor 1 +`req.body` --- -Placeholder distractor 2 +`req.data` --- -Placeholder distractor 3 +`req.params` #### --answer-- -Placeholder answer +`req.query` ### --question-- #### --text-- -Placeholder question +Which command is used to run scripts defined in the `package.json` file? #### --distractors-- -Placeholder distractor 1 +`npm execute` --- -Placeholder distractor 2 +`npm run-script` --- -Placeholder distractor 3 +`npm launch` #### --answer-- -Placeholder answer +`npm run` ### --question-- #### --text-- -Placeholder question +Which JavaScript runtime is designed to be lightweight and optimized for performance? #### --distractors-- -Placeholder distractor 1 +Node.js. --- -Placeholder distractor 2 +Rhino. --- -Placeholder distractor 3 +Deno. #### --answer-- -Placeholder answer +Bun. ### --question-- #### --text-- -Placeholder question +What middleware is commonly used for handling file uploads in Express? #### --distractors-- -Placeholder distractor 1 +`express-fileupload` --- -Placeholder distractor 2 +`body-parser` --- -Placeholder distractor 3 +`compression` #### --answer-- -Placeholder answer +`multer` ### --question-- #### --text-- -Placeholder question +Which of the following methods are used to start an `express` server? #### --distractors-- -Placeholder distractor 1 +`app.use` --- -Placeholder distractor 2 +`app.render` --- -Placeholder distractor 3 +`app.path` #### --answer-- -Placeholder answer +`app.listen` ### --question-- #### --text-- -Placeholder question +What is the purpose of the `package-lock.json` file? #### --distractors-- -Placeholder distractor 1 +To manually specify package versions. --- -Placeholder distractor 2 +To lock the `npm` version used in the project. --- -Placeholder distractor 3 +To store `npm` authentication tokens. #### --answer-- -Placeholder answer +To ensure consistent installs across environments. ### --question-- #### --text-- -Placeholder question +In a Node.js application, how do you create a connection to a MySQL database using the `mysql` package? #### --distractors-- -Placeholder distractor 1 +`connection.run(sql, params, callback);` --- -Placeholder distractor 2 +`connection.execute(sql, params);` --- -Placeholder distractor 3 +`connection.perform(sql);` #### --answer-- -Placeholder answer +`connection.query(sql, params, callback);` diff --git a/curriculum/challenges/japanese/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md b/curriculum/challenges/japanese/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md index 2cf2d525e3..ab61e0fd5a 100644 --- a/curriculum/challenges/japanese/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md +++ b/curriculum/challenges/japanese/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md @@ -17,439 +17,439 @@ Answer all of the questions below correctly to pass the quiz. #### --text-- -Placeholder question +Which command initializes a new `package.json` file in `npm`? #### --distractors-- -Placeholder distractor 1 +`npm create` --- -Placeholder distractor 2 +`npm add` --- -Placeholder distractor 3 +`npm start` #### --answer-- -Placeholder answer +`npm init` ### --question-- #### --text-- -Placeholder question +What is the primary purpose of `npm`? #### --distractors-- -Placeholder distractor 1 +To run a web server. --- -Placeholder distractor 2 +To bundle code for production. --- -Placeholder distractor 3 +To compile JavaScript. #### --answer-- -Placeholder answer +To manage packages for Node.js. ### --question-- #### --text-- -Placeholder question +Which JavaScript engine is used by Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScriptCore. --- -Placeholder distractor 2 +SpiderMonkey. --- -Placeholder distractor 3 +Chakra. #### --answer-- -Placeholder answer +V8. ### --question-- #### --text-- -Placeholder question +In Express.js, what middleware function is used to parse incoming JSON payloads? #### --distractors-- -Placeholder distractor 1 +`app.useJSON()` --- -Placeholder distractor 2 +`app.parseJSON()` --- -Placeholder distractor 3 +`express.bodyParser()` #### --answer-- -Placeholder answer +`express.json()` ### --question-- #### --text-- -Placeholder question +What is Express.js primarily used for? #### --distractors-- -Placeholder distractor 1 +Creating mobile applications. --- -Placeholder distractor 2 +Creating desktop applications. --- -Placeholder distractor 3 +Database management. #### --answer-- -Placeholder answer +Building web applications and APIs. ### --question-- #### --text-- -Placeholder question +What is a major feature of Deno compared to Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScript syntax only. --- -Placeholder distractor 2 +Support for CommonJS modules. --- -Placeholder distractor 3 +Requires a browser to run. #### --answer-- -Placeholder answer +Built-in TypeScript support. ### --question-- #### --text-- -Placeholder question +What is Bun primarily designed for? #### --distractors-- -Placeholder distractor 1 +Compiling C++ code. --- -Placeholder distractor 2 +Compiling Java applications. --- -Placeholder distractor 3 +Managing databases. #### --answer-- -Placeholder answer +Building and running JavaScript applications efficiently. ### --question-- #### --text-- -Placeholder question +What does the Express method `app.use()` do? #### --distractors-- -Placeholder distractor 1 +Handles GET requests. --- -Placeholder distractor 2 +Starts the server. --- -Placeholder distractor 3 +Sends a response to the client. #### --answer-- -Placeholder answer +Mounts middleware functions. ### --question-- #### --text-- -Placeholder question +What is the default port for an Express application? #### --distractors-- -Placeholder distractor 1 +4000 --- -Placeholder distractor 2 +8080 --- -Placeholder distractor 3 +4001 #### --answer-- -Placeholder answer +3000 ### --question-- #### --text-- -Placeholder question +What is the purpose of the `cors` package in an Express application? #### --distractors-- -Placeholder distractor 1 +To compress response data. --- -Placeholder distractor 2 +To manage session storage. --- -Placeholder distractor 3 +To log HTTP requests. #### --answer-- -Placeholder answer +To enable Cross-Origin Resource Sharing. ### --question-- #### --text-- -Placeholder question +Which `npm` package is used to connect a Node.js application to a MySQL database? #### --distractors-- -Placeholder distractor 1 +`mongoose` --- -Placeholder distractor 2 +`sqlite` --- -Placeholder distractor 3 +`pg` #### --answer-- -Placeholder answer +`mysql` ### --question-- #### --text-- -Placeholder question +Which of the following is a popular ODM for Node.js? #### --distractors-- -Placeholder distractor 1 +Bun. --- -Placeholder distractor 2 +PostgreSQL. --- -Placeholder distractor 3 +V8. #### --answer-- -Placeholder answer +Mongoose. ### --question-- #### --text-- -Placeholder question +What is the purpose of the `dotenv` package in a Node.js application? #### --distractors-- -Placeholder distractor 1 +To manage sessions. --- -Placeholder distractor 2 +To optimize performance. --- -Placeholder distractor 3 +To compile TypeScript. #### --answer-- -Placeholder answer +To load environment variables from a `.env` file. ### --question-- #### --text-- -Placeholder question +How can you retrieve query parameters in an Express route? #### --distractors-- -Placeholder distractor 1 +`req.body` --- -Placeholder distractor 2 +`req.data` --- -Placeholder distractor 3 +`req.params` #### --answer-- -Placeholder answer +`req.query` ### --question-- #### --text-- -Placeholder question +Which command is used to run scripts defined in the `package.json` file? #### --distractors-- -Placeholder distractor 1 +`npm execute` --- -Placeholder distractor 2 +`npm run-script` --- -Placeholder distractor 3 +`npm launch` #### --answer-- -Placeholder answer +`npm run` ### --question-- #### --text-- -Placeholder question +Which JavaScript runtime is designed to be lightweight and optimized for performance? #### --distractors-- -Placeholder distractor 1 +Node.js. --- -Placeholder distractor 2 +Rhino. --- -Placeholder distractor 3 +Deno. #### --answer-- -Placeholder answer +Bun. ### --question-- #### --text-- -Placeholder question +What middleware is commonly used for handling file uploads in Express? #### --distractors-- -Placeholder distractor 1 +`express-fileupload` --- -Placeholder distractor 2 +`body-parser` --- -Placeholder distractor 3 +`compression` #### --answer-- -Placeholder answer +`multer` ### --question-- #### --text-- -Placeholder question +Which of the following methods are used to start an `express` server? #### --distractors-- -Placeholder distractor 1 +`app.use` --- -Placeholder distractor 2 +`app.render` --- -Placeholder distractor 3 +`app.path` #### --answer-- -Placeholder answer +`app.listen` ### --question-- #### --text-- -Placeholder question +What is the purpose of the `package-lock.json` file? #### --distractors-- -Placeholder distractor 1 +To manually specify package versions. --- -Placeholder distractor 2 +To lock the `npm` version used in the project. --- -Placeholder distractor 3 +To store `npm` authentication tokens. #### --answer-- -Placeholder answer +To ensure consistent installs across environments. ### --question-- #### --text-- -Placeholder question +In a Node.js application, how do you create a connection to a MySQL database using the `mysql` package? #### --distractors-- -Placeholder distractor 1 +`connection.run(sql, params, callback);` --- -Placeholder distractor 2 +`connection.execute(sql, params);` --- -Placeholder distractor 3 +`connection.perform(sql);` #### --answer-- -Placeholder answer +`connection.query(sql, params, callback);` diff --git a/curriculum/challenges/korean/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md b/curriculum/challenges/korean/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md index 2cf2d525e3..ab61e0fd5a 100644 --- a/curriculum/challenges/korean/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md +++ b/curriculum/challenges/korean/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md @@ -17,439 +17,439 @@ Answer all of the questions below correctly to pass the quiz. #### --text-- -Placeholder question +Which command initializes a new `package.json` file in `npm`? #### --distractors-- -Placeholder distractor 1 +`npm create` --- -Placeholder distractor 2 +`npm add` --- -Placeholder distractor 3 +`npm start` #### --answer-- -Placeholder answer +`npm init` ### --question-- #### --text-- -Placeholder question +What is the primary purpose of `npm`? #### --distractors-- -Placeholder distractor 1 +To run a web server. --- -Placeholder distractor 2 +To bundle code for production. --- -Placeholder distractor 3 +To compile JavaScript. #### --answer-- -Placeholder answer +To manage packages for Node.js. ### --question-- #### --text-- -Placeholder question +Which JavaScript engine is used by Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScriptCore. --- -Placeholder distractor 2 +SpiderMonkey. --- -Placeholder distractor 3 +Chakra. #### --answer-- -Placeholder answer +V8. ### --question-- #### --text-- -Placeholder question +In Express.js, what middleware function is used to parse incoming JSON payloads? #### --distractors-- -Placeholder distractor 1 +`app.useJSON()` --- -Placeholder distractor 2 +`app.parseJSON()` --- -Placeholder distractor 3 +`express.bodyParser()` #### --answer-- -Placeholder answer +`express.json()` ### --question-- #### --text-- -Placeholder question +What is Express.js primarily used for? #### --distractors-- -Placeholder distractor 1 +Creating mobile applications. --- -Placeholder distractor 2 +Creating desktop applications. --- -Placeholder distractor 3 +Database management. #### --answer-- -Placeholder answer +Building web applications and APIs. ### --question-- #### --text-- -Placeholder question +What is a major feature of Deno compared to Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScript syntax only. --- -Placeholder distractor 2 +Support for CommonJS modules. --- -Placeholder distractor 3 +Requires a browser to run. #### --answer-- -Placeholder answer +Built-in TypeScript support. ### --question-- #### --text-- -Placeholder question +What is Bun primarily designed for? #### --distractors-- -Placeholder distractor 1 +Compiling C++ code. --- -Placeholder distractor 2 +Compiling Java applications. --- -Placeholder distractor 3 +Managing databases. #### --answer-- -Placeholder answer +Building and running JavaScript applications efficiently. ### --question-- #### --text-- -Placeholder question +What does the Express method `app.use()` do? #### --distractors-- -Placeholder distractor 1 +Handles GET requests. --- -Placeholder distractor 2 +Starts the server. --- -Placeholder distractor 3 +Sends a response to the client. #### --answer-- -Placeholder answer +Mounts middleware functions. ### --question-- #### --text-- -Placeholder question +What is the default port for an Express application? #### --distractors-- -Placeholder distractor 1 +4000 --- -Placeholder distractor 2 +8080 --- -Placeholder distractor 3 +4001 #### --answer-- -Placeholder answer +3000 ### --question-- #### --text-- -Placeholder question +What is the purpose of the `cors` package in an Express application? #### --distractors-- -Placeholder distractor 1 +To compress response data. --- -Placeholder distractor 2 +To manage session storage. --- -Placeholder distractor 3 +To log HTTP requests. #### --answer-- -Placeholder answer +To enable Cross-Origin Resource Sharing. ### --question-- #### --text-- -Placeholder question +Which `npm` package is used to connect a Node.js application to a MySQL database? #### --distractors-- -Placeholder distractor 1 +`mongoose` --- -Placeholder distractor 2 +`sqlite` --- -Placeholder distractor 3 +`pg` #### --answer-- -Placeholder answer +`mysql` ### --question-- #### --text-- -Placeholder question +Which of the following is a popular ODM for Node.js? #### --distractors-- -Placeholder distractor 1 +Bun. --- -Placeholder distractor 2 +PostgreSQL. --- -Placeholder distractor 3 +V8. #### --answer-- -Placeholder answer +Mongoose. ### --question-- #### --text-- -Placeholder question +What is the purpose of the `dotenv` package in a Node.js application? #### --distractors-- -Placeholder distractor 1 +To manage sessions. --- -Placeholder distractor 2 +To optimize performance. --- -Placeholder distractor 3 +To compile TypeScript. #### --answer-- -Placeholder answer +To load environment variables from a `.env` file. ### --question-- #### --text-- -Placeholder question +How can you retrieve query parameters in an Express route? #### --distractors-- -Placeholder distractor 1 +`req.body` --- -Placeholder distractor 2 +`req.data` --- -Placeholder distractor 3 +`req.params` #### --answer-- -Placeholder answer +`req.query` ### --question-- #### --text-- -Placeholder question +Which command is used to run scripts defined in the `package.json` file? #### --distractors-- -Placeholder distractor 1 +`npm execute` --- -Placeholder distractor 2 +`npm run-script` --- -Placeholder distractor 3 +`npm launch` #### --answer-- -Placeholder answer +`npm run` ### --question-- #### --text-- -Placeholder question +Which JavaScript runtime is designed to be lightweight and optimized for performance? #### --distractors-- -Placeholder distractor 1 +Node.js. --- -Placeholder distractor 2 +Rhino. --- -Placeholder distractor 3 +Deno. #### --answer-- -Placeholder answer +Bun. ### --question-- #### --text-- -Placeholder question +What middleware is commonly used for handling file uploads in Express? #### --distractors-- -Placeholder distractor 1 +`express-fileupload` --- -Placeholder distractor 2 +`body-parser` --- -Placeholder distractor 3 +`compression` #### --answer-- -Placeholder answer +`multer` ### --question-- #### --text-- -Placeholder question +Which of the following methods are used to start an `express` server? #### --distractors-- -Placeholder distractor 1 +`app.use` --- -Placeholder distractor 2 +`app.render` --- -Placeholder distractor 3 +`app.path` #### --answer-- -Placeholder answer +`app.listen` ### --question-- #### --text-- -Placeholder question +What is the purpose of the `package-lock.json` file? #### --distractors-- -Placeholder distractor 1 +To manually specify package versions. --- -Placeholder distractor 2 +To lock the `npm` version used in the project. --- -Placeholder distractor 3 +To store `npm` authentication tokens. #### --answer-- -Placeholder answer +To ensure consistent installs across environments. ### --question-- #### --text-- -Placeholder question +In a Node.js application, how do you create a connection to a MySQL database using the `mysql` package? #### --distractors-- -Placeholder distractor 1 +`connection.run(sql, params, callback);` --- -Placeholder distractor 2 +`connection.execute(sql, params);` --- -Placeholder distractor 3 +`connection.perform(sql);` #### --answer-- -Placeholder answer +`connection.query(sql, params, callback);` diff --git a/curriculum/challenges/portuguese/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md b/curriculum/challenges/portuguese/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md index 0ef523424f..a47e060416 100644 --- a/curriculum/challenges/portuguese/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md +++ b/curriculum/challenges/portuguese/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md @@ -17,439 +17,439 @@ Answer all of the questions below correctly to pass the quiz. #### --text-- -Placeholder question +Which command initializes a new `package.json` file in `npm`? #### --distractors-- -Placeholder distractor 1 +`npm create` --- -Placeholder distractor 2 +`npm add` --- -Placeholder distractor 3 +`npm start` #### --answer-- -Placeholder answer +`npm init` ### --question-- #### --text-- -Placeholder question +What is the primary purpose of `npm`? #### --distractors-- -Placeholder distractor 1 +To run a web server. --- -Placeholder distractor 2 +To bundle code for production. --- -Placeholder distractor 3 +To compile JavaScript. #### --answer-- -Placeholder answer +To manage packages for Node.js. ### --question-- #### --text-- -Placeholder question +Which JavaScript engine is used by Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScriptCore. --- -Placeholder distractor 2 +SpiderMonkey. --- -Placeholder distractor 3 +Chakra. #### --answer-- -Placeholder answer +V8. ### --question-- #### --text-- -Placeholder question +In Express.js, what middleware function is used to parse incoming JSON payloads? #### --distractors-- -Placeholder distractor 1 +`app.useJSON()` --- -Placeholder distractor 2 +`app.parseJSON()` --- -Placeholder distractor 3 +`express.bodyParser()` #### --answer-- -Placeholder answer +`express.json()` ### --question-- #### --text-- -Placeholder question +What is Express.js primarily used for? #### --distractors-- -Placeholder distractor 1 +Creating mobile applications. --- -Placeholder distractor 2 +Creating desktop applications. --- -Placeholder distractor 3 +Database management. #### --answer-- -Placeholder answer +Building web applications and APIs. ### --question-- #### --text-- -Placeholder question +What is a major feature of Deno compared to Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScript syntax only. --- -Placeholder distractor 2 +Support for CommonJS modules. --- -Placeholder distractor 3 +Requires a browser to run. #### --answer-- -Placeholder answer +Built-in TypeScript support. ### --question-- #### --text-- -Placeholder question +What is Bun primarily designed for? #### --distractors-- -Placeholder distractor 1 +Compiling C++ code. --- -Placeholder distractor 2 +Compiling Java applications. --- -Placeholder distractor 3 +Managing databases. #### --answer-- -Placeholder answer +Building and running JavaScript applications efficiently. ### --question-- #### --text-- -Placeholder question +What does the Express method `app.use()` do? #### --distractors-- -Placeholder distractor 1 +Handles GET requests. --- -Placeholder distractor 2 +Starts the server. --- -Placeholder distractor 3 +Sends a response to the client. #### --answer-- -Placeholder answer +Mounts middleware functions. ### --question-- #### --text-- -Placeholder question +What is the default port for an Express application? #### --distractors-- -Placeholder distractor 1 +4000 --- -Placeholder distractor 2 +8080 --- -Placeholder distractor 3 +4001 #### --answer-- -Placeholder answer +3000 ### --question-- #### --text-- -Placeholder question +What is the purpose of the `cors` package in an Express application? #### --distractors-- -Placeholder distractor 1 +To compress response data. --- -Placeholder distractor 2 +To manage session storage. --- -Placeholder distractor 3 +To log HTTP requests. #### --answer-- -Placeholder answer +To enable Cross-Origin Resource Sharing. ### --question-- #### --text-- -Placeholder question +Which `npm` package is used to connect a Node.js application to a MySQL database? #### --distractors-- -Placeholder distractor 1 +`mongoose` --- -Placeholder distractor 2 +`sqlite` --- -Placeholder distractor 3 +`pg` #### --answer-- -Placeholder answer +`mysql` ### --question-- #### --text-- -Placeholder question +Which of the following is a popular ODM for Node.js? #### --distractors-- -Placeholder distractor 1 +Bun. --- -Placeholder distractor 2 +PostgreSQL. --- -Placeholder distractor 3 +V8. #### --answer-- -Placeholder answer +Mongoose. ### --question-- #### --text-- -Placeholder question +What is the purpose of the `dotenv` package in a Node.js application? #### --distractors-- -Placeholder distractor 1 +To manage sessions. --- -Placeholder distractor 2 +To optimize performance. --- -Placeholder distractor 3 +To compile TypeScript. #### --answer-- -Placeholder answer +To load environment variables from a `.env` file. ### --question-- #### --text-- -Placeholder question +How can you retrieve query parameters in an Express route? #### --distractors-- -Placeholder distractor 1 +`req.body` --- -Placeholder distractor 2 +`req.data` --- -Placeholder distractor 3 +`req.params` #### --answer-- -Placeholder answer +`req.query` ### --question-- #### --text-- -Placeholder question +Which command is used to run scripts defined in the `package.json` file? #### --distractors-- -Placeholder distractor 1 +`npm execute` --- -Placeholder distractor 2 +`npm run-script` --- -Placeholder distractor 3 +`npm launch` #### --answer-- -Placeholder answer +`npm run` ### --question-- #### --text-- -Placeholder question +Which JavaScript runtime is designed to be lightweight and optimized for performance? #### --distractors-- -Placeholder distractor 1 +Node.js. --- -Placeholder distractor 2 +Rhino. --- -Placeholder distractor 3 +Deno. #### --answer-- -Placeholder answer +Bun. ### --question-- #### --text-- -Placeholder question +What middleware is commonly used for handling file uploads in Express? #### --distractors-- -Placeholder distractor 1 +`express-fileupload` --- -Placeholder distractor 2 +`body-parser` --- -Placeholder distractor 3 +`compression` #### --answer-- -Placeholder answer +`multer` ### --question-- #### --text-- -Placeholder question +Which of the following methods are used to start an `express` server? #### --distractors-- -Placeholder distractor 1 +`app.use` --- -Placeholder distractor 2 +`app.render` --- -Placeholder distractor 3 +`app.path` #### --answer-- -Placeholder answer +`app.listen` ### --question-- #### --text-- -Placeholder question +What is the purpose of the `package-lock.json` file? #### --distractors-- -Placeholder distractor 1 +To manually specify package versions. --- -Placeholder distractor 2 +To lock the `npm` version used in the project. --- -Placeholder distractor 3 +To store `npm` authentication tokens. #### --answer-- -Placeholder answer +To ensure consistent installs across environments. ### --question-- #### --text-- -Placeholder question +In a Node.js application, how do you create a connection to a MySQL database using the `mysql` package? #### --distractors-- -Placeholder distractor 1 +`connection.run(sql, params, callback);` --- -Placeholder distractor 2 +`connection.execute(sql, params);` --- -Placeholder distractor 3 +`connection.perform(sql);` #### --answer-- -Placeholder answer +`connection.query(sql, params, callback);` diff --git a/curriculum/challenges/swahili/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md b/curriculum/challenges/swahili/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md index 2cf2d525e3..ab61e0fd5a 100644 --- a/curriculum/challenges/swahili/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md +++ b/curriculum/challenges/swahili/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md @@ -17,439 +17,439 @@ Answer all of the questions below correctly to pass the quiz. #### --text-- -Placeholder question +Which command initializes a new `package.json` file in `npm`? #### --distractors-- -Placeholder distractor 1 +`npm create` --- -Placeholder distractor 2 +`npm add` --- -Placeholder distractor 3 +`npm start` #### --answer-- -Placeholder answer +`npm init` ### --question-- #### --text-- -Placeholder question +What is the primary purpose of `npm`? #### --distractors-- -Placeholder distractor 1 +To run a web server. --- -Placeholder distractor 2 +To bundle code for production. --- -Placeholder distractor 3 +To compile JavaScript. #### --answer-- -Placeholder answer +To manage packages for Node.js. ### --question-- #### --text-- -Placeholder question +Which JavaScript engine is used by Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScriptCore. --- -Placeholder distractor 2 +SpiderMonkey. --- -Placeholder distractor 3 +Chakra. #### --answer-- -Placeholder answer +V8. ### --question-- #### --text-- -Placeholder question +In Express.js, what middleware function is used to parse incoming JSON payloads? #### --distractors-- -Placeholder distractor 1 +`app.useJSON()` --- -Placeholder distractor 2 +`app.parseJSON()` --- -Placeholder distractor 3 +`express.bodyParser()` #### --answer-- -Placeholder answer +`express.json()` ### --question-- #### --text-- -Placeholder question +What is Express.js primarily used for? #### --distractors-- -Placeholder distractor 1 +Creating mobile applications. --- -Placeholder distractor 2 +Creating desktop applications. --- -Placeholder distractor 3 +Database management. #### --answer-- -Placeholder answer +Building web applications and APIs. ### --question-- #### --text-- -Placeholder question +What is a major feature of Deno compared to Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScript syntax only. --- -Placeholder distractor 2 +Support for CommonJS modules. --- -Placeholder distractor 3 +Requires a browser to run. #### --answer-- -Placeholder answer +Built-in TypeScript support. ### --question-- #### --text-- -Placeholder question +What is Bun primarily designed for? #### --distractors-- -Placeholder distractor 1 +Compiling C++ code. --- -Placeholder distractor 2 +Compiling Java applications. --- -Placeholder distractor 3 +Managing databases. #### --answer-- -Placeholder answer +Building and running JavaScript applications efficiently. ### --question-- #### --text-- -Placeholder question +What does the Express method `app.use()` do? #### --distractors-- -Placeholder distractor 1 +Handles GET requests. --- -Placeholder distractor 2 +Starts the server. --- -Placeholder distractor 3 +Sends a response to the client. #### --answer-- -Placeholder answer +Mounts middleware functions. ### --question-- #### --text-- -Placeholder question +What is the default port for an Express application? #### --distractors-- -Placeholder distractor 1 +4000 --- -Placeholder distractor 2 +8080 --- -Placeholder distractor 3 +4001 #### --answer-- -Placeholder answer +3000 ### --question-- #### --text-- -Placeholder question +What is the purpose of the `cors` package in an Express application? #### --distractors-- -Placeholder distractor 1 +To compress response data. --- -Placeholder distractor 2 +To manage session storage. --- -Placeholder distractor 3 +To log HTTP requests. #### --answer-- -Placeholder answer +To enable Cross-Origin Resource Sharing. ### --question-- #### --text-- -Placeholder question +Which `npm` package is used to connect a Node.js application to a MySQL database? #### --distractors-- -Placeholder distractor 1 +`mongoose` --- -Placeholder distractor 2 +`sqlite` --- -Placeholder distractor 3 +`pg` #### --answer-- -Placeholder answer +`mysql` ### --question-- #### --text-- -Placeholder question +Which of the following is a popular ODM for Node.js? #### --distractors-- -Placeholder distractor 1 +Bun. --- -Placeholder distractor 2 +PostgreSQL. --- -Placeholder distractor 3 +V8. #### --answer-- -Placeholder answer +Mongoose. ### --question-- #### --text-- -Placeholder question +What is the purpose of the `dotenv` package in a Node.js application? #### --distractors-- -Placeholder distractor 1 +To manage sessions. --- -Placeholder distractor 2 +To optimize performance. --- -Placeholder distractor 3 +To compile TypeScript. #### --answer-- -Placeholder answer +To load environment variables from a `.env` file. ### --question-- #### --text-- -Placeholder question +How can you retrieve query parameters in an Express route? #### --distractors-- -Placeholder distractor 1 +`req.body` --- -Placeholder distractor 2 +`req.data` --- -Placeholder distractor 3 +`req.params` #### --answer-- -Placeholder answer +`req.query` ### --question-- #### --text-- -Placeholder question +Which command is used to run scripts defined in the `package.json` file? #### --distractors-- -Placeholder distractor 1 +`npm execute` --- -Placeholder distractor 2 +`npm run-script` --- -Placeholder distractor 3 +`npm launch` #### --answer-- -Placeholder answer +`npm run` ### --question-- #### --text-- -Placeholder question +Which JavaScript runtime is designed to be lightweight and optimized for performance? #### --distractors-- -Placeholder distractor 1 +Node.js. --- -Placeholder distractor 2 +Rhino. --- -Placeholder distractor 3 +Deno. #### --answer-- -Placeholder answer +Bun. ### --question-- #### --text-- -Placeholder question +What middleware is commonly used for handling file uploads in Express? #### --distractors-- -Placeholder distractor 1 +`express-fileupload` --- -Placeholder distractor 2 +`body-parser` --- -Placeholder distractor 3 +`compression` #### --answer-- -Placeholder answer +`multer` ### --question-- #### --text-- -Placeholder question +Which of the following methods are used to start an `express` server? #### --distractors-- -Placeholder distractor 1 +`app.use` --- -Placeholder distractor 2 +`app.render` --- -Placeholder distractor 3 +`app.path` #### --answer-- -Placeholder answer +`app.listen` ### --question-- #### --text-- -Placeholder question +What is the purpose of the `package-lock.json` file? #### --distractors-- -Placeholder distractor 1 +To manually specify package versions. --- -Placeholder distractor 2 +To lock the `npm` version used in the project. --- -Placeholder distractor 3 +To store `npm` authentication tokens. #### --answer-- -Placeholder answer +To ensure consistent installs across environments. ### --question-- #### --text-- -Placeholder question +In a Node.js application, how do you create a connection to a MySQL database using the `mysql` package? #### --distractors-- -Placeholder distractor 1 +`connection.run(sql, params, callback);` --- -Placeholder distractor 2 +`connection.execute(sql, params);` --- -Placeholder distractor 3 +`connection.perform(sql);` #### --answer-- -Placeholder answer +`connection.query(sql, params, callback);` diff --git a/curriculum/challenges/ukrainian/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md b/curriculum/challenges/ukrainian/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md index f96c084d8b..0cf878e69e 100644 --- a/curriculum/challenges/ukrainian/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md +++ b/curriculum/challenges/ukrainian/25-front-end-development/quiz-backend-javascript/66f1b11026394bcdb7c42473.md @@ -17,439 +17,439 @@ dashedName: quiz-backend-javascript #### --text-- -Placeholder question +Which command initializes a new `package.json` file in `npm`? #### --distractors-- -Placeholder distractor 1 +`npm create` --- -Placeholder distractor 2 +`npm add` --- -Placeholder distractor 3 +`npm start` #### --answer-- -Placeholder answer +`npm init` ### --question-- #### --text-- -Placeholder question +What is the primary purpose of `npm`? #### --distractors-- -Placeholder distractor 1 +To run a web server. --- -Placeholder distractor 2 +To bundle code for production. --- -Placeholder distractor 3 +To compile JavaScript. #### --answer-- -Placeholder answer +To manage packages for Node.js. ### --question-- #### --text-- -Placeholder question +Which JavaScript engine is used by Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScriptCore. --- -Placeholder distractor 2 +SpiderMonkey. --- -Placeholder distractor 3 +Chakra. #### --answer-- -Placeholder answer +V8. ### --question-- #### --text-- -Placeholder question +In Express.js, what middleware function is used to parse incoming JSON payloads? #### --distractors-- -Placeholder distractor 1 +`app.useJSON()` --- -Placeholder distractor 2 +`app.parseJSON()` --- -Placeholder distractor 3 +`express.bodyParser()` #### --answer-- -Placeholder answer +`express.json()` ### --question-- #### --text-- -Placeholder question +What is Express.js primarily used for? #### --distractors-- -Placeholder distractor 1 +Creating mobile applications. --- -Placeholder distractor 2 +Creating desktop applications. --- -Placeholder distractor 3 +Database management. #### --answer-- -Placeholder answer +Building web applications and APIs. ### --question-- #### --text-- -Placeholder question +What is a major feature of Deno compared to Node.js? #### --distractors-- -Placeholder distractor 1 +JavaScript syntax only. --- -Placeholder distractor 2 +Support for CommonJS modules. --- -Placeholder distractor 3 +Requires a browser to run. #### --answer-- -Placeholder answer +Built-in TypeScript support. ### --question-- #### --text-- -Placeholder question +What is Bun primarily designed for? #### --distractors-- -Placeholder distractor 1 +Compiling C++ code. --- -Placeholder distractor 2 +Compiling Java applications. --- -Placeholder distractor 3 +Managing databases. #### --answer-- -Placeholder answer +Building and running JavaScript applications efficiently. ### --question-- #### --text-- -Placeholder question +What does the Express method `app.use()` do? #### --distractors-- -Placeholder distractor 1 +Handles GET requests. --- -Placeholder distractor 2 +Starts the server. --- -Placeholder distractor 3 +Sends a response to the client. #### --answer-- -Placeholder answer +Mounts middleware functions. ### --question-- #### --text-- -Placeholder question +What is the default port for an Express application? #### --distractors-- -Placeholder distractor 1 +4000 --- -Placeholder distractor 2 +8080 --- -Placeholder distractor 3 +4001 #### --answer-- -Placeholder answer +3000 ### --question-- #### --text-- -Placeholder question +What is the purpose of the `cors` package in an Express application? #### --distractors-- -Placeholder distractor 1 +To compress response data. --- -Placeholder distractor 2 +To manage session storage. --- -Placeholder distractor 3 +To log HTTP requests. #### --answer-- -Placeholder answer +To enable Cross-Origin Resource Sharing. ### --question-- #### --text-- -Placeholder question +Which `npm` package is used to connect a Node.js application to a MySQL database? #### --distractors-- -Placeholder distractor 1 +`mongoose` --- -Placeholder distractor 2 +`sqlite` --- -Placeholder distractor 3 +`pg` #### --answer-- -Placeholder answer +`mysql` ### --question-- #### --text-- -Placeholder question +Which of the following is a popular ODM for Node.js? #### --distractors-- -Placeholder distractor 1 +Bun. --- -Placeholder distractor 2 +PostgreSQL. --- -Placeholder distractor 3 +V8. #### --answer-- -Placeholder answer +Mongoose. ### --question-- #### --text-- -Placeholder question +What is the purpose of the `dotenv` package in a Node.js application? #### --distractors-- -Placeholder distractor 1 +To manage sessions. --- -Placeholder distractor 2 +To optimize performance. --- -Placeholder distractor 3 +To compile TypeScript. #### --answer-- -Placeholder answer +To load environment variables from a `.env` file. ### --question-- #### --text-- -Placeholder question +How can you retrieve query parameters in an Express route? #### --distractors-- -Placeholder distractor 1 +`req.body` --- -Placeholder distractor 2 +`req.data` --- -Placeholder distractor 3 +`req.params` #### --answer-- -Placeholder answer +`req.query` ### --question-- #### --text-- -Placeholder question +Which command is used to run scripts defined in the `package.json` file? #### --distractors-- -Placeholder distractor 1 +`npm execute` --- -Placeholder distractor 2 +`npm run-script` --- -Placeholder distractor 3 +`npm launch` #### --answer-- -Placeholder answer +`npm run` ### --question-- #### --text-- -Placeholder question +Which JavaScript runtime is designed to be lightweight and optimized for performance? #### --distractors-- -Placeholder distractor 1 +Node.js. --- -Placeholder distractor 2 +Rhino. --- -Placeholder distractor 3 +Deno. #### --answer-- -Placeholder answer +Bun. ### --question-- #### --text-- -Placeholder question +What middleware is commonly used for handling file uploads in Express? #### --distractors-- -Placeholder distractor 1 +`express-fileupload` --- -Placeholder distractor 2 +`body-parser` --- -Placeholder distractor 3 +`compression` #### --answer-- -Placeholder answer +`multer` ### --question-- #### --text-- -Placeholder question +Which of the following methods are used to start an `express` server? #### --distractors-- -Placeholder distractor 1 +`app.use` --- -Placeholder distractor 2 +`app.render` --- -Placeholder distractor 3 +`app.path` #### --answer-- -Placeholder answer +`app.listen` ### --question-- #### --text-- -Placeholder question +What is the purpose of the `package-lock.json` file? #### --distractors-- -Placeholder distractor 1 +To manually specify package versions. --- -Placeholder distractor 2 +To lock the `npm` version used in the project. --- -Placeholder distractor 3 +To store `npm` authentication tokens. #### --answer-- -Placeholder answer +To ensure consistent installs across environments. ### --question-- #### --text-- -Placeholder question +In a Node.js application, how do you create a connection to a MySQL database using the `mysql` package? #### --distractors-- -Placeholder distractor 1 +`connection.run(sql, params, callback);` --- -Placeholder distractor 2 +`connection.execute(sql, params);` --- -Placeholder distractor 3 +`connection.perform(sql);` #### --answer-- -Placeholder answer +`connection.query(sql, params, callback);`