1. Variables declared with the let keyword have what type of scope?
2. Why would you surround a piece of text with
3. When might an empty alt attribute be the correct value?
4. Which attribute must have a unique value each time it is used in an HTML document?
5. Which CSS property will not trigger layout recalculation?
6. What will be the value of selected? let pocket = ['turnip', 'stone', 'log', 'apple']; Let selected = pocket[1];
7. What does the === comparison operator do?
8. In the following code, the variable fruit has been assigned a value of apple. How would you change the value to plum? let fruit = 'apple';
9. What is the element used for?
10. The browser finds some CSS that it does not understand. What is likely happen?
11. In this code, what is the term for the h1? h1 { color: red; font-size: 5em; }
12. Which HTML will result in text being highlighted in yellow? .highlight {background-color: yellow;}
13. Which choice is not a value of the type attribute of the element?
14. You have used display: none in your stylesheet. Which users will be able to see or hear this content?
15. Which choice is not part of CSS box model
16. Which part of the URL https://app.uniswap.org/pool specifies the domain name
17. Which HTML element is not considered a landmark element?
18. Which statement is true when an HTML tag has been deprecated?
19. How does the rem unit represent a font size?
20. Which HTML element represents either a scalar value within a known range OR a fractional value?
21. What is Webpack primarily used for?
22. How many columns will there be, given this code? .container { width: 600px; Column-width: 200px; column-gap: 50px;}
23. You find this code in a stylesheet. What is it being used for? .cf::after { content: '';
24. What is the correct way to initialize an array of galaxies in JavaScript?
25. Which description correctly describes the initial values of flex items if the only thing you have done is apply display: flex to their parent?
26. Which line of code, if applied to all flex items in a flex container, would cause each flex item to take up an equal share of the total width of the container? For example, if there are four items, they would get 25% of each/
27. A video on your webpage does not display and the console shows an error about mixed content. What is happening?
28. What will this loop print? let max = 3; for (i = 0; i > max; i++) {document.write("skrt "); }
29. You have placed an image in a directory named images and want to reference it from a page located in the root of your site. Which choice would correctly display the image on the page?
30. Which choice is a correct use of the parseInt() function in Javascript that parses a string and return an integer?
31. How can you rewrite this function using arrow function syntax?
32. Lighthouse is a tool for auditing your website. Which choice is not a category of report offered by Lighthouse?
33. A webpage has rel="preconnect" added to a link resource. What will this do?
34. Which choice is not a render blocking resource?
35. Which choice does not provide information on browser support for a particular CSS property?
36. You have a set of images that are slightly different sizes and aspect ratios. You don't mind if you crop off some of the image, but you want each image to completely fill a square box without being distorted. Which property and value would achieve this?
37. What does the CSS selector a[href$="org"] select?
38. Which choice is not of invoking strict mode in JavaScript?
39. In normal flow, some elements display as block elements default and others inline. which choice contains only block-level by default elements?**
40. _ moves an element completely out of the page's normal layout flow, like it is sitting on its own separate layer. From there, you can fix it in a position relative to the edges of the page's element (or its nearest positioned ancestor element)?
41. You have created a box that has a height set with CSS. Which line of CSS would add scroll bars if the content is taller than the box, but leave no visible scroll bars if the content fits into the box?
42. Which array method should you apply to run a function for every item within an array, returning an array of all items for which the function is true?
43. You want to create striped table rows using CSS without adding a class to any element. Which CSS would correctly apply the background color to every odd row in your table?
44. You are designing a site and creating a navigation bar linking to the main sections. Which HTML element should you use to indicate that this is the main navigation?
45. You discover that CSS is being loaded on a website using the following code. Why might a web developer have done this?
46. The flex property is often applied to flex items with a value of 1. Using flex: 1 is a shorthand - what does it unpack to?
47. What does the term "tree shaking" mean with regard to JavaScript performance?
48. What is WebP?
49. Your website uses CSS Grid Layout extensively, and a visitor who navigates using the keyboard tells you that they seem to jump erratically all over the screen when navigating. What is the most likely problem?
50. What is the definition of the phrase “Time to Interactive”?
51. What is yarn?
52. What is the name of the event that occurs when the mouse pointer hovers over an element?
53. What is meant by the term "polyfill" when used in web development?
54. Which choice is not a JavaScript framework?
55. What does setting aria-live=polite on a live region achieve?
56. Review the CSS below. What color would you expect the background color of the element with a class of .box to be? .box { background-color: blue; Background: url(images/star.png) no-repeat left top; }
57. Which CSS property and value would correctly remove the bullets from a list item?
58. CSS Logical Properties and Values now have wide-ranging support in browsers. If you wanted to use the logical version of width, which property name would you choose?
59. Which color value will create a background color that is semitransparent?
60. In a grid layout, which property will create gaps between the rows in the grid?
61. You are creating a responsive design, but when you view your site on a smaller screen, you notice that images are causing a horizontal scroll bar. How can you solve this problem without stretching any images out of shape?
62. The CSS box model describes how the parts of a CSS box fit together and the size of the box. What is the actual width of the following box's visible part under the standard box model? box {width: 200px; padding: 10px; margin: 0 15px; border: 2px 5px;}