Front-end Development

Q1. Which image matches the flex layout defined in this style rule?

.container {
  display: flex;

.container div:last-child {
  margin-left: auto;

Q2. Variables declared with the let keyword have what type of scope?

Q3. Why would you surround a piece of text with <h1></h1> tags?

Q4. When might an empty alt attribute be the correct value?

Q5. Which attribute must have a unique value each time it is used in an HTML document?

Q6. Which CSS property will not trigger layout recalculation?

Q7. What will be the value of selected?

let pocket = ['turnip', 'stone', 'log', 'apple'];
let selected = pocket[1];

Q8. What does the === comparison operator do?

Q9. 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';

Q10. What is the <label> element used for?

Q11. The browser finds some CSS that it does not understand. What is likely happen?

Q12. In this code, what is the term for the h1?

h1 {
  color: red;
  font-size: 5em;

Q13. Which HTML will result in text being highlighted in yellow?

.highlight {
  background-color: yellow;

Q14. Which choice is not a value of the type attribute of the <input> element?

Q15. You have used dispaly: none in your stylesheet. Which users will be able to see or hear this content?

Q16. Which choice is not part of CSS box model

Q17. Which part of the URL specifies the domain name

Q18. Which HTML element is not considered a landmark element?

Q19. Which statement is true when an HTML tag has been deprecated?

Q20. How does the rem unit represent a font size?

Q21. Which HTML element represents either a scalar value within a known range a fractional value?

Q22. What is Webpack primarily used for?

Q23. How many columns will there be, given this code?

.container {
  width: 600px;
  column-width: 200px;
  column-gap: 50px;

Q24. Which style will change the color of the text?


<cite>Noam Chomsky</cite>
cite {
  text-color: cyan;
cite {
  font-color: cyan;
cite {
  color: cyan;
cite {
  text: cyan;

Q25. You find this code in a stylesheet. What is it being used for?

.cf::after {
  content: '';
  display: block;
  clear: both;

Q26. What is the correct way to initialize an array of galaxies in JavaScript?

Q27. Which description correctly describes the initial values of flex items if the only thing you have done is apply display: flex to their parent?

Q28. 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/

Q29. A video on your webpage does not display and the console shows an error about mixed content. What is happening?

Q30. What will this loop print?

      let max = 3;
      for (i = 0; i > max; i++) {
        document.write("skrt ");

Q31. 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?

Q32. Which choice is a correct use of the parseInt() function in Javascript that parses a string and return an integer?

Q33. How can you rewrite this function using arrow function syntax?

Q34. Lighthouse is a tool for auditing your website. Which choice is not a category of report offered by Lighthouse?

Q35. In the context of this code, how would you describe user?

const user = {
  given_name: 'Joe',
  family_name: 'Bloggs',
  age: 40,
<link rel="preconnect" href="">

Reference (

Q37. Which choice is not a render blocking resource?

Reference (blog.logrocket)

Q38. Which choice does not provide information on browser support for a particular CSS property?

Q39. 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?

Q40. what does the CSS selector a[href$=”org”] select?

#### Q41. Which choice is not of invoking strict mode in JavaScript?