Front-End Development LinkedIn Skill Assessment Answer 2022

Rate this post

We see Front-End Development LinkedIn Skill Assessment Answers. This assessment test consists 15-20 MCQs to demonstrate your knowledge in your selected skills. MCQs comes from different topics – Browser Management, CSS Styles and Layout, Frameworks, HTML Fundamentals, JavaScript Coding.

Table of Contents

Front-End Development LinkedIn Skill Assessment :-

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

.container {
  display: flex;
}

.container div:last-child {
  margin-left: auto;
}
  1. A
  2. ✔️
  3. C
  4. D

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

  1. function scope
  2. block scope✔️
  3. inline scope
  4. global scope

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

  1. to indicate that this text is the main heading on the pag✔️
  2. to make the text bold
  3. to ensure that search engines treat the keywords as being important for this page
  4. to demonstrate to screen readers that this text is important

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

  1. when you cannot think of useful alt text
  2. when you don’t think it would be interesting to someone who cannot see it
  3. when the image has come from a CMS
  4. when the image is purely decorative✔️

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

  1. title
  2. class
  3. style
  4. id✔️

Q6. Which CSS property will not trigger layout recalculation?

  1. top
  2. opacity✔️
  3. width
  4. height

Q7. What will be the value of selected?

let pocket = ['turnip', 'stone', 'log', 'apple'];
let selected = pocket[1];
  1. log
  2. apple
  3. stone✔️
  4. turnip

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

  1. It sets one variable equal to another in both value and type
  2. It tests for equality of type only
  3. It tests for equality of value only
  4. It tests for equality of value and type✔️

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';
  1. let fruit = 'plum'
  2. var fruit = 'plum'
  3. const fruit = 'plum'
  4. fruit = 'plum'✔️

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

  1. to identify the difference parts of a figure
  2. to explain what needs to be entered into a form field✔️
  3. as a caption for images
  4. as a heading for tables

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

  1. The page will not display
  2. An error message will be displayed
  3. The browser will not load the stylesheet
  4. The browser will ignore the unknown CSS✔️

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

h1 {
  color: red;
  font-size: 5em;
}
  1. selector✔️
  2. combinator
  3. declarator
  4. markup

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

.highlight {
  background-color: yellow;
}
  1. <span class="highlight">#BLM</span>✔️
  2. <span style="highlight">#BLM</span>
  3. <highlight">#BLM</span>
  4. <div id="highlight">#BLM</span>

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

  1. range
  2. address✔️
  3. date
  4. password

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

  1. all users
  2. users who can see the content on screen
  3. no users✔️
  4. screen reader users

Q16. Which choice is not part of CSS box model?

  1. margin
  2. border
  3. padding
  4. paragraph✔️

Q17. Which part of the URL https://app.uniswap.org/pool specifies the domain name

  1. https
  2. org
  3. uniswap.org✔️
  4. app.uniswap

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

  1. <form>
  2. <ul>✔️
  3. <main>
  4. <nav>

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

  1. It employs code that can be viewed only on a desktop computer
  2. It is obsolete and is not recommended for use in marking web content✔️
  3. It employs code that will require users to update their browsers
  4. It employs incorrect syntax that will cause the browser to crash

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

  1. Font sizes are expressed relative to the font size of the containing div element
  2. Font sizes are expressed relative to the font size of the parent elements
  3. Font sizes are relative to the base font size of the operating system.
  4. Font sizes are relative to the root em unit used in the HTML element.✔️

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

  1. <meter>✔️
  2. <range>
  3. <datalist>
  4. <optgroup>

Q22. What is Webpack primarily used for?

  1. sharing JavaScript code with other people
  2. making JavaScript-reliant sites accessible to users who do not have JavaScript turned on
  3. bundling individual JavaScript files for use in your website✔️
  4. source control

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

.container {
  width: 600px;
  column-width: 200px;
  column-gap: 50px;
}
  1. one
  2. three
  3. four
  4. two✔️

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

A

https://googleads.g.doubleclick.net/pagead/ads?adsid=ChEIgJa0jwYQnv342pOurYLgARJFAG3BMBiPJeNWF1cO3Hx6PflvafdRgqVU18AnhzR0A4RN0L-tIW_Gmk4fMg4SuwVCyPxO_sqsb3lXIzKBo3pYZGiM1FjA&jar=2022-01-24-05&client=ca-pub-7231089257748111&format=751×250&w=751&h=250&ptt=12&adk=3894737339&output=html&bc=7&to=ampa&pv=1&wgl=1&asnt=0-15277863531746198603&dff=%22Averia%20Serif%20Libre%22%2C%20display&prev_fmts=1536×96%2C751x250%2C287x250%2C287x250&brdim=0%2C0%2C0%2C0%2C1536%2C0%2C1536%2C824%2C1536%2C754&ifi=5&pfx=0&pwprc=5938549572&adf=1367876903&nhd=0&adx=180&ady=7069&oid=2&is_amp=5&amp_v=2201071715000&d_imp=1&c=41324007722&ga_cid=amp-41hXWY3JtdxK2FBt4vOTtw&ga_hid=7722&dt=1643003711682&biw=1536&bih=754&u_aw=1536&u_ah=824&u_cd=24&u_w=1536&u_h=864&u_tz=330&u_his=2&vis=1&scr_x=0&scr_y=5165&url=https%3A%2F%2Ftotheinnovation.com%2Ffront-end-development-linkedin-skill-assessment-answer%2F&ref=https%3A%2F%2Fwww.google.com%2F&bdt=16506&uap=Windows&uapv=10.0.0&uaa=x86&uafv=97.0.4692.99&uab=64&dtd=8&__amp_source_origin=https%3A%2F%2Ftotheinnovation.com

<cite>Noam Chomsky</cite>
  1. A
cite {
  text-color: cyan;
}
  1. B
cite {
  font-color: cyan;
}
  1. C✔️
cite {
  color: cyan;
}
  1. D
cite {
  text: cyan;
}

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

.cf::after {
  content: '';
  display: block;
  clear: both;
}
  1. inserting content that cannot be seen by screen readers
  2. fixing an Internet Explorer 11 bug
  3. clearing floats in float-based layouts✔️
  4. creating a new block formatting context

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

  1. String[] galaxies = new Array("Milky Way", "Whirlpool", "Andromeda");
  2. let galaxies = {Milky Way, Whirlpool, Andromeda};
  3. galaxies = ["Milky Way", "Whirlpool", "Andromeda"];✔️
  4. var galaxies = {"Milky Way", "Whirlpool", "Andromeda"};

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?

  1. Items display in a row, lined up at the start, and do not stretch to fill the container✔️
  2. Items display in a column, lined up at the start, and do not stretch to fill the container
  3. Items stay in a column until you add some flex properties.
  4. Items display in a row, lined up at the start, and stretch to fill the container

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/

  1. flex: 1 0 0;
  2. flex: initial;
  3. flex: 1 1 auto;✔️
  4. flex: 1 0 auto;

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

  1. The webapge is using a DOCTYPE, which renders it incapable of displayed video in addition to other web content.
  2. Your browser does not support HTML5 video.
  3. The video is from a source that cannot be displayed in your location for legal reasons.
  4. The page is loaded via HTTPS, but the video is being served insecurely as HTTP and the browser is blocking it.✔️

Q30. What will this loop print?

let max = 3;
for (i = 0; i > max; i++) {
document.write("skrt ");
  }
  1. skrt skrt skrt
  2. skrt skrt
  3. skrt skrt skrt skrt
  4. nothing✔️

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?

  1. < img src=”image.jpg”>
  2. < a href=”images/image.jpg”></a>
  3. < img src=”images/image.jpg”>✔️
  4. < img href=”image.jpg”>

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

  1. parseInt(“six”);
  2. parse_int(‘6’);
  3. parseInt(“6”);✔️
  4. parseint(“6”);

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

  1. let product => (x,y) { <br /> x * y; <br />}
  2. let product = (x,y) => x*y;✔️
  3. let product => x*y;
  4. let product = (x,y) -> x*y;

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

  1. performance
  2. UX design✔️
  3. accessibility
  4. SEO

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

const user = {
  given_name: 'Joe',
  family_name: 'Bloggs',
  age: 40,
}
  1. function
  2. array
  3. variable
  4. object✔️

Q36. A webpage has rel="preconnect" added to a link resource. What will this do?

<link rel="preconnect" href="https://example.com">
  1. It will tell the browser that this link is a site belonging to the current domain.
  2. It will do nothing a because this is a deprecated attribute that browsers do not support.
  3. It will tell the browser that a connection will be made to another origin and to start getting ready as soon as possible.✔️
  4. It will tell the browser that a resource is needed, and that it should start getting fetched as soon as possible.

Reference (web.dev)

Q37. Which choice is not a render blocking resource?

  1. images✔️
  2. HTML
  3. CSS
  4. JavaScript

Reference (blog.logrocket)

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

  1. the “Can I Use” website
  2. the Web Platform Tests Suite✔️
  3. the CSS specification
  4. MDN property pages

Web platform tests site

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?

  1. object-fit: contain
  2. object-fit: stretch
  3. object-fit: all
  4. object-fit: cover✔️

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

  1. all <a> tags whose href attribute begins with “org”
  2. all <a> tags whose href attribute equals “org”
  3. all <a> tags whose href attribute ends with “org”✔️
  4. all <a> tags whose href attribute contains “org”

Q41. Which choice <em>is not</em> of invoking strict mode in JavaScript?

  1. it eliminates some JavaScript silent errors by changing them to throw errors.
  2. it prohibits some syntax likely to be defined in future versions of ECMAScript.
  3. it forces the writing of valid HTML and CSS.✔️
  4. it fixes mistakes that make it difficult for JavaScript engines to perform optimizations.

MDN docs

Q42. In normal flow, some elements display as block elements default and others inline. which choice contains only block-level by default elements?

  1. ul, li, a
  2. p, b, h3
  3. div, p, em
  4. div, main, h1✔️

Q43. Which line would you add to this code to add “Cosmos” to the list of currencies using JavaScript?

var currencies = ['Bitcoin', 'Ethereum'];

/* Missing line */
console.log(currencies);
  1. currencies.push("Cosmos");✔️
  2. Array.append("Cosmos", currencies);
  3. currencies.add("Cosmos");
  4. currencies(2) = "Cosmos";

Q44. How would you change this code to make Vanilla selected by default?

<input type="radio" value="strawberry">Strawberry
<input type="radio" value="vanilla">Vanilla
<input type="radio" value="chocolate">Chocolate
  1. <input type="radio" value="vanilla" checked>✔️
  2. <input type="radio" value="vanilla" check>
  3. <input type="radio" value="vanilla" selected>
  4. <input type="radio" value="vanilla" on>

Q45. _ 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 <html> element (or its nearest positioned ancestor element)?

  1. Sticky positioning
  2. Absolute positioning✔️
  3. Relative positioning
  4. Fixed positioning

Source: W3Schools

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

  1. .box { overflow: scroll; }
  2. .box { overflow: scroll-x; }
  3. .box { overflow: auto; }✔️
  4. .box { overflow: none; }

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

  1. every()
  2. map()
  3. forEach()
  4. filter()✔️

Q48. The image below has float: left applied. Text wraps the float on the right and bottom. How would you force the second paragraph to start underneath the float, leaving a gap after the preceding paragraph?

CSS clear
  1. Apply float: left to the second paragraph.
  2. Apply clear: right to the floated item.
  3. Apply clear: left to the second paragraph.✔️
  4. Apply clear: left to the floated item.

Leave a Comment

three × 3 =

CRICKET LIVE STREAMING