Filter interviews by
I applied via Internshala and was interviewed before Jun 2023. There was 1 interview round.
Structs are value types, classes are reference types in Swift.
Structs are passed by value, classes are passed by reference.
Structs are copied when assigned to a new variable, classes are not.
Structs do not support inheritance, classes do.
I applied via Approached by Company and was interviewed before Nov 2023. There was 1 interview round.
Delegates and notification center are key components in iOS development for communication between objects and broadcasting events.
Delegates are used for one-to-one communication between objects, allowing one object to act on behalf of another.
Notification center is used for broadcasting events to multiple objects, allowing for loosely coupled communication.
Delegates are commonly used in UITableView and UICollectionView...
Weak references do not keep a strong hold on an object, allowing it to be deallocated if no strong references exist.
Weak references are used to avoid retain cycles in iOS development.
Strong references keep a strong hold on an object, preventing it from being deallocated as long as the strong reference exists.
Weak references are declared as 'weak var' or 'weak let', while strong references are the default in Swift.
Examp...
Top trending discussions
I applied via Approached by Company and was interviewed in Jun 2024. There were 2 interview rounds.
I applied via LinkedIn and was interviewed in Mar 2024. There was 1 interview round.
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 a
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.
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 }
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 subc
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 consta...
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
I applied via Naukri.com and was interviewed in Apr 2024. There were 3 interview rounds.
Machine test with collection view and api using url session
Encryption and decryption in Swift involves using cryptographic algorithms to encode and decode data securely.
Use common encryption algorithms like AES or RSA for encryption.
Implement encryption using libraries like CommonCrypto or CryptoSwift.
Store encryption keys securely and use secure protocols for data transmission.
Example: Encrypting a string using AES encryption in Swift.
Keychain access in Swift allows secure storage of sensitive information like passwords, tokens, etc.
Use Keychain Services API to securely store and retrieve sensitive data.
Keychain items are stored securely in the device's keychain and are encrypted.
Access keychain items using unique identifiers called keys.
Use Keychain Swift library for easier implementation.
Classes are reference types, while structs are value types in Swift.
Classes are reference types, meaning they point to the same instance in memory when assigned to a new variable.
Structs are value types, meaning they create a new copy when assigned to a new variable.
Use classes for complex data structures or when you need inheritance, use structs for simple data types or when you want value semantics.
Example: class Per...
Grand Central Dispatch (GCD) is a technology in Swift for managing concurrent operations.
GCD allows developers to perform tasks concurrently without having to manage threads manually.
It provides a high-level API for managing tasks and executing them on different queues.
Developers can use GCD to perform tasks in the background, update the UI on the main thread, and more.
Easy aptitude english and logical reasoning.
Swift is a powerful and modern programming language for iOS development, but it has its own set of advantages and disadvantages.
Advantages: faster performance, safer code with optionals, easier to read and write code, interoperability with Objective-C
Disadvantages: steep learning curve for beginners, limited community support compared to other languages like Java or Python
I applied via Recruitment Consulltant and was interviewed in Mar 2024. There was 1 interview round.
A closure is a self-contained block of code that can be passed around and used in your code. An escaping closure is a closure that is called after the function it was passed to has returned.
Closure is a block of code that can be passed around and used in your code.
Escaping closure is called after the function it was passed to has returned.
Example: Using a completion handler in a network request to handle the response a
Multi threading is the ability of a CPU to execute multiple threads concurrently, allowing for improved performance and responsiveness in applications.
Allows for parallel execution of tasks, improving performance
Enables applications to remain responsive while performing intensive tasks
Can lead to synchronization issues if not managed properly
ARC (Automatic Reference Counting) in Swift is a memory management system used to automatically manage memory allocation and deallocation.
ARC keeps track of how many references there are to an object and automatically deallocates it when there are no more references.
Use strong reference cycles can lead to memory leaks, so use weak or unowned references to break the cycle.
ARC is the default memory management system in S...
MVVM (Model-View-ViewModel) is an architectural design pattern commonly used in iOS development to separate concerns and improve code maintainability.
MVVM separates the user interface (View) from the business logic (ViewModel) and data (Model).
ViewModel acts as an intermediary between the View and the Model, handling user interactions and updating the data.
Swift provides tools like Combine framework for reactive progra...
TCS
Accenture
Wipro
Cognizant