Linked in quiz

LinkedIn Front end development quiz

LinkedIn Front end development quiz
# Which image matches the flex layout defined in this style rule? ```css .container { display: flex; } .container div:last-child { margin-left: auto; } ``` - [ ] ![A](images/Q1-A.jpg) - [x] ![B](images/Q1-B.jpg) - [ ] ![C](images/Q1-C.jpg) - [ ] ![D](images/Q1-D.jpg) # Variables declared with the let keyword have what type of scope? - [ ] function scope - [x] block scope - [ ] inline scope - [ ] global scope # Why would you surround a piece of text with `

` tags? - [x] to indicate that this text is the main heading on the page - [ ] to make the text bold - [ ] to ensure that search engines treat the keywords as being important for this page - [ ] to demonstrate to screen readers that this text is important # When might an empty alt attribute be the correct value? - [ ] when you cannot think of useful alt text - [ ] when you don't think it would be interesting to someone who cannot see it - [ ] when the image has come from a CMS - [x] when the image is purely decorative # Which attribute must have a unique value each time it is used in an HTML document? - [ ] title - [ ] class - [ ] style - [x] id # Which CSS property will not trigger layout recalculation? - [ ] top - [x] opacity - [ ] width - [ ] height # What will be the value of selected? ```javascript let pocket = ['turnip', 'stone', 'log', 'apple']; let selected = pocket[1]; ``` - [ ] log - [ ] apple - [x] stone - [ ] turnip # What does the `===` comparison operator do? - [ ] It sets one variable equal to another in both value and type - [ ] It tests for equality of type only - [ ] It tests for equality of value only - [x] It tests for equality of value and type # In the following code, the variable `fruit` has been assigned a value of apple. How would you change the value to plum? ```javascript let fruit = 'apple'; ``` - [ ] `let fruit = 'plum'` - [ ] `var fruit = 'plum'` - [ ] `const fruit = 'plum'` - [x] `fruit = 'plum'` # What is the `

Join Our Newsletter

Join our newsletter to stay in the loop for new contents.