Add office photos
Employer?
Claim Account for FREE

Accenture

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

C.R.I. Pumps Interview Questions and Answers

Updated 12 Apr 2024
Popular Designations

Q1. what are Access Controls/modifiers? public vs open?

Ans.

Access controls/modifiers determine the visibility and accessibility of classes, methods, and properties in object-oriented programming.

  • public access control allows a class, method, or property to be accessed from anywhere in the code

  • open access control allows a class to be subclassed outside of the module where it is defined

  • public is commonly used in Swift for most cases, while open is used when you want to allow subclassing from external modules

Add your answer

Q2. How you use GIT, How to manage conflicts?

Ans.

I use GIT for version control and manage conflicts by resolving them through communication and collaboration.

  • Regularly commit changes to keep track of progress

  • Pull latest changes before making any updates to avoid conflicts

  • Communicate with team members to resolve conflicts efficiently

  • Use tools like Git merge or Git rebase to resolve conflicts

  • Document resolution process for future reference

Add your answer

Q3. Code snippets for optional binding, find error ?

Ans.

Optional binding in Swift helps to safely unwrap optionals and check for nil values.

  • Use if let or guard let to safely unwrap optionals and bind the value to a new constant or variable.

  • Check for nil values before using the unwrapped value to avoid runtime errors.

  • Example: if let name = optionalName { print(name) }

  • Example: guard let age = optionalAge else { return }

Add your answer

Q4. What is Weak & Unowned , ARC?

Ans.

Weak & Unowned references are used in ARC to prevent retain cycles in Swift programming.

  • Weak references do not increase the retain count of an object, and automatically become nil when the object is deallocated.

  • Unowned references do not keep a strong reference to the object, and can become a dangling pointer if the object is deallocated.

  • ARC (Automatic Reference Counting) is a memory management system used in Swift to automatically manage memory for objects.

Add your answer
Discover C.R.I. Pumps interview dos and don'ts from real experiences

Q5. What is Autoclosure?

Ans.

Autoclosure is a feature in Swift that automatically wraps an expression in a closure.

  • Autoclosure is used to delay evaluation of an expression until it is actually needed.

  • It is commonly used with functions that take closures as arguments, allowing the caller to pass in a regular value instead of a closure.

  • Autoclosures are created by adding @autoclosure attribute before the closure's parameter type.

Add your answer

Q6. Protocol vs Closures?

Ans.

Protocols define a blueprint of methods, properties, and other requirements that a class or struct must adopt. Closures are self-contained blocks of functionality that can be passed around and used in your code.

  • Protocols define a set of methods, properties, and other requirements that a class or struct must implement.

  • Closures are self-contained blocks of functionality that can capture and store references to any constants and variables from the context in which they are defin...read more

Add your answer

More about working at Accenture

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 C.R.I. Pumps

based on 4 interviews
Interview experience
3.5
Good
View more
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Top IOS Developer Interview Questions from Similar Companies

3.7
 • 12 Interview Questions
2.4
 • 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
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