Add office photos
Employer?
Claim Account for FREE

Virtusa Consulting Services

3.8
based on 4.7k Reviews
Filter interviews by

ICICI Bank Interview Questions and Answers

Updated 9 Feb 2024
Popular Designations

Q1. If more than 50K records are fetched by the SOQL in the trigger. how to handle that.

Ans.

To handle more than 50K records fetched by SOQL in trigger, use batch apex or pagination.

  • Use batch apex to process records in smaller chunks

  • Implement pagination to limit the number of records fetched at a time

  • Consider using selective SOQL queries to reduce the number of records fetched

  • Avoid using SOQL queries inside loops

  • Use query optimizer tool to optimize SOQL queries

Add your answer

Q2. write trigger , there are 3 objects, a is parent, b child, c is grand child, when grand child updated update grand child desc on a object desc

Ans.

Write a trigger to update the description field on the parent object when the grandchild object is updated.

  • Create a trigger on the grandchild object

  • Use a SOQL query to retrieve the parent object

  • Update the description field on the parent object with the grandchild's description

View 1 answer

Q3. how manual sharing works and how to see manually shared rercords

Ans.

Manual sharing allows users to manually grant access to records. To see manually shared records, use the 'Sharing' button on the record detail page.

  • Manual sharing is a feature in Salesforce that allows users to manually grant access to records.

  • It is useful when users need to share specific records with other users or groups.

  • To manually share a record, users can click on the 'Sharing' button on the record detail page.

  • From there, they can add individual users or groups and spec...read more

Add your answer

Q4. How to use current page's Id in LWC

Ans.

To use current page Id in LWC, we can import '@salesforce/apex' and call Apex method to get the Id.

  • Import '@salesforce/apex' in LWC JS file

  • Create an Apex method to return current page Id

  • Call the Apex method in LWC JS file using '@wire'

  • Access the current page Id in LWC HTML file using '{pageId}'

View 1 answer
Discover ICICI Bank interview dos and don'ts from real experiences

Q5. How to improve test coverage of a class.

Ans.

To improve test coverage of a class, write more test cases to cover all possible scenarios.

  • Identify uncovered lines of code using a code coverage tool

  • Write test cases for each uncovered line of code

  • Write test cases for boundary conditions and edge cases

  • Use mock objects to simulate dependencies

  • Refactor code to make it more testable

Add your answer

Q6. write trigger on opportunity to sum of total opps and populate on account sumofopps field

Ans.

Write a trigger on Opportunity to calculate the sum of total opportunities and populate it on the Account's 'SumOfOpps' field.

  • Create a trigger on the Opportunity object

  • Use an aggregate query to calculate the sum of the 'Amount' field on all related Opportunities

  • Update the 'SumOfOpps' field on the related Account with the calculated sum

View 1 answer

Q7. decorators in lwc

Ans.

Decorators in LWC are a way to enhance the functionality of a component by adding metadata and modifying behavior.

  • Decorators are used to modify the behavior of properties, methods, and getters/setters in LWC.

  • They are defined using the @ symbol followed by the decorator name.

  • Some commonly used decorators in LWC are @api, @track, @wire, and @track.

  • The @api decorator allows a property to be accessed by parent components.

  • The @track decorator tracks changes to a property and trigg...read more

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

Interview Process at ICICI Bank

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

Top Salesforce Developer Interview Questions from Similar Companies

3.6
 • 30 Interview Questions
3.7
 • 30 Interview Questions
3.8
 • 24 Interview Questions
3.8
 • 18 Interview Questions
3.4
 • 13 Interview Questions
3.9
 • 12 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