Frontend Development Online Assessment Questions & Answers
40 questions for the online assessment stage — 16 easy, 23 medium, 1 hard.
About the online assessment round
Most companies start with an online test: aptitude and reasoning, a few MCQs on core Frontend Development concepts, and one or two short hands-on tasks. It filters a large number of applicants, so speed and accuracy both count.
Tips for the online assessment round
- Practise under a timer: about one minute per MCQ and 15-20 minutes per hands-on task.
- Read every option before answering; tests often include two nearly correct choices.
- Use a stable internet connection, keep your camera on and avoid switching tabs in proctored tests.
- Attempt the questions you are sure about first, then return to the harder ones.
What are higher-order functions and currying?
Show answer
How does destructuring with default values work?
Show answer
After a release, the app shows a blank page in some older browsers. What could be wrong?
Show answer
What do caret and tilde mean in package versions, and why commit the lockfile?
Show answer
What is the difference between local UI state, global state and server state?
Show answer
Write a Vitest unit test for an INR price formatter.
Show answer
How can you communicate between multiple tabs of the same site?
Show answer
Create a type where all fields are optional except id.
Show answer
How does the History API enable client-side routing?
Show answer
Move a heavy calculation into a Web Worker.
Show answer
How do browser permission APIs like Geolocation and Notifications work?
Show answer
Write a minimal observable store in plain JavaScript.
Show answer
When should you use Map and Set instead of plain objects and arrays?
Show answer
Why does await inside forEach not wait for each item?
Show answer
What are WeakMap and WeakRef, and when are they useful?
Show answer
What are declaration files (.d.ts) and when do you write them?
Show answer
Compare Promise.all, Promise.allSettled, Promise.race and Promise.any.
Show answer
Product images on a listing page load slowly. What quick fixes would you apply?
Show answer
Cancel an older search request when the user types again using AbortController.
Show answer
What are Core Web Vitals and their good thresholds?
Show answer
Configure a path alias and an API proxy in Vite.
Show answer
What is transpilation and how does browserslist control it?
Show answer
What is the difference between unit, integration and end-to-end tests?
Show answer
Does native CSS support nesting now?
Show answer
Which tsconfig options are important for a strict codebase?
Show answer
How do private class fields and getters work in modern JavaScript?
Show answer
What is the difference between lab data and field data in performance?
Show answer
What is visual regression testing?
Show answer
Implement a throttle function.
Show answer
Explain the utility types Partial, Pick, Omit and Record.
Show answer
How does Tailwind CSS keep the final CSS file small?
Show answer
Set up ESLint with the flat config for a TypeScript project.
Show answer
How do HTTP caching headers work for frontend assets?
Show answer
Write a type-safe getProperty function using generics and keyof.
Show answer
What is TypeScript and why do teams adopt it?
Show answer
Collect Core Web Vitals from real users with the web-vitals library.
Show answer
Create a new Vite project with TypeScript and run it.
Show answer
Write a custom type guard to check if a value is a User.
Show answer
How do you choose the right image format and size?
Show answer
Frequently asked questions
What happens in the Frontend Development online assessment round?
Most companies start with an online test: aptitude and reasoning, a few MCQs on core Frontend Development concepts, and one or two short hands-on tasks. It filters a large number of applicants, so speed and accuracy both count.
How do I clear the online assessment round?
Practise under a timer: about one minute per MCQ and 15-20 minutes per hands-on task. Read every option before answering; tests often include two nearly correct choices. Use a stable internet connection, keep your camera on and avoid switching tabs in proctored tests.
Which round comes next?
A typical order is online assessment, telephonic screening, one or two technical rounds, a managerial round and HR. Use the other round pages to practise each stage.