UI Developer

200+ UI Developer Interview Questions and Answers

Updated 5 Jul 2025
search-icon

Q. Write JavaScript code to dynamically create 10 checkboxes. Display the count of checked checkboxes below them, updating the count in real-time as checkboxes are checked or unchecked.

Ans.

Create 10 checkboxes in JavaScript and display the count of checked checkboxes below. Update count on unchecking.

  • Use JavaScript to create checkboxes

  • Add event listener to checkboxes to track changes

  • Update count of checked checkboxes on change

  • Display count below checkboxes

3d ago

Q. What is Redux? Explain workflow of redux and uses of redux.

Ans.

Redux is a predictable state container for JavaScript apps.

  • Redux is a state management library for JavaScript applications.

  • It helps in managing the state of an application in a predictable way.

  • Redux follows a unidirectional data flow architecture.

  • It uses actions, reducers, and a store to manage the state of an application.

  • Redux is commonly used with React to build scalable and maintainable applications.

UI Developer Interview Questions and Answers for Freshers

illustration image

Asked in WinWire

5d ago

Q. What are Call, Apply, and Bind in JavaScript?

Ans.

Call, Apply, and Bind are methods in JavaScript used to manipulate the value of 'this' in a function.

  • Call: Invokes a function with a specified 'this' value and arguments provided individually.

  • Apply: Invokes a function with a specified 'this' value and arguments provided as an array.

  • Bind: Creates a new function with a specified 'this' value and arguments provided as a list.

1d ago

Q. Explain Higher order function and Higher order component?

Ans.

Higher order function takes a function as an argument or returns a function. Higher order component is a function that takes a component and returns a new component.

  • Higher order function is a function that operates on other functions, either by taking them as arguments or by returning them.

  • Higher order component is a function that takes a component and returns a new component with additional functionality.

  • Higher order functions and components are used to create reusable code ...read more

Are these interview questions helpful?
4d ago

Q. What is the difference between a block component and an inline component?

Ans.

Block components take up the full width of their container, while inline components only take up the necessary space.

  • Block components create a new line and take up the full width of their container

  • Inline components only take up the necessary space and do not create a new line

  • Block components are used for larger elements like paragraphs and headings

  • Inline components are used for smaller elements like links and buttons

5d ago

Q. What is meta tag? What is position What promise What is callback What is pseudo element and pseudo class

Ans.

Meta tags are HTML tags that provide metadata about a webpage. Position refers to the placement of an element on a webpage. Promise is a JavaScript object representing the eventual completion or failure of an asynchronous operation. Callback is a function passed as an argument to another function to be executed after a specific event occurs. Pseudo elements and pseudo classes are CSS selectors that allow styling of specific parts of an element.

  • Meta tags provide metadata about...read more

UI Developer Jobs

SAP India Pvt.Ltd logo
UI Developer 3-8 years
SAP India Pvt.Ltd
4.2
Bangalore / Bengaluru
Capgemini Technology Services India Limited logo
UI developer 0-0 years
Capgemini Technology Services India Limited
3.7
Mumbai
Infosys logo
UI Developer with Node js - Pune 5-10 years
Infosys
3.6
Hyderabad / Secunderabad

Asked in iC Consult

3d ago

Q. What are the benefits of Angular versus other modern frontend frameworks?

Ans.

Angular offers two-way data binding, dependency injection, and a robust ecosystem of tools and libraries.

  • Two-way data binding allows for automatic synchronization of data between the model and the view, reducing the need for manual DOM manipulation.

  • Dependency injection simplifies the process of managing dependencies and promotes code reusability.

  • Angular has a large ecosystem of tools and libraries, such as Angular Material for UI components and Angular CLI for project scaffol...read more

4d ago

Q. What is the difference between functional and class-based components?

Ans.

Functional components are stateless and use functional programming concepts, while class-based components are stateful and use object-oriented programming concepts.

  • Functional components are simpler and easier to read and test.

  • Class-based components have access to lifecycle methods and state.

  • Functional components are preferred for simple UI components, while class-based components are preferred for complex UI components.

  • Functional components can be written as arrow functions, ...read more

Share interview questions and help millions of jobseekers 🌟

man-with-laptop
4d ago

Q. How would you display boxes side by side on a desktop screen and one after the other on a mobile screen using media queries?

Ans.

Use CSS media queries to adjust layout for desktop and mobile screens.

  • Use a flexbox or grid layout for desktop to display boxes side by side.

  • Example: .container { display: flex; } for desktop view.

  • For mobile, use media queries to stack boxes vertically.

  • Example: @media (max-width: 768px) { .container { flex-direction: column; } }

  • Ensure to test responsiveness on various screen sizes.

5d ago

Q. What is React and feature of react.

Ans.

React is a JavaScript library for building user interfaces.

  • React allows for building reusable UI components.

  • It uses a virtual DOM for efficient rendering.

  • React can be used for both web and mobile app development.

  • It supports server-side rendering for improved SEO.

  • React is maintained by Facebook and has a large community of developers.

Q. What is the difference between the Figure tag and the Img tag?

Ans.

The figure tag is used to group images and their captions together, while the img tag is used to display a single image.

  • Figure tag is used to group images and their captions together.

  • Img tag is used to display a single image.

  • Figure tag can contain multiple images and text, while img tag is standalone.

  • Figure tag is often used for image galleries or diagrams.

  • Img tag is used for displaying a single image on a webpage.

1d ago

Q. How to render list in react? Also explain difference between state vs prop in react?

Ans.

To render a list in React, use map() function to iterate over an array of data and return a list of components. State is mutable data managed within a component, while props are immutable data passed from parent to child components.

  • To render a list in React, use map() function to iterate over an array of data and return a list of components.

  • Example: const items = ['item1', 'item2', 'item3']; items.map(item =>

  • {item}
  • )

  • State is mutable data managed within a component and can be ...read more

Asked in Accenture

4d ago

Q. What is lazy loading? What is routing and how to implement it? How to implement observables? What is promise? How to achieve asynchronous call in javascript?

Ans.

Lazy loading is a technique to defer loading of non-critical resources until they are needed.

  • Lazy loading improves page load time and performance.

  • It is commonly used for images, videos, and other media files.

  • Lazy loading can be implemented using JavaScript libraries like LazyLoad or by using the Intersection Observer API.

  • Lazy loading can also be implemented in frameworks like Angular and React.

5d ago

Q. What are the webpage optimization techniques? How to check webpage optimization? In lighthouse optimization reports , how to fix issue related render blocking scripts?

Ans.

Webpage optimization techniques include minifying CSS and JS files, optimizing images, using asynchronous loading for scripts, and reducing render-blocking scripts.

  • Minify CSS and JS files to reduce file sizes and improve loading times.

  • Optimize images by compressing them and using the correct file format (e.g. JPEG for photographs, PNG for graphics).

  • Use asynchronous loading for scripts to prevent them from blocking the rendering of the page.

  • Reduce render-blocking scripts by mo...read more

Asked in Infogain

1d ago

Q. What is React and how is it different from Angular and Vue?

Ans.

React is a JavaScript library for building user interfaces. It is different from Angular and Vue in terms of architecture, data binding, and learning curve.

  • React is a library, while Angular and Vue are frameworks.

  • React uses a virtual DOM for better performance, while Angular and Vue use a real DOM.

  • React follows a unidirectional data flow, while Angular and Vue use bidirectional data binding.

  • React has a smaller learning curve compared to Angular, which has a steeper learning c...read more

Asked in Edureka

2d ago

Q. Create a dynamic table where you map object key pairs.

Ans.

Creating a dynamic table with object key pair mapping.

  • Create a table element in HTML

  • Loop through the object and create table rows and cells dynamically

  • Use object keys to map to table headers and values to map to table cells

1d ago

Q. What types of hook methods are available in React?

Ans.

React has two types of hook methods: State Hooks and Effect Hooks.

  • State Hooks manage state in functional components.

  • Effect Hooks manage side effects in functional components.

  • useState() is an example of State Hook.

  • useEffect() is an example of Effect Hook.

Asked in ivy

2d ago

Q. What Prototype in JS What is closure in JS What Recursive functions What Constructor functions What hoisting in js Diff btw var,let, const Find the no of occurance of text in string Find the duplicate count of...

read more
Ans.

Prototype in JS refers to the mechanism by which objects in JavaScript inherit properties and methods from other objects.

  • Prototype chain allows objects to inherit properties and methods from other objects

  • Prototype-based inheritance is a key feature of JavaScript

  • Example: Creating a new object using a constructor function and adding methods to its prototype

Asked in BlogHunch

6d ago

Q. What criteria do you use to differentiate between good user experience (UX) and bad user experience (UX)?

Ans.

Good UX is intuitive and satisfying, while bad UX is confusing and frustrating for users.

  • Intuitiveness: Good UX allows users to navigate easily without confusion. For example, a well-structured menu helps users find information quickly.

  • Consistency: Good UX maintains consistent design elements (colors, fonts) across the platform. For instance, using the same button style throughout an app.

  • Feedback: Good UX provides clear feedback for user actions. For example, a loading spinne...read more

Asked in Infogain

2d ago

Q. Do you know how to write tests in React or have any experience with Jest?

Ans.

Yes, I have experience writing tests in React using Jest.

  • I have experience writing unit tests for React components using Jest.

  • I am familiar with testing libraries like Enzyme for React component testing.

  • I understand how to write snapshot tests to ensure UI consistency in React applications.

Asked in Genpact

2d ago

Q. How do you handle performance issues in Angular?

Ans.

Performance issues in Angular can be handled by optimizing code, reducing HTTP requests, and using lazy loading.

  • Optimize code by using trackBy in ngFor loops

  • Reduce HTTP requests by using caching and pagination

  • Use lazy loading to load only necessary components

  • Use AOT compilation to reduce load time

  • Avoid using ngIf with heavy computations

  • Use ChangeDetectionStrategy.OnPush to reduce change detection cycles

Q. what is Sass and why do we use this. benefits of using SASS.

Ans.

Sass is a preprocessor scripting language that is interpreted or compiled into Cascading Style Sheets (CSS).

  • Sass allows for variables, nesting, and mixins, making CSS code more maintainable and DRY.

  • It provides features like inheritance, functions, and loops, which help in writing cleaner and more organized stylesheets.

  • Sass also supports modular and reusable code, improving development efficiency and scalability.

  • By using Sass, developers can easily manage large and complex sty...read more

Asked in Capgemini

4d ago

Q. What is props drilling and higher order component in react. ?

Ans.

Props drilling is passing props through multiple levels of components. Higher order component is a function that takes a component and returns a new component.

  • Props drilling involves passing props from a parent component to a deeply nested child component, which can lead to prop pollution and make the code harder to maintain.

  • Higher order component is a pattern where a function takes a component and returns a new component with additional props or functionality.

  • Example of prop...read more

Q. What is webCompliance rules and webForm 2.0

Ans.

webCompliance rules are guidelines that ensure websites meet legal and regulatory requirements. webForm 2.0 is a web development framework.

  • webCompliance rules are used to ensure websites adhere to accessibility, privacy, and security standards.

  • These rules help websites avoid legal issues and provide a better user experience.

  • Examples of webCompliance rules include WCAG (Web Content Accessibility Guidelines) for accessibility and GDPR (General Data Protection Regulation) for pr...read more

Asked in Splan Labs

2d ago

Q. Var, let difference in js, how do you add class name to element in jquery, some normal output based js questions

Ans.

In jQuery, you can add a class name to an element using the addClass() method.

  • Use the addClass() method in jQuery to add a class name to an element.

  • Syntax: $(selector).addClass(className);

  • Example: $('button').addClass('active');

4d ago

Q. How can you make an image responsive using HTML without CSS or Bootstrap?

Ans.

Use the 'srcset' attribute in the 'img' tag to make images responsive without using CSS or Bootstrap.

  • Use the 'srcset' attribute in the 'img' tag to provide multiple image sources with different resolutions.

  • Specify the 'sizes' attribute to define the layout breakpoints for different screen sizes.

  • Include the 'width' attribute to help the browser determine the correct image size to display.

  • Example: <img src='small.jpg' srcset='medium.jpg 1000w, large.jpg 2000w' sizes='(max-width...read more

Q. Media Objects in Bootstarp, What is Breadcrumb

Ans.

A breadcrumb is a navigation element that shows the user's current location within a website or application.

  • A breadcrumb typically appears horizontally at the top of a page or below the navigation bar.

  • It consists of a series of links, with each link representing a higher-level page or section.

  • The last link in the breadcrumb represents the current page or section and is often not clickable.

  • Breadcrumb navigation helps users understand their location within a website and provide...read more

3d ago

Q. In which scenario Div and span will be used? Difference between == and === in javascript

Ans.

Div is a block-level element for layout, while span is an inline element for styling text.

  • Div is used for grouping larger sections of content, e.g., <div class='container'>...</div>

  • Span is used for styling small portions of text, e.g., <span class='highlight'>text</span>

  • Div elements take up the full width available, while span elements only take up as much width as their content.

  • Div can contain other block elements, while span is typically used within block elements.

5d ago

Q. Write SCSS code to style nested list items, applying a background color to every second element, and use mixins.

Ans.

Use SCSS to apply background color to nested li elements and utilize mixins.

  • Use nesting to target the li elements within a parent element

  • Apply background color to the 2nd li element using the :nth-child() selector

  • Define and use mixins to reuse styles across the codebase

Asked in Frrole

1d ago

Q. How can we reverse a string in JavaScript in one line?

Ans.

The string can be reversed in one line using the split(), reverse(), and join() methods.

  • Use the split() method to convert the string into an array of characters

  • Use the reverse() method to reverse the order of the array elements

  • Use the join() method to convert the reversed array back into a string

1
2
3
4
5
6
7
Next

Interview Experiences of Popular Companies

TCS Logo
3.6
 • 11.1k Interviews
Accenture Logo
3.7
 • 8.7k Interviews
Infosys Logo
3.6
 • 7.9k Interviews
Wipro Logo
3.7
 • 6.1k Interviews
Cognizant Logo
3.7
 • 5.9k Interviews
View all
interview tips and stories logo
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Calculate your in-hand salary

Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary

UI Developer Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
play-icon
play-icon
qr-code
Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+

Reviews

10L+

Interviews

4 Cr+

Salaries

1.5 Cr+

Users

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2025 Info Edge (India) Ltd.

Follow Us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter
Profile Image
Hello, Guest
AmbitionBox Employee Choice Awards 2025
Winners announced!
awards-icon
Contribute to help millions!
Write a review
Write a review
Share interview
Share interview
Contribute salary
Contribute salary
Add office photos
Add office photos
Add office benefits
Add office benefits