Skip to content

Commit

Permalink
add questions and answers (#3005)
Browse files Browse the repository at this point in the history
* add new questions and answers to the bottom of the document from 1/22/2022 test attempt

* add answer for Q.22, add 2 questions at the end of doc, fixed styling of last questions to match rest of document

* add answers and questions

* add questions and answers

* Add questions and answers

Co-authored-by: Zhenja <evg.bazhanov@yahoo.com>
  • Loading branch information
deshayk and Ebazhanov authored Feb 4, 2022
1 parent 0c5dea3 commit b0be9dd
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 2 deletions.
16 changes: 14 additions & 2 deletions javascript/javascript-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,19 @@ for (let value of cipherText) {
[Reference MDN JavaScript Array entries](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries)
[Reference MDN JavaScript Remainder/Modulo](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Remainder)
#### Q116. Which Pokemon will be logged to the console?
#### Q116. What will this code log to the console?
const foo = [1, 2, 3];
const [n] = foo;
console.log(n);
- [ ] undefined
- [ ] 1
- [ ] NaN
- [ ] Nothing. This is not proper JavaScript syntax and will throw an error.
#### Q117. Which Pokemon will be logged to the console?
var pokedex = ["Snorlax", "Jigglypuff", "Charmander", "Squirtle"];
pokedex.pop();
Expand All @@ -1605,7 +1617,7 @@ console.log(pokedex.pop());
`The pop() method removes the last element from an array and returns that element. This method changes the length of the array.` [(Source)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/pop)
#### Q117. Which snippet allows the `acresOfRainForest` variable to increase?
#### Q118. Which snippet allows the `acresOfRainForest` variable to increase?
```js
let conservation = true;
Expand Down
14 changes: 14 additions & 0 deletions wordpress/wordpress-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -678,3 +678,17 @@ endif;
- [ ] Object

[Reference](https://www.w3schools.com/js/js_datatypes.asp)

#### Q79. You would use a post instead of a page when the content is _____.

- [ ] for a top-level menu item
- [ ] nested (has a parent/child relationship with another piece of content)
- [x] when the content is part of a blog.
- [ ] evergreen

#### Q80. The WordPress block editor contains a number of default blocks, including blocks for paragraphs, images, quotes, and shortcode. Blocks are grouped into categories to help users browse and discover them. Which is not a category provided by WordPress core?

- [ ] formatting
- [ ] widgets
- [ ] layout
- [x] shortcodes
7 changes: 7 additions & 0 deletions xml/xml-quiz.md
Original file line number Diff line number Diff line change
Expand Up @@ -572,3 +572,10 @@ car#year {
- [x] `<роwer>`

[Reference best practices for xml attributes](https://www.geeksforgeeks.org/xml-attributes/)

### Q43. What does the Document Type Definition (DTD) define?

- [ ] structure
- [ ] entities
- [x] elements
- [ ] attributes

0 comments on commit b0be9dd

Please sign in to comment.