FREE Front-End Development Sample Questions and Answers

0%

A video on your website does not play, and the console reports a mixed content issue. What is occurring?

Correct!
Wrong!

Explanation:
When a website is loaded over HTTPS, all resources, including videos, must also be loaded securely via HTTPS. If a video on the website is loaded via HTTP, the browser will block it due to security concerns.

Which option correctly uses JavaScript’s parseInt() method to return an integer after parsing a string?

Correct!
Wrong!

Explanation:
The parseInt() method in JavaScript is used to parse a string and return an integer.

What purpose does the label> element serve?

Correct!
Wrong!

Explanation:
The

How do you properly initialize an array of galaxies using JavaScript?

Correct!
Wrong!

You’ve used the display: none property in your CSS. Who will be able to view or listen to this content?

Correct!
Wrong!

Explanation:
When the display: none property is used in CSS, the selected element is removed from the visual collection on the webpage and hidden from view. This means the content will not be visible or accessible to any users, including those using assistive technologies such as screen readers.

Which CSS property does not cause the layout to be recalculated?

Correct!
Wrong!

Explanation:
While changing the opacity property will not trigger a layout recalculation, it can still trigger repaints and compositing calculations which can impact performance.

How many columns will there be if this code is followed?
.container {
width: 600px;
column-width: 20px;
column-gap: 50px;

Correct!
Wrong!

Premium Tests $49/mo
FREE June-2024