From b2321cf89c738f86622a0c33236d0544c5e729ec Mon Sep 17 00:00:00 2001 From: ebazhanov Date: Thu, 21 Oct 2021 13:24:57 +0200 Subject: [PATCH] prettier formatting --- css/css-quiz.md | 18 +++++++++++----- it-operations/it-operations-quiz.md | 4 ++-- mongodb/mongodb-quiz.md | 2 +- mysql/mysql-quiz.md | 2 +- node.js/node.js-quiz.md | 32 ++++++++++++++--------------- 5 files changed, 33 insertions(+), 25 deletions(-) diff --git a/css/css-quiz.md b/css/css-quiz.md index 9b785e7ce4..8a605853b5 100755 --- a/css/css-quiz.md +++ b/css/css-quiz.md @@ -31,9 +31,15 @@ div a #### Q4. What element(s) do the following selectors match to? ```css -1) .nav {...} -2) nav {...} -3) #nav {...} +1) .nav { + ...; +} +2) nav { + ...; +} +3) #nav { + ...; +} ``` - [ ] @@ -43,9 +49,11 @@ div a 3. An element with a class of "nav" ``` - [ ] - ```markdown - They all target the same nav element. + +- ```markdown + They all target the same nav element. ``` + - [x] ```markdown 1. An element with an class of "nav" diff --git a/it-operations/it-operations-quiz.md b/it-operations/it-operations-quiz.md index 1ec4392150..02cc697cbf 100755 --- a/it-operations/it-operations-quiz.md +++ b/it-operations/it-operations-quiz.md @@ -14,13 +14,13 @@ - Reset administrator password. - Set network name. - Set network password. - + - [ ] - Set network name. - Set network password. - Assign DNS servers. - + - [ ] - Change administrator account name. diff --git a/mongodb/mongodb-quiz.md b/mongodb/mongodb-quiz.md index 1d3036bd85..00239509f8 100755 --- a/mongodb/mongodb-quiz.md +++ b/mongodb/mongodb-quiz.md @@ -487,7 +487,7 @@ - [ ] index - [ ] Name -- [x] _id +- [x] `_id` - [ ] row number [Reference](https://docs.mongodb.com/manual/reference/operator/aggregation/project/#definition) diff --git a/mysql/mysql-quiz.md b/mysql/mysql-quiz.md index 668bcf07a3..59e2336695 100755 --- a/mysql/mysql-quiz.md +++ b/mysql/mysql-quiz.md @@ -408,7 +408,7 @@ - [ ] insert into - [x] show create table -Note that the question is about *getting* the data and not about the *duplicating* operation itself. And actually there is no need to run `SHOW CREATE TABLE` at all. [To duplicate the table](https://popsql.com/learn-sql/mysql/how-to-duplicate-a-table-in-mysql) structure you can `CREATE TABLE new_table LIKE original_table;`. +Note that the question is about _getting_ the data and not about the _duplicating_ operation itself. And actually there is no need to run `SHOW CREATE TABLE` at all. [To duplicate the table](https://popsql.com/learn-sql/mysql/how-to-duplicate-a-table-in-mysql) structure you can `CREATE TABLE new_table LIKE original_table;`. #### Q46. you need to make your mysql system secure against attackers. What are you _not_ supposed to do? diff --git a/node.js/node.js-quiz.md b/node.js/node.js-quiz.md index c850588ec3..51d9d0bf45 100755 --- a/node.js/node.js-quiz.md +++ b/node.js/node.js-quiz.md @@ -7,7 +7,7 @@ - [ ] the poll phase - [ ] the events queue -**Explanation:** _From javascripttutorial: [reference](https://www.javascripttutorial.net/javascript-call-stack/#:~:text=If%20a%20function%20calls%20another,top%20of%20the%20call%20stack.) +**Explanation:** From javascripttutorial: [reference](https://www.javascripttutorial.net/javascript-call-stack/#:~:text=If%20a%20function%20calls%20another,top%20of%20the%20call%20stack.) #### Q2. Which of the following is a core module in Node? @@ -16,7 +16,7 @@ - [ ] request - [ ] chalk -**Explanation:** _From flaviocopes docs: [reference](https://flaviocopes.com/node-core-modules/) +**Explanation:** From flaviocopes docs: [reference](https://flaviocopes.com/node-core-modules/) #### Q3. Which of the following Buffer class methods returns an uninitialized buffer? @@ -25,7 +25,7 @@ - [ ] from - [ ] alloc -**Explanation:** _From official docs: [reference](https://nodejs.org/dist/latest-v13.x/docs/api/buffer.html#buffer_class_method_buffer_allocunsafe_size) +**Explanation:** From official docs: [reference](https://nodejs.org/dist/latest-v13.x/docs/api/buffer.html#buffer_class_method_buffer_allocunsafe_size) #### Q4. Which of the following modules is NOT a built-in module in Node? @@ -34,7 +34,7 @@ - [ ] dgram - [ ] http2 -**Explanation:** _From flaviocopes docs: [reference](https://flaviocopes.com/node-core-modules/) +**Explanation:** From flaviocopes docs: [reference](https://flaviocopes.com/node-core-modules/) #### Q5. Which fs module method can be used to read the content of a file without buffering it in memory? @@ -53,7 +53,7 @@ To minimize memory costs, when possible prefer streaming via fs.createReadStream - [ ] resolve4 - [ ] reverse -**Explanation:** _From official docs: [reference](https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback) +**Explanation:** From official docs: [reference](https://nodejs.org/api/dns.html#dns_dns_lookup_hostname_options_callback) #### Q7. How do you check that a value is a date object in Node? @@ -62,7 +62,7 @@ To minimize memory costs, when possible prefer streaming via fs.createReadStream - [ ] console.isDate(value) - [ ] util.date(value) -**Explanation:** _From official docs: [reference](https://nodejs.org/api/util.html#util_util_types_isdate_value) +**Explanation:** From official docs: [reference](https://nodejs.org/api/util.html#util_util_types_isdate_value) #### Q8. Can you create an https web server with Node.js? @@ -71,7 +71,7 @@ To minimize memory costs, when possible prefer streaming via fs.createReadStream - [ ] yes, through the path module - [ ] yes, with the http module -**Explanation:** _From official docs: [reference](https://nodejs.dev/learn/making-http-requests-with-nodejs) +**Explanation:** From official docs: [reference](https://nodejs.dev/learn/making-http-requests-with-nodejs) #### Q9. What is the Api that is designed to insulate Addons from changes in the underlying JavaScript engine? @@ -80,7 +80,7 @@ To minimize memory costs, when possible prefer streaming via fs.createReadStream - [x] N-API - [ ] X-API -**Explanation:** _From official docs: [reference](https://nodejs.org/api/n-api.html#n_api_node_api) +**Explanation:** From official docs: [reference](https://nodejs.org/api/n-api.html#n_api_node_api) #### Q10. Which CLI option can you use to debug a node script in Chrome DevTools? @@ -89,7 +89,7 @@ To minimize memory costs, when possible prefer streaming via fs.createReadStream - [ ] --chrome - [ ] --debug -**Explanation:** _From official docs: [reference](https://nodejs.org/en/docs/guides/debugging-getting-started/) +**Explanation:** From official docs: [reference](https://nodejs.org/en/docs/guides/debugging-getting-started/) #### Q11. How can you count the number of logical CPUs on the machine that is running Node? @@ -98,7 +98,7 @@ To minimize memory costs, when possible prefer streaming via fs.createReadStream - [ ] node -p "process.os.cpus" - [x] node -p "os.cpus().length" -**Explanation:** _From coderrocketfuel docs: [reference](https://coderrocketfuel.com/article/get-the-number-of-system-cpu-cores-using-node-js) +**Explanation:** From coderrocketfuel docs: [reference](https://coderrocketfuel.com/article/get-the-number-of-system-cpu-cores-using-node-js) #### Q12. Which of the following is a method on the console object? @@ -107,7 +107,7 @@ To minimize memory costs, when possible prefer streaming via fs.createReadStream - [x] time - [ ] print -**Explanation:** _From official docs: [reference](https://nodejs.org/api/console.html) +**Explanation:** From official docs: [reference](https://nodejs.org/api/console.html) #### Q13. Which object is used to manage the cache of required modules? @@ -116,7 +116,7 @@ To minimize memory costs, when possible prefer streaming via fs.createReadStream - [ ] process.cache - [x] require.cache -**Explanation:** _From official docs: [reference](https://nodejs.org/api/modules.html#modules_require_cache) +**Explanation:** From official docs: [reference](https://nodejs.org/api/modules.html#modules_require_cache) #### Q14. What is the command to silence all process warnings? @@ -125,7 +125,7 @@ To minimize memory costs, when possible prefer streaming via fs.createReadStream - [ ] node -trace-warnings - [ ] node index.js --no-warnings -**Explanation:** _From official docs: [reference](https://nodejs.org/api/cli.html#cli_no_warnings) +**Explanation:** From official docs: [reference](https://nodejs.org/api/cli.html#cli_no_warnings) #### Q15. How can you use the promise API with a callback-based function such as child_process.exec? @@ -134,7 +134,7 @@ To minimize memory costs, when possible prefer streaming via fs.createReadStream - [x] util.promisify(child_process.exec) - [ ] new Promise(child_process.exec) -**Explanation:** _From official docs: [reference](https://nodejs.org/api/child_process.html) +**Explanation:** From official docs: [reference](https://nodejs.org/api/child_process.html) #### Q16. Which of the following is NOT a Node repl command? @@ -143,7 +143,7 @@ To minimize memory costs, when possible prefer streaming via fs.createReadStream - [ ] .editor - [ ] .save -**Explanation:** _From official docs: [reference](https://nodejs.org/api/repl.html#repl_commands_and_special_keys) +**Explanation:** From official docs: [reference](https://nodejs.org/api/repl.html#repl_commands_and_special_keys) #### Q17. Which statement is true when you run the code shown below? @@ -154,7 +154,7 @@ To minimize memory costs, when possible prefer streaming via fs.createReadStream - [x] The forked process will have its own VM instance. - [ ] The forked process shares the same VM thread with the parent process. -**Explanation:** _From official docs: [reference](https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options) +**Explanation:** From official docs: [reference](https://nodejs.org/api/child_process.html#child_process_child_process_fork_modulepath_args_options) #### Q18. If EventEmitter is in scope, which of the following lines of code will have an event emitter emitting a change event?