Add office photos
Engaged Employer

LTIMindtree

3.8
based on 20.8k Reviews
Filter interviews by

10+ BNY Interview Questions and Answers

Updated 15 Oct 2024
Popular Designations

Q1. how would you validate the form using HTML? How do you validate the phone number with the country code?

Ans.

Form validation using HTML and validating phone number with country code

  • Use HTML5 form validation attributes like 'required', 'pattern', 'minlength', etc.

  • For phone number validation, use 'pattern' attribute with regex for specific country code format

  • Example: <input type='tel' pattern='[0-9]{3}-[0-9]{3}-[0-9]{4}' required>

Add your answer

Q2. What is the difference between CSS and SASS? what is the use of Sass

Ans.

SASS is a preprocessor scripting language that is interpreted into CSS, offering more features and flexibility.

  • SASS is a preprocessor for CSS, allowing for variables, nesting, and mixins to be used in stylesheets.

  • SASS code needs to be compiled into CSS before being used in a web project.

  • SASS helps in writing cleaner and more organized CSS code, making it easier to maintain and update styles.

  • CSS is the styling language used for web development, while SASS is a tool that extend...read more

Add your answer

Q3. tell me the output 1)a = 20; console.log(a); var a; 2)b=10; console.log(b); let b; 3)let a =5; if(a&lt;5){ let b = " a lessthen 5"; }else{ let b = "b is grater then 5"; } console.log(b);

Ans.

The output for the given code snippets will be: 1) 20 2) ReferenceError: Cannot access 'b' before initialization 3) ReferenceError: b is not defined

  • In the first snippet, variable 'a' is declared using 'var' after it is assigned a value, so it logs 20 without any issues.

  • In the second snippet, variable 'b' is declared using 'let' after it is assigned a value, so it throws a ReferenceError as 'b' is accessed before initialization.

  • In the third snippet, variable 'b' is declared us...read more

Add your answer

Q4. what is difference between var let and const give me an explanation on what block scope

Ans.

var, let, and const are used to declare variables in JavaScript. var has function scope, let has block scope, and const is a constant with block scope.

  • var has function scope, meaning it is accessible throughout the function it is declared in.

  • let has block scope, meaning it is only accessible within the block it is declared in.

  • const is similar to let in terms of block scope, but the value cannot be reassigned.

Add your answer
Discover BNY interview dos and don'ts from real experiences

Q5. how api call handle in redux and how can you get and display user name from redux

Ans.

API calls in Redux are typically handled using middleware like Redux Thunk. User name can be retrieved from Redux state and displayed in components.

  • Use Redux Thunk middleware to make API calls in Redux

  • Dispatch actions to update Redux state with API response data

  • Access user name from Redux state in components to display it

Add your answer

Q6. tell me mounting and shallow concept in testing library

Ans.

Mounting is the process of rendering a component into the DOM, while shallow rendering allows testing a component without rendering its children.

  • Mounting is the initial phase of the component lifecycle where the component is rendered into the DOM.

  • Shallow rendering in testing library renders only the component itself, not its children.

  • Shallow rendering is useful for isolating the component being tested and avoiding rendering its entire component tree.

  • Example: In React testing ...read more

Add your answer
Are these interview questions helpful?

Q7. what is redux-toolkit and what difference b/w redux and redux-toolkit

Ans.

Redux Toolkit is the official, recommended way to write Redux logic. It simplifies the process of managing state in React applications.

  • Redux Toolkit provides a set of tools and best practices to streamline Redux development.

  • It includes utilities like createSlice, createReducer, and configureStore to simplify the code and reduce boilerplate.

  • Redux Toolkit also includes built-in Immer integration for writing immutable update logic more easily.

  • It encourages writing Redux code in ...read more

Add your answer

Q8. give a div with text and display center of the page and apply animation using HTML and css

Ans.

Use HTML and CSS to center a div with text and apply animation

  • Create a div element with text inside

  • Apply CSS to center the div on the page using flexbox or margin auto

  • Use CSS animations like keyframes to add animation effects

Add your answer
Share interview questions and help millions of jobseekers 🌟

Q9. which test library you use why it usecase

Ans.

I use Jest for testing React applications due to its simplicity and integration with React ecosystem.

  • Jest is the most popular test library for React applications

  • It comes pre-configured with Create React App and has great support for snapshot testing

  • Jest also has built-in mocking capabilities which make it easy to test components with dependencies

Add your answer

Q10. what is asynchronous and how it works

Ans.

Asynchronous programming allows tasks to run independently of the main program flow, improving performance and responsiveness.

  • Asynchronous code does not block the main thread, allowing other tasks to continue while waiting for a response.

  • Callbacks, promises, and async/await are common ways to handle asynchronous operations in JavaScript.

  • Example: fetching data from an API while the rest of the application continues to run smoothly.

Add your answer

Q11. what are semantic tags and explain

Ans.

Semantic tags are HTML tags that provide meaning to the content they enclose, helping search engines and screen readers understand the structure of a webpage.

  • Semantic tags help improve SEO by providing context to search engines.

  • They also improve accessibility for screen readers by clearly defining the structure of a webpage.

  • Examples of semantic tags include

    ,
    ,
Add your answer

Q12. how can we write responsive for web page

Ans.

Use media queries, flexible grids, and relative units to create a responsive web page.

  • Use media queries to apply different styles based on screen size

  • Create flexible grids using CSS Grid or Flexbox

  • Use relative units like percentages or ems for sizing elements

  • Consider using frameworks like Bootstrap or Material-UI for responsive design

  • Test your design on different devices and screen sizes

Add your answer

Q13. what is hosting and closer

Ans.

Hosting is the process of storing a website or application on a server, while closure is a function that retains access to variables from its parent scope.

  • Hosting involves storing a website or application on a server to make it accessible on the internet.

  • Closure is a function that retains access to variables from its parent scope, even after the parent function has finished executing.

Add your answer

Q14. Alternative way for prop drilling

Ans.

Context API or Redux can be used as alternative ways for prop drilling in React.

  • Use Context API to pass data down the component tree without having to manually pass props at every level.

  • Implement Redux to manage global state and access data from any component without prop drilling.

  • Consider using React's useContext hook with Context API for a simpler way to consume context in functional components.

Add your answer

Q15. inline vs block

Ans.

Inline elements flow in the same line, while block elements take up the full width available.

  • Inline elements do not start on a new line and only take up as much width as necessary.

  • Block elements start on a new line and take up the full width available.

  • Examples of inline elements include <span>, <a>, and <strong>.

  • Examples of block elements include <div>, <p>, and <h1>.

Add your answer
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at BNY

based on 6 interviews
1 Interview rounds
Technical Round
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top Reactjs Developer Interview Questions from Similar Companies

3.6
 • 34 Interview Questions
3.7
 • 16 Interview Questions
4.0
 • 12 Interview Questions
4.1
 • 11 Interview Questions
View all
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
70 Lakh+

Reviews

5 Lakh+

Interviews

4 Crore+

Salaries

1 Cr+

Users/Month

Contribute to help millions

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

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter