Add office photos
Engaged Employer

IBM

4.0
based on 22.1k Reviews
Video summary
Proud winner of ABECA 2024 - AmbitionBox Employee Choice Awards
Filter interviews by

HDFC Bank Interview Questions and Answers

Updated 1 May 2024
Popular Designations

Q1. Router components service angular performance optimization how to scale app, security

Ans.

Optimizing Angular app performance and security with router components and services

  • Use lazy loading to improve performance

  • Implement caching for frequently accessed data

  • Use Angular Universal for server-side rendering

  • Implement HTTPS and secure authentication for security

  • Use guards and interceptors to protect routes and prevent unauthorized access

Add your answer

Q2. 3.How to make a class immutable

Ans.

To make a class immutable, we need to ensure that its state cannot be modified after creation.

  • Make all fields private and final

  • Do not provide any setters

  • If mutable objects are used, return copies instead of references

  • Ensure that any methods that modify state return a new instance instead of modifying the existing one

Add your answer

Q3. What is hoisting in Java script

Ans.

Hoisting in JavaScript is a behavior where variable and function declarations are moved to the top of their containing scope during the compilation phase.

  • Variable declarations are hoisted to the top of their scope, but not their initializations.

  • Function declarations are fully hoisted, including their definitions.

  • Hoisting can lead to unexpected behavior if not understood properly.

Add your answer

Q4. 4.React life cycle methods

Ans.

React life cycle methods are functions that are called at different stages of a component's life cycle.

  • There are three phases of a component's life cycle: Mounting, Updating, and Unmounting.

  • Mounting phase includes constructor(), getDerivedStateFromProps(), render(), and componentDidMount() methods.

  • Updating phase includes getDerivedStateFromProps(), shouldComponentUpdate(), render(), getSnapshotBeforeUpdate(), and componentDidUpdate() methods.

  • Unmounting phase includes componen...read more

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

Q5. What is promise, closure ?

Ans.

A promise is an object representing the eventual completion or failure of an asynchronous operation. A closure is a function defined within another function that has access to its parent function's scope.

  • Promise is used to handle asynchronous operations in JavaScript.

  • Promises can be in one of three states: pending, fulfilled, or rejected.

  • Closures allow functions to access variables from their parent function even after the parent function has finished executing.

  • Closures are c...read more

Add your answer

Q6. Functional Overloading vs function overriding

Ans.

Functional overloading involves multiple functions with the same name but different parameters, while function overriding involves a subclass providing a specific implementation for a method in its superclass.

  • Functional overloading allows multiple functions with the same name but different parameters.

  • Function overriding occurs in inheritance when a subclass provides a specific implementation for a method in its superclass.

  • In functional overloading, the compiler determines whi...read more

Add your answer

Q7. Tell about design pattern

Ans.

Design patterns are reusable solutions to common problems in software design.

  • Design patterns help in creating maintainable, scalable, and efficient code.

  • Some common design patterns include Singleton, Factory, Observer, and Strategy.

  • Design patterns can be categorized into three main groups: creational, structural, and behavioral.

Add your answer

Q8. What is memonisation

Ans.

Memoization is a technique used in computer science to store the results of expensive function calls and return the cached result when the same inputs occur again.

  • Memoization helps in improving the performance of a program by reducing redundant calculations.

  • It is commonly used in dynamic programming to optimize recursive algorithms.

  • Example: Fibonacci sequence calculation can be optimized using memoization to store previously calculated values.

Add your answer

Q9. Difference between == && ===

Ans.

== is used for equality comparison, while === is used for strict equality comparison.

  • == checks for equality of values, while === checks for equality of values and data types.

  • == can perform type coercion, while === does not.

  • == is less strict than ===.

  • Example: 1 == '1' returns true, but 1 === '1' returns false.

Add your answer

More about working at IBM

Top Rated Mega Company - 2024
Top Rated Company for Women - 2024
Top Rated IT/ITES Company - 2024
Contribute & help others!
Write a review
Share interview
Contribute salary
Add office photos

Interview Process at HDFC Bank

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

Top Full Stack Developer Interview Questions from Similar Companies

3.3
 • 26 Interview Questions
3.6
 • 18 Interview Questions
3.5
 • 17 Interview Questions
4.0
 • 15 Interview Questions
4.8
 • 14 Interview Questions
4.3
 • 13 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
75 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