Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up

Front-end interviews cover far more than framework syntax. Expect questions on the box model and specificity, when to use Flexbox versus Grid, positioning and container queries, the critical rendering path and Core Web Vitals, and the difference between server-side rendering, static generation and client-side rendering. Accessibility and CORS come up regularly, and strong candidates are expected to reason about performance with measurements rather than assumptions. The questions below cover the whole stack a front-end engineer owns.

Front end Development MCQ

1.What does the CSS box-sizing: border-box declaration do?

3.In CSS specificity, which selector wins?

4.What does position: sticky do?

6.Which Core Web Vital measures visual stability?

7.What does the defer attribute on a script tag do?

8.Which container query property must be set on an element before its children can be queried?

9.What is the difference between em and rem units?

11.What does the viewport meta tag do?

12.Which of these makes a site accessible to keyboard users?

13.What is the Virtual DOM?

14.Why should array index not be used as a React key in a reorderable list?

15.What is the difference between server-side rendering and static site generation?

16.Which CSS property creates a responsive grid without media queries?

17.What does a CORS error in the browser console mean?

18.Which semantic element should wrap the primary content of a page?

19.What does the loading="lazy" attribute on an img tag do?

20.Which of these is a render-blocking resource by default?

21.What is the purpose of the alt attribute on an image?

22.In CSS, what does the :where() pseudo-class contribute to specificity?

23.Which method removes an element from the normal document flow?

24.What does the sessionStorage API do?

25.Which practice most improves Largest Contentful Paint?

26.What is a CSS custom property?

27.Which HTTP header enables HTTPS enforcement for future visits?

28.What does the flex: 1 shorthand mean?

29.Which technique prevents a flash of invisible text while a web font loads?

30.What is the difference between stopPropagation() and preventDefault()?

31.Which ARIA practice is correct?

32.What is code splitting?

33.Which selector targets an element only when it is the last child of its parent?

34.What does the srcset attribute on an img element provide?

35.What does margin collapsing mean?

36.Which is the correct way to make a wide table responsive without breaking the page layout?

37.What is the purpose of a Content Security Policy?

38.Which JavaScript API efficiently detects when an element enters the viewport?

39.What does the prefers-reduced-motion media query allow you to do?

40.Which of these best describes progressive enhancement?

41.What does tree shaking do in a modern build tool?

Login to manage your account

Please enter a valid email address.
Forgot Password?
Please enter a valid password.
OR

Don't have an account yet? Sign up as