Skip to content

Commit

Permalink
prettier formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Ebazhanov committed Oct 21, 2021
1 parent fccf7c2 commit b2321cf
Show file tree
Hide file tree
Showing 5 changed files with 33 additions and 25 deletions.
18 changes: 13 additions & 5 deletions css/css-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
...;
}
```

- [ ]
Expand All @@ -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"
Expand Down
4 changes: 2 additions & 2 deletions it-operations/it-operations-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion mongodb/mongodb-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -487,7 +487,7 @@

- [ ] index
- [ ] Name
- [x] _id
- [x] `_id`
- [ ] row number

[Reference](https://docs.mongodb.com/manual/reference/operator/aggregation/project/#definition)
2 changes: 1 addition & 1 deletion mysql/mysql-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand Down
32 changes: 16 additions & 16 deletions node.js/node.js-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand All @@ -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?

Expand Down

0 comments on commit b2321cf

Please sign in to comment.